Examples of KongaRadioButton


Examples of org.jitterbit.ui.widget.button.KongaRadioButton

        createTextField();
    }

    private void createRadioButtons() {
        if (tlnNode.hasPrecondition()) {
            addConditionSelector = new KongaRadioButton("&Disable condition on current folder");
        } else {
            addConditionSelector = new KongaRadioButton("&Enable condition on current folder");
        }
        deleteSelector = new KongaRadioButton("&Remove current folder");
        deleteSelector.setEnabled(tlnNode.isMultipleMap());
        addMapSelector = new KongaRadioButton("&Create additional folders");
        ButtonUtils.makeMutuallyExclusive(addConditionSelector, deleteSelector, addMapSelector);
        ButtonUtils.addItemListener(this, addConditionSelector, deleteSelector, addMapSelector);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.KongaRadioButton

        private final JRadioButton overwriteOption;

        private final FileNameField fileNameField;

        public Ui() {
            renameOption = new KongaRadioButton("&Rename the file", true);
            overwriteOption = new KongaRadioButton("&Overwrite the existing file");
            fileNameField = new FileNameField(30);
            ButtonUtils.makeMutuallyExclusive(renameOption, overwriteOption);
            TextBinding nameBinding = TextBinding.bind(model, XsdGeneratorModel.FILE_NAME, fileNameField.getInputComponent());
            nameBinding.syncUi();
            renameOption.addActionListener(new ActionListener() {
View Full Code Here

Examples of org.jitterbit.ui.widget.button.KongaRadioButton

        String caption = getString("Caption.HowAreTheTimesInterpreted");
        captionLabel = TextStyles.AdminHint.makeLabel(caption);
    }

    private static JRadioButton createSelector(String label, ItemListener listener, ButtonGroup group) {
        JRadioButton btn = new KongaRadioButton(label, false, group);
        btn.addItemListener(listener);
        return btn;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.KongaRadioButton

        type_A_selector = createRadioButton(group, lst);
        type_B_selector = createRadioButton(group, lst);
    }

    private JRadioButton createRadioButton(ButtonGroup group, ActionListener lst) {
        JRadioButton b = new KongaRadioButton(group);
        b.setOpaque(false);
        b.addActionListener(lst);
        return b;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.KongaRadioButton

     * @param selected
     *            the initial selection state of the added button.
     * @return the created <code>JRadioButton</code>
     */
    public final JRadioButton addOption(T value, String label, boolean selected) {
        JRadioButton b = new KongaRadioButton(label, selected, standardGroup);
        buttons.add(b, value);
        if (undoableGroup != null) {
            undoableGroup.add(b, selected);
        }
        return b;
View Full Code Here

Examples of org.jitterbit.ui.widget.button.KongaRadioButton

        WidgetUtils.makeReadOnly(noResponseSelector.getInputComponent(), operationSelector.getInputComponent(),
                        variableSelector.getInputComponent());
    }

    private RadioButtonInputField createSelector(String label, ButtonGroup choices, ItemListener listener) {
        RadioButtonInputField f = new RadioButtonInputField("Response Setting", new KongaRadioButton(
            label), null);
        f.getInputComponent().addItemListener(listener);
        choices.add(f.getInputComponent());
        return f;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.KongaRadioButton


    private void createRadioButtons() {
        optionSelectors = Lists.newArrayList();
        for (final DeployOption o : options) {
            KongaRadioButton btn = createRadioButton();
            OptionSelector<DeployOption> selector = new ToggleButtonOptionSelector<DeployOption>(o, btn);
            optionSelectors.add(selector);
            if (o == preferredOption) {
                btn.setSelected(true);
                defaultFocusOwner = btn;
                o.setActive(true);
            } else {
                o.setActive(false);
            }
            btn.addSelectionChangeListener(new Receiver<Boolean>() {

                @Override
                public void handle(Boolean selected) {
                    o.setActive(selected);
                }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.KongaRadioButton

        }
        ButtonUtils.makeMutuallyExclusive(optionMap.keySet());
    }

    private KongaRadioButton createRadioButton() {
        KongaRadioButton b = new KongaRadioButton();
        b.setEnabled(false);
        b.setOpaque(false);
        return b;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.KongaRadioButton

            }
            buttons.get(0).setSelected(true);
        }

        private JRadioButton createButton(Conversion c) {
            JRadioButton b = new KongaRadioButton(c.toString(), buttonGroup);
            b.putClientProperty("Conversion", c);
            return b;
        }
View Full Code Here

Examples of org.jitterbit.ui.widget.button.KongaRadioButton

        return selected.isEmpty() ? null : selected.get(0);
    }

    @Override
    protected final JToggleButton createSelectorButton(T option, boolean selected) {
        KongaRadioButton btn = new KongaRadioButton("", selected, buttonGroup);
        registerSelectionListener(btn, option);
        return btn;
    }
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.