str = ((NumberFormatSpecifier) formatspecifier).getPrefix(); if (str == null) { str = ""; } txtPrefix.setText(str); str = ((NumberFormatSpecifier) formatspecifier).getSuffix(); if (str == null) { str = ""; } txtSuffix.setText(str); str = String.valueOf(((NumberFormatSpecifier) formatspecifier).getMultiplier()); if (str == null) { str = ""; } txtMultiplier.setText(str); iscFractionDigits.setValue(((NumberFormatSpecifier) formatspecifier).getFractionDigits());
str = "";
    private void populateLists()    {        this.bEnableEvents = false;        cmbDataType.add("Date/Time");        cmbDataType.add("Number");        // Populate Date Types        Object[] oArrDT = DateFormatType.VALUES.toArray();        for (int iDT = 0; iDT < oArrDT.length; iDT++)        {            cmbDateType.add(((DateFormatType) oArrDT[iDT]).getName());        }        // Populate Date Details        Object[] oArrDD = DateFormatDetail.VALUES.toArray();        for (int iDD = 0; iDD < oArrDD.length; iDD++)        {            cmbDateForm.add(((DateFormatDetail) oArrDD[iDD]).getName());        }        String str = "";        if (formatspecifier instanceof DateFormatSpecifier || formatspecifier instanceof JavaDateFormatSpecifier)        {            cmbDataType.select(0);            slDetails.topControl = cmpDateDetails;            if (formatspecifier instanceof DateFormatSpecifier)            {                cmbDateType.setText(((DateFormatSpecifier) formatspecifier).getType().getName());                cmbDateForm.setText(((DateFormatSpecifier) formatspecifier).getDetail().getName());            }            else            {                str = ((JavaDateFormatSpecifier) formatspecifier).getPattern();                if (str == null)                {                    str = "";                }                txtDatePattern.setText(str);            }        }        else        {            cmbDataType.select(1);            slDetails.topControl = cmpNumberDetails;            if (formatspecifier instanceof NumberFormatSpecifier)            {                str = ((NumberFormatSpecifier) formatspecifier).getPrefix();                if (str == null)                {                    str = "";                }                txtPrefix.setText(str);                str = ((NumberFormatSpecifier) formatspecifier).getSuffix();                if (str == null)                {                    str = "";                }                txtSuffix.setText(str);                str = String.valueOf(((NumberFormatSpecifier) formatspecifier).getMultiplier());                if (str == null)                {                    str = "";                }                txtMultiplier.setText(str);                iscFractionDigits.setValue(((NumberFormatSpecifier) formatspecifier).getFractionDigits());            }            else            {                str = String.valueOf(((JavaNumberFormatSpecifier) formatspecifier).getMultiplier());                if (str == null)                {                    str = "";                }                txtAdvMultiplier.setText(str);                str = ((JavaNumberFormatSpecifier) formatspecifier).getPattern();                if (str == null)                {                    str = "";                }                txtNumberPattern.setText(str);            }            cmpDetails.layout();        }        this.bEnableEvents = true;    }