Package org.jitterbit.application.ui.widget

Examples of org.jitterbit.application.ui.widget.WizardStyleDialog


        dlg.setVisible(true);
        return dlg.wasOkPressed() ? ui.getSelection() : null;
    }

    private KongaDialog createDialog(Ui ui) {
        KongaDialog dialog = new WizardStyleDialog(owner, Strings.get("RouteTypeSelector.Title"), ui);
        dialog.manageLocation(RouteTypeSelector.class);
        dialog.setResizable(false);
        dialog.setOkButtonAsDefault();
        return dialog;
    }
View Full Code Here


        dialog.setVisible(true);
    }

    private KongaDialog createDialog() {
        KongaScrollPane scroll = WizardStyleDialog.wrapInScroll(ui);
        WizardStyleDialog dlg = new WizardStyleDialog(UiUtils.getActiveWindow(),
                        Strings.getJitterPackString("Import.Title"), scroll);
        JButton ok = dlg.getOKButton();
        ok.setAction(importAction);
        if (ok instanceof KongaButton) {
            ((KongaButton) ok).setUseSmallActionIcon(true);
        }
        dlg.pack();
        dlg.manageLocation(ImportJitterPackDialog.class);
        dlg.setOkButtonAsDefault();
        return dlg;
    }
View Full Code Here

    }

    private KongaDialog createDialog(Window parent) {
        InputPanel inputPanel = panel.getInputPanel();
        JComponent content = createDialogContents();
        WizardStyleDialog dialog = new WizardStyleDialog(parent, "Configure Operation", content);
        InputPanelDialogMediator.bind(inputPanel, dialog);
        dialog.addOkCondition(new Supplier<Boolean>() {

            @Override
            public Boolean get() {
                return panel.validate();
            }
        });
        dialog.setOkButtonAsDefault();
        return dialog;
    }
View Full Code Here

            return new VerticalSearchFieldsPanel(fields);
        }
    }

    private KongaDialog createDialog(Window owner, EntitySearchPanel searchPanel) {
        KongaDialog dialog = new WizardStyleDialog(owner, "Search & Replace", searchPanel, KongaDialog.CLOSE_ONLY, false);
        dialog.manageLocation(SearchAndReplaceAction.class);
        return dialog;
    }
View Full Code Here

        int size = result.getNumberOfCopiedItems();
        return (size == 1) ? "One Item Copied" : (size + " Items Copied");
    }

    private KongaDialog createDialog(UiProvider ui, String title) {
        WizardStyleDialog dialog = new WizardStyleDialog(UiUtils.getActiveWindow(), title, ui, null, true);
        dialog.getDefaultLayout().south(createDialogButtons(dialog));
        dialog.setFocusedComponent(ui);
        dialog.manageLocation(ResultUi.class);
        dialog.setOkButtonAsDefault();
        return dialog;
    }
View Full Code Here

                            "\" has no dependencies, so no other objects will be copied.", "No Dependencies",
                            Option.CONTINUE, Type.INFORMATION);
            return a.isContinue() ? new HashSet<IntegrationEntity>() : null;
        }
        DeepCopyItemSelector selector = new DeepCopyItemSelector(cascade);
        KongaDialog dialog = new WizardStyleDialog(UiUtils.getActiveWindow(), "Select Which Objects To Copy",
                        selector, KongaDialog.CONTINUE_CANCEL, true);
        dialog.setContinueButtonAsDefault();
        dialog.manageLocation(SelectiveDeepCopyUi.class);
        dialog.setVisible(true);
        return dialog.wasOkPressed() ? selector.getItemsToExclude() : null;
    }
View Full Code Here

        return panel.getDefinedOptions();
    }

    private KongaDialog createDialog(Window parent) {
        JComponent content = createDialogContent();
        KongaDialog dialog = new WizardStyleDialog(parent, "Operation Options", content);
        InputPanelDialogMediator.bind(panel, dialog);
        dialog.setOkButtonAsDefault();
        dialog.setResizable(false);
        return dialog;
    }
View Full Code Here

            private KongaDialog createDialog(Ui ui) {
                JComponent content = BorderLayoutBuilder.fillWith(ui);
                content.setOpaque(true);
                UiUtils.setPanelBackgrounds(content, Colors.NEUTRAL_BACKGROUND);
                KongaDialog dialog = new WizardStyleDialog(parent, "Preferences", content);
                dialog.setFocusedComponent(ui);
                dialog.manageLocation(PreferencesViewer.class);
                Dimension size = dialog.getSize();
                dialog.setSize(new Dimension(Math.max(800, size.width), Math.max(600, size.height)));
                dialog.getOKButton().setToolTipText("Save all changes and close this dialog");
                dialog.getCancelButton().setToolTipText("Close this dialog without saving any changes");
                dialog.setOkButtonAsDefault();
                return dialog;
            }
        });
    }
View Full Code Here

        if (targets.isEmpty()) {
            Alert.error("No project items match the current search.", "Nothing to replace");
            return;
        }
        ReplaceUi ui = new ReplaceUi(field, targets);
        dialog = new WizardStyleDialog(UiUtils.getActiveWindow(), "Replace", ui, KongaDialog.CLOSE_ONLY, true);
        ui.setWaitService(dialog);
        dialog.setLocationRelativeTo(null);
        dialog.setVisible(true);
        dialog = null;
    }
View Full Code Here

    private static KongaDialog createDialog(JFrame owner, UiProvider ui) {
        JComponent wrapper = BorderLayoutBuilder.fillWith(ui);
        wrapper.setBorder(Empty.border(10));
        wrapper.setOpaque(true);
        UiUtils.setPanelBackgrounds(wrapper, Colors.NEUTRAL_BACKGROUND);
        KongaDialog dialog = new WizardStyleDialog(owner, Strings.get("SourceFilterDialog.Title"), wrapper);
        dialog.setResizable(false);
        dialog.manageLocation(DatabaseFilterDefiner.class);
        dialog.setOkButtonAsDefault();
        return dialog;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.widget.WizardStyleDialog

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.