Package org.jitterbit.integration.client.ui.deploy.option

Examples of org.jitterbit.integration.client.ui.deploy.option.DeployOption


     * <p>
     * <strong>Note:</strong> This method may return <code>null</code> if called before the
     * deploy process has started.
     */
    public DeployData getDeployData() {
        DeployOption option = controlPanel.getActiveOption();
        return option != null ? option.getDeployData() : null;
    }
View Full Code Here


        }

        @Override
        public void run() {
            if (isValid()) {
                DeployOption deployer = createOption(createDeployLauncher());
                String tag = getTag(params);
                deployer.execute(tag);
            }
        }
View Full Code Here

        public void actionPerformed(ActionEvent evt) {
            EventQueue.invokeLater(new Runnable() {

                @Override
                public void run() {
                    DeployOption option = controlPanel.getActiveOption();
                    if (option != null) {
                        storeSelectedOptionInProjectPreferences(option);
                        option.execute(tag);
                    }
                }
            });
        }
View Full Code Here

    public void onInvalidProject() {
        JRadioButton toSelect = null;
        for (Map.Entry<JRadioButton, OptionSelector<DeployOption>> e : optionMap.entrySet()) {
            JRadioButton btn = e.getKey();
            DeployOption option = e.getValue().getOption();
            if (option == preferredOption && !preferredOption.requiresValidProject()) {
                toSelect = btn;
            }
            if (e.getValue().getOption().requiresValidProject()) {
                btn.setEnabled(false);
View Full Code Here

        return p.getUi();
    }

    private void layoutNormalOptions(OneColumnPanel p) {
        for (Map.Entry<JRadioButton, OptionSelector<DeployOption>> e : optionMap.entrySet()) {
            DeployOption option = e.getValue().getOption();
            if (!option.isAdvanced()) {
                layoutOption(option, e.getKey(), p);
            }
        }
    }
View Full Code Here

    private void layoutAdvancedOptions(OneColumnPanel parent) {
        OneColumnPanel p = createEmptyColumn();
        boolean expanded = false;
        ItemListener listener = new AdvancedOptionsListener();
        for (Map.Entry<JRadioButton, OptionSelector<DeployOption>> e : optionMap.entrySet()) {
            DeployOption option = e.getValue().getOption();
            if (option.isAdvanced()) {
                JRadioButton btn = e.getKey();
                btn.addItemListener(listener);
                layoutOption(option, btn, p);
                if (btn.isSelected()) {
                    expanded = true;
View Full Code Here

    private final class AdvancedOptionsListener implements ItemListener {

        @Override
        public void itemStateChanged(ItemEvent e) {
            DeployOption option = getActiveOption();
            if (option != null && option.isAdvanced()) {
                advancedOptionsDropDown.expand();
            }
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.deploy.option.DeployOption

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.