Examples of DcComboBox


Examples of net.datacrow.console.components.DcComboBox

        DcReferenceField ref = new DcReferenceField(module);
        return ref;
    }
   
    public static final DcComboBox getAvailabilityCombo() {
        DcComboBox comboBox = new DcComboBox();
        comboBox.setFont(getStandardFont());
        comboBox.setRenderer(AvailabilityComboBoxRenderer.getInstance());

        //comboBox.addItem(null);
        comboBox.addItem(Boolean.TRUE);
        comboBox.addItem(Boolean.FALSE);

        return comboBox;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcComboBox

    public static final DcRatingComboBox getRatingComboBox() {
        return new DcRatingComboBox();
    }

    public static final DcComboBox getMP3GenreComboBox() {
        DcComboBox genreComboBox = getComboBox();
        genreComboBox.addItem("");
        genreComboBox.setSelectedIndex(0);
        genreComboBox.setFont(getStandardFont());

        for (int i = 0; i < DcRepository.Collections.colMusicGenres.length; i++) {
            genreComboBox.addItem(DcRepository.Collections.colMusicGenres[i]);
        }

        return genreComboBox;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcComboBox

        return genreComboBox;
    }

    public static final DcComboBox getComboBox(Object[] items) {
        DcComboBox comboBox = new DcComboBox(items);
        comboBox.setFont(getStandardFont());
        comboBox.setRenderer(ComboBoxRenderer.getInstance());
        return comboBox;
    }   
View Full Code Here

Examples of net.datacrow.console.components.DcComboBox

    public static final DcImageLabel getImageLabel(ImageIcon icon) {
        return new DcImageLabel(icon);
    }
   
    public static final DcComboBox getComboBox() {
        DcComboBox comboBox = new DcComboBox();
        comboBox.setFont(getStandardFont());
        comboBox.setRenderer(ComboBoxRenderer.getInstance());
        return comboBox;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcComboBox

        comboBox.setRenderer(ComboBoxRenderer.getInstance());
        return comboBox;
    }

    public static final DcComboBox getComboBox(DefaultComboBoxModel model) {
        DcComboBox comboBox = new DcComboBox(model);
        comboBox.setFont(getStandardFont());
        comboBox.setRenderer(ComboBoxRenderer.getInstance());
        return comboBox;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcComboBox

        menuBar.setFont(getStandardFont());
        return menuBar;
    }

    public static final DcComboBox getYesNoCombo() {
        DcComboBox comboBox = getComboBox();
        comboBox.addItem("");
        comboBox.addItem(DcResources.getText("lblYes"));
        comboBox.addItem(DcResources.getText("lblNo"));
        comboBox.setFont(getStandardFont());

        return comboBox;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcComboBox

       
        Dimension size = c != null ? c.getSize() : null;
       
        if (field.getValueType() == DcRepository.ValueTypes._DCOBJECTCOLLECTION) {
           
            DcComboBox combo = ComponentFactory.getComboBox();
            c = combo;
            combo.addItem(" ");

            if (DataManager.getCount(field.getReferenceIdx(), -1, null) > 1000) {
                for (DcSimpleValue value : DataManager.getSimpleValues(field.getReferenceIdx(), false))
                    combo.addItem(value);
            } else {
                int[] fields;
                if (DcModules.get(field.getReferenceIdx()).getType() == DcModule._TYPE_PROPERTY_MODULE) {
                    fields = new int[] {DcObject._ID, DcProperty._A_NAME, DcProperty._B_ICON};
                } else {
                    fields = new int[] {DcObject._ID, DcModules.get(field.getReferenceIdx()).getDisplayFieldIdx()};
                }
               
                List<DcObject> objects = DataManager.get(field.getReferenceIdx(), fields);
                for (DcObject dco : objects)
                  combo.addItem(dco);
            }
           
            combo.setUneditable();
        } else if (field.getFieldType() == ComponentFactory._FILEFIELD ||
               field.getFieldType() == ComponentFactory._FILELAUNCHFIELD) {
          c = ComponentFactory.getShortTextField(255);
        } else {
          c = ComponentFactory.getComponent(field.getModule(), field.getReferenceIdx(), field.getIndex(),
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.