Examples of GV


Examples of realcix20.guis.views.settings.tools.GV

        private void restoreDefault() {
           
                Iterator groupComponentsIter = groupComponents.iterator();
                Iterator gvsIter = currentGVGroup.getGvs().iterator();
                while (gvsIter.hasNext()) {
                    GV gv = (GV)gvsIter.next();
                    JComponent component = (JComponent)groupComponentsIter.next();
                    if (component instanceof JComboBox) {
                        JComboBox comboBox = (JComboBox)component;
                        for (int i = 0; i < comboBox.getItemCount(); i++) {
                            Item item = (Item)comboBox.getItemAt(i);
                            if (item.getFactValue().equals(gv.getDefvalue())) {
                                comboBox.setSelectedIndex(i);
                                break;
                            }
                        }
                    }
View Full Code Here

Examples of realcix20.guis.views.settings.tools.GV

        private void apply() {
           
                Iterator groupComponentsIter = groupComponents.iterator();
                Iterator gvsIter = currentGVGroup.getGvs().iterator();
                while (gvsIter.hasNext()) {
                    GV gv = (GV)gvsIter.next();
                    JComponent component = (JComponent)groupComponentsIter.next();
                    if (component instanceof JComboBox) {
                        JComboBox comboBox = (JComboBox)component;
                        Item item = (Item)comboBox.getSelectedItem();
                        GlobalValueManager.setValue(gv.getVid(), (String)item.getFactValue());
                    }
                }                               
           
        }
View Full Code Here

Examples of realcix20.guis.views.settings.tools.GV

               
                n = 1;
                groupComponents = new Vector();
                for (int i = 1; i <= currentGVGroup.getGvs().size(); i++) {
                   
                        GV gv = (GV)currentGVGroup.getGvs().get(i - 1);
                        JPanel panel = new JPanel();
                        panel.setBorder(new TitledBorder(TxtManager.getTxt("VIEW.GV." + gv.getVid())));
                        panel.setLayout(new FormLayout(
                                new ColumnSpec[] {
                                        new ColumnSpec("10px"),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec("150px"),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec("150px")
                                },
                                RowSpec.decodeSpecs("5px, default, 5px")));
                       
                        JLabel label = new JLabel(TxtManager.getTxt("VIEW.GV." + gv.getVid()));
                        panel.add(label, cc.xy(3, 2));
                        JComponent component = GVManager.getComponent(gv);
                        groupComponents.add(component);
                        panel.add(component, cc.xy(5, 2));
                                               
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.