Package org.jitterbit.ui.input

Examples of org.jitterbit.ui.input.ComboBoxInputField


            public void actionPerformed(ActionEvent e) {
                displayActiveDefiner();
            }
        });
        JLabel label = new JLabel(PackageResources.PayloadStructureDefiner.TYPE_SELECTOR);
        ComboBoxInputField f = new ComboBoxInputField("PayloadStructureTypeSelector", combo, label);
        p.addInputField(f);
        return f;
    }
View Full Code Here


    private ComboBoxInputField createSelector(JmsMessage m) {
        JComboBox combo = new JComboBox(DeliveryMode.values());
        combo.setSelectedItem(m.getDeliveryMode());
        combo.setRenderer(new TypeSelectorRenderer());
        JLabel label = new JLabel(PackageResources.DeliveryModeSelector.SELECTOR_LABEL);
        return new ComboBoxInputField("DeliveryModeSelector", combo, label);
    }
View Full Code Here

        return c;
    }

    private ComboBoxInputField createSelectorField(Wizard wizard) {
        String label = "Select an entity";
        ComboBoxInputField field = entityBoxControls.getComboBox().asInputField(label, label);
        WizardNavigationKeyBindings.install(wizard, field.getInputComponent());
        return field;
    }
View Full Code Here

            return true;
        }

        @Override
        public boolean isFieldValid(InputField field) {
            ComboBoxInputField combo = (ComboBoxInputField) field;
            Object o = combo.getInputComponent().getSelectedItem();
            return (o instanceof IntegrationEntity);
        }
View Full Code Here

            @Override
            public void itemStateChanged(ItemEvent e) {
                handleNewMode(getSelectedMode());
            }
        });
        ComboBoxInputField field = new ComboBoxInputField(Strings.get("Ftp.Security.Selector"), combo, null);
        addInputField(field);
        return field;
    }
View Full Code Here

        comboBox.forceDelayedSelection();
    }

    public ComboBoxInputField asInputField(String name, String label) {
        JLabel jlabel = (label != null && label.length() > 0) ? KongaLabel.withMnemonic(label) : null;
        return new ComboBoxInputField(name, comboBox, jlabel) {

            @Override
            protected UndoableEdit createUndoableEdit(Object previousSelection, Object newSelection) {
                if (previousSelection == null) {
                    return null;
View Full Code Here

    public HttpVerbSelectionPanel(InputPanel parent, HttpLocation location, SourceTarget st) {
        sourceOrTarget = st;
        options = new EnumComboBox<HttpVerb>(HttpLocation.getSupportedVerbs());
        options.setPrototypeDisplayValue("DELETE  "); // HACK: DELETE (currently the longest verb) may be cutoff otherwise
        options.setSelectedItem(getVerb(location, st));
        addInputField(new ComboBoxInputField("Verb", options, null));
        parent.addInputPanel(this);
        setSendInputChangeEvents(true);
        setSendUndoEvents(true);
    }
View Full Code Here

    public void removeSelectionListener(SelectionListener lst) {
        comboBox.removeSelectionListener(lst);
    }

    public ComboBoxInputField asInputField(String name, String label) {
        return new ComboBoxInputField(name, comboBox, new JLabel(label));
    }
View Full Code Here

    public void removeSelectionListener(SelectionListener lst) {
        selectionSupport.removeListener(lst);
    }

    private ComboBoxInputField createInputField(InputPanel parent) {
        ComboBoxInputField combo = new ComboBoxInputField("Provider Selector", createComboBox(), new JLabel(
                PackageResources.Labels.PROVIDER_SELECTOR));
        parent.addInputField(combo);
        return combo;
    }
View Full Code Here

        ComboBoxModel model = createComboBoxModel();
        JComboBox combo = new ComboBoxImpl(model);
        combo.setEditable(true);
        combo.setSelectedIndex(-1);
        combo.setRenderer(new DefaultListDecorRenderer());
        comboInputField = new ComboBoxInputField("Recent files", combo, null);
        getInputPanel().addInputField(comboInputField);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.input.ComboBoxInputField

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.