Package realcix20.classes.plugins

Examples of realcix20.classes.plugins.CurrencyPlugin


                    new ActionAdapter() {

                        public void actionPerformed(ActionEvent e) {

                            if ( (ComponentManager.getValue(pComponent) != null) && (pComponent.isFocusOwner()) ) {
                                CurrencyPlugin cp = CurrencyPlugin.getInstance();
                                StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
                                int fraction = cp.getFraction(ComponentManager.getValue(pComponent).toString());
                                if (fraction > 0) {
                                    sb.append(cp.getFpoint());
                                }
                                for (int i = 1; i <= fraction; i++) {
                                    sb.append("0");
                                }
                                DecimalFormat df = new DecimalFormat(sb.toString());
View Full Code Here


                    new ActionAdapter() {

                        public void actionPerformed(ActionEvent e) {

                            if ( (ComponentManager.getValue(pComponent) != null) && (pComponent.isFocusOwner()) ) {
                                CurrencyPlugin cp = CurrencyPlugin.getInstance();
                                UomPlugin up = UomPlugin.getInstance();
                                StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
                                int fraction = up.getFraction(ComponentManager.getValue(pComponent).toString());
                                if (fraction > 0) {
                                    sb.append(".");
                                }
                                for (int i = 1; i <= fraction; i++) {
View Full Code Here

           
                super();
                this.column = column;
                setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
                displayText = new JFormattedTextField();
                CurrencyPlugin cp = CurrencyPlugin.getInstance();                               
                StringBuffer sb = new StringBuffer("###");
                sb.append(cp.getSepor() + "###");
                int fraction = Integer.parseInt(GlobalValueManager.getValue("APPLIATION.DEFFRACTION"));
                if (fraction > 0) {
                    sb.append(cp.getFpoint());
                }
                for (int i = 1; i <= fraction; i++) {
                    sb.append("0");
                }
                DecimalFormat df = new DecimalFormat(sb.toString());               
View Full Code Here

                        String tableName = (String)st.nextElement();
                        String columnName = (String) st.nextElement();
                        ComponentExt pComponentExt = relationManager.findComponentExt(tableName, columnName);
                        Object pValue = ComponentManager.getValue(pComponentExt.getComponent());
                        JComponent component = childComponentExt.getComponent();
                        CurrencyPlugin cp = CurrencyPlugin.getInstance();
                        StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
                        int fraction = Integer.parseInt(GlobalValueManager.getValue("APPLIATION.DEFFRACTION"));
                        if (pValue != null)
                            fraction = cp.getFraction(pValue.toString());
                        if (fraction > 0) {
                            sb.append(cp.getFpoint());
                        }
                        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)component).setFormatterFactory(factory);
                    } else if (childColumn.getInputType() == 12) {
                        JComponent component = childComponentExt.getComponent();
                        CurrencyPlugin cp = CurrencyPlugin.getInstance();
                        UomPlugin up = UomPlugin.getInstance();
                        StringTokenizer st = new StringTokenizer(column.getPControls(), ".");
                        String tableName = (String)st.nextElement();
                        String columnName = (String)st.nextElement();
                        ComponentExt pComponentExt = relationManager.findComponentExt(tableName, columnName);
                        Object pValue = ComponentManager.getValue(pComponentExt.getComponent());
                        StringBuffer sb = new StringBuffer("###" + cp.getSepor() + "###");
                        int fraction = Integer.parseInt(GlobalValueManager.getValue("APPLIATION.DEFFRACTION"));
                        if (pValue != null)
                            fraction = up.getFraction(pValue.toString());
                        if (fraction > 0) {
                            sb.append(".");
View Full Code Here

           
        }
       
        public static RealCIXFile exportCorrespondenceCIXFile(Row correspondenceRow) {
           
                RealCIXFile realCIXFile = null;
                String type = "Correspondence";
                Vector datas = new Vector();
                Vector notEncryedDatas = new Vector();
                datas.add(correspondenceRow);
                String ns = ObjectUtil.findNewCell(correspondenceRow, "T", "NS").getColumnValue().toString();
                String p = ObjectUtil.findNewCell(correspondenceRow, "T", "P").getColumnValue().toString();
                String pa = ObjectUtil.findNewCell(correspondenceRow, "T", "PA").getColumnValue().toString();
                PartnerClass partner = (PartnerClass)ClassManager.createClass(250);
                Row partnerAccountRow = null;             
                partnerAccountRow = PartnerClass.findPartnerAccountRow(partner, ns, p, pa);
                Row mePartnerAccountRow = null;
                if (partnerAccountRow != null)
                    mePartnerAccountRow = PartnerClass.getMePartnerAccount(partnerAccountRow);
                PrivateKey privateKey = null;
                if (mePartnerAccountRow != null) {
                    privateKey = (PrivateKey)ObjectUtil.findNewCell(mePartnerAccountRow, "PA", "PRIKEY").getColumnValue();
                }
                if (privateKey != null) {
                    String urns = ObjectUtil.findNewCell(partnerAccountRow, "PA", "URNS").getColumnValue().toString();
                    String urp = ObjectUtil.findNewCell(partnerAccountRow, "PA", "URP").getColumnValue().toString();
                    String urpa = ObjectUtil.findNewCell(partnerAccountRow, "PA", "URPA").getColumnValue().toString();
                    notEncryedDatas.add(urns);
                    notEncryedDatas.add(urp);
                    notEncryedDatas.add(urpa);
                    realCIXFile = new RealCIXFile(type, privateKey, notEncryedDatas, datas);
                }
                return realCIXFile;
           
        }
View Full Code Here

    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

TOP

Related Classes of realcix20.classes.plugins.CurrencyPlugin

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.