Package realcix20.guis.views

Examples of realcix20.guis.views.AssignBudgetDialog$BudgetObject


    protected void contactRelationship1_12(final JComponent component, final JComponent childComponent) {               
       
        //set initial value
        if (ComponentManager.getValue(component) != null) {
            CurrencyPlugin cp = CurrencyPlugin.getInstance();
            UomPlugin up = UomPlugin.getInstance();
            StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
            int fraction = up.getFraction(ComponentManager.getValue(component).toString());
            if (fraction > 0) {
                sb.append(".");
            }
            for (int i = 1; i <= fraction; i++) {
                sb.append("0");
            }
            DecimalFormat df = new DecimalFormat(sb.toString());
            NumberFormatter nf = new NumberFormatter(df);
            DefaultFormatterFactory factory = new DefaultFormatterFactory(nf);
            ((JFormattedTextField)childComponent).setFormatterFactory(factory);
        }
       
        ((JComboBox)component).addActionListener(
                new ActionAdapter() {
           
                    public void actionPerformed(ActionEvent e) {
                                               
                        if (ComponentManager.getValue(component) != null) {
                            CurrencyPlugin cp = CurrencyPlugin.getInstance();
                            UomPlugin up = UomPlugin.getInstance();
                            StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
                            int fraction = up.getFraction(ComponentManager.getValue(component).toString());
                            if (fraction > 0) {
                                sb.append(".");
                            }
                            for (int i = 1; i <= fraction; i++) {
                                sb.append("0");
View Full Code Here


            value = new Boolean(checkBox.isSelected());
        } else if (component instanceof DetailText) {//31
            DetailText detailText = (DetailText)component;
            value = detailText.getValue();
        } else if (component instanceof DetailList) {//81
            DetailList detailList = (DetailList)component;
            value = detailList.getValue();
        } else if (component instanceof XrCalculator) {
            XrCalculator xrCalculator = (XrCalculator)component;
            value = xrCalculator.getValue();
        } else if (component instanceof PasswordEdit) {
            PasswordEdit passwordEdit = (PasswordEdit)component;
View Full Code Here

                DetailText detailText = new DetailText();
                component = detailText;               
                break;               
            case 81:
            case 87:               
                DetailList detailList = new DetailList(column);
                detailList.setEditabled(false);
                component = detailList;               
                break;               
            case 83:               
                XrCalculator xrCalculator = new XrCalculator(column);
                component = xrCalculator;               
                break;               
            case 82:               
                detailList = new DetailList(column);
                detailList.setEditabled(true);
                component = detailList;               
                break;                                                  
            case 4:               
                PasswordEdit passwordEdit = new PasswordEdit(column);
                component = passwordEdit;               
View Full Code Here

            value = label.getText();
        } else if (component instanceof JCheckBox) {
            JCheckBox checkBox = (JCheckBox)component;
            value = new Boolean(checkBox.isSelected());
        } else if (component instanceof DetailText) {//31
            DetailText detailText = (DetailText)component;
            value = detailText.getValue();
        } else if (component instanceof DetailList) {//81
            DetailList detailList = (DetailList)component;
            value = detailList.getValue();
        } else if (component instanceof XrCalculator) {
            XrCalculator xrCalculator = (XrCalculator)component;
View Full Code Here

            case 3:               
                JTextField textField = new JTextField();
                component = textField;               
                break;
            case 31:               
                DetailText detailText = new DetailText();
                component = detailText;               
                break;               
            case 81:
            case 87:               
                DetailList detailList = new DetailList(column);
View Full Code Here

                value = textField.getText().trim();           
        } else if (component instanceof JTextArea) {
            JTextArea textArea = (JTextArea)component;
            value = textArea.getText().trim();
        } else if (component instanceof DisplayOnlyText) {
            DisplayOnlyText displayOnlyText = (DisplayOnlyText)component;
            value = displayOnlyText.getValue();
        } else if (component instanceof JLabel) {
            JLabel label = (JLabel)component;
            value = label.getText();
        } else if (component instanceof JCheckBox) {
            JCheckBox checkBox = (JCheckBox)component;
View Full Code Here

            case 24:                          
                JLabel displayLabel = new JLabel();
                component = displayLabel;               
                break;               
            case 101:               
                DisplayOnlyText displayOnlyText = new DisplayOnlyText(column);
                component = displayOnlyText;               
                break;                           
            default:
                //δ֧�ֵĿؼ���ΪJLabel.
                JLabel label = new JLabel("Not Supported!");
View Full Code Here

            case 4:               
                PasswordEdit passwordEdit = new PasswordEdit(column);
                component = passwordEdit;               
                break;               
            case 5:               
                JDatePicker datePicker = new JDatePicker();
                component = datePicker;               
                break;               
            case 6:               
                JCheckBox checkBox = new JCheckBox();
                component = checkBox;               
View Full Code Here

            case 9:               
                JTimeStamp timeStamp = new JTimeStamp();
                component = timeStamp;               
                break;               
            case 10:               
                JMonthPicker monthPicker = new JMonthPicker();
                component = monthPicker;               
                break;               
            case 11:
            case 12:               
                CurrencyPlugin cp = CurrencyPlugin.getInstance();
View Full Code Here

            case 6:               
                JCheckBox checkBox = new JCheckBox();
                component = checkBox;               
                break;           
            case 9:               
                JTimeStamp timeStamp = new JTimeStamp();
                component = timeStamp;               
                break;               
            case 10:               
                JMonthPicker monthPicker = new JMonthPicker();
                component = monthPicker;               
View Full Code Here

TOP

Related Classes of realcix20.guis.views.AssignBudgetDialog$BudgetObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.