Package org.jitterbit.ui.widget.combobox

Examples of org.jitterbit.ui.widget.combobox.KongaComboBox$SelectedObjectSender


        comboBox = createComboBox(namespaces);
    }

    private KongaComboBox createComboBox(String[] namespaces) {
        ComboBoxModel model = createComboModel(namespaces);
        KongaComboBox combo = new KongaComboBox(model);
        combo.setRenderer(new DefaultListDecorRenderer());
        combo.setSelectedIndex(-1);
        combo.setLabel("Select the &namespace:");
        return combo;
    }
View Full Code Here


        }
    }

    private KongaComboBox createCombo(WebServiceInfo wsInfo) {
        List<?> items = createComboItems(wsInfo);
        KongaComboBox combo = new KongaComboBox(items);
        combo.setPrototypeDisplayValue("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
        combo.setRenderer(new DefaultListDecorRenderer());
        return combo;
    }
View Full Code Here

        if (segmentType == SegmentType.DELIMITED) {
            items.add(new PrototypeItem(Prototype.SampleFlatFileWithHeader));
            items.add(new PrototypeItem(Prototype.SampleFlatFile));
        }
        items.add(new PrototypeItem(Prototype.SimpleTextDef));
        JComboBox combo = new KongaComboBox(items);
        combo.setRenderer(new DefaultListDecorRenderer());
        combo.setSelectedIndex(0);
        combo.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                delimiterField.setEnabled(getPrototype() != Prototype.SimpleTextDef);
                notifyValidationListener();
View Full Code Here

        comboBox = createComboBox();
    }

    private KongaComboBox createComboBox() {
        List<String> names = model.getListOfKnownServerNames();
        KongaComboBox combo = new KongaComboBox(names);
        combo.setEditable(true);
        combo.setSelectionReceiver(new Receiver<Object>() {

            @Override
            public void handle(Object object) {
                String serverName = (String) object;
                model.setServer(serverName);
            }
        });
        combo.setToolTipText(PackageResources.SERVER_TOOLTIP);
        combo.setRenderer(new Renderer());
        return combo;
    }
View Full Code Here

            @Override
            protected void setEditors(DocDefTableUi ui) {
                // This is a complex text definition, so we must include the Identifier in the
                // combobox that shows the possible data types:
                super.setEditors(ui);
                JComboBox editor = new KongaComboBox(FieldDataType.getVisibleTypes(true));
                ui.setCellEditorAt(2, new DefaultCellEditor(editor));
            }
        };
    }
View Full Code Here

            @Override
            protected void setEditors(DocDefTableUi ui) {
                // This is a complex text definition, so we must include the Identifier in the
                // combobox that shows the possible data types:
                super.setEditors(ui);
                JComboBox editor = new KongaComboBox(FieldDataType.getVisibleTypes(false));
                ui.setCellEditorAt(2, new DefaultCellEditor(editor));
            }
        };
    }
View Full Code Here

        setKnownServers(servers);
        updateComboBoxToolTip();
    }

    private KongaComboBox createCombo() {
        KongaComboBox combo = new KongaComboBox();
        combo.setPrototypeDisplayValue("XXXXXXXXXXXXXXXXXXXXXXXXXX");
        combo.setRenderer(new DefaultListDecorRenderer());
        combo.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                updateComboBoxToolTip();
            }
View Full Code Here

   
    private Enablable enabledStateTracker;
   
    public ParentChildSelector(DatabaseObject[] objects, JoinChecker validator) {
        this.validator = validator;
        parentSelector = new KongaComboBox(objects);
        parentSelector.setRenderer(new ParentRenderer());
        childSelector = new KongaComboBox(objects);
        childSelector.setRenderer(new ChildRenderer());
        parentSelector.addActionListener(new ParentListener());
        childSelector.addActionListener(new ChildListener());
        parentSelector.setSelectedIndex(-1);
        childSelector.setSelectedIndex(-1);
View Full Code Here

        caption = TextStyles.AdminHint.makeLabel(getString("Caption.TimeZone"));
    }

    private ComboBoxInputField createTimeZoneCombo() {
        ComboBoxModel model = createComboModel();
        KongaComboBox combo = new KongaComboBox(model);
        combo.setSelectionReceiver(new Receiver<Object>() {

            @Override
            public void handle(Object object) {
                TimeZoneItem tzItem = (TimeZoneItem) object;
                dateTimeDisplayer.setTimeZone(tzItem.getTimeZone());
View Full Code Here

    }

    private void createDayNumBox() {
        Object[] dayNumItems = { getString("1st"), getString("2nd"), getString("3rd"), getString("4th"),
                        getString("Last") };
        dayNumBox = new KongaComboBox(dayNumItems);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.combobox.KongaComboBox$SelectedObjectSender

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.