Package org.jitterbit.ui.widget.button

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


        addOtherButtons(buttons);
        return buttons;
    }

    private void addButtonsForCreatingNewItems(List<JButton> buttons) {
        StaticOptionButton newWizardButton = config.useGroupForJitterbitConnect() ? createNewWizardButton() : null;
        buttons.add(null);
        if (ToolbarMode.getConfiguredMode() == ToolbarMode.MINIMAL) {
            StaticOptionButton newEntityButton = createNewEntityButton();
            addOptionButton(newEntityButton, buttons);
            if (newWizardButton != null) {
                addOptionButton(newWizardButton, buttons);
            }
        } else {
View Full Code Here


        EntityType defaultType = wizardTypes.get(0);
        Icon icon = ToolbarMode.getConfiguredMode() == ToolbarMode.MINIMAL ? ClientIcons.JITTERBIT_CONNECT_32
                        : ClientIcons.JITTERBIT_CONNECT_24;
        NewEntityOptionButtonFactory factory = new NewEntityOptionButtonFactory(view, icon, wizardTypes, defaultType);
        factory.setDefaultAction(new OpenJitterbitConnectConsoleAction(view, config.getConnectTypes()));
        StaticOptionButton button = factory.getButton();
        button.setKeepDefaultActionFixed(true);
        view.getProjectManager().addProjectManagerListener(new WizardButtonEnabler(button));
        return button;
    }
View Full Code Here

    public void setDefaultAction(Action defaultAction) {
        this.defaultAction = defaultAction;
    }

    public StaticOptionButton getButton() {
        StaticOptionButton button = new StaticOptionButton(defaultAction, actions.toArray(new Action[actions.size()]), true);
        button.setMainButtonIcon(icon);
        return button;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.button.StaticOptionButton

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.