Examples of KongaDialog


Examples of org.jitterbit.ui.dialog.KongaDialog

    }

    public void show() {
        SummaryTable table = createTable();
        String title = createTitle();
        KongaDialog dialog = createDialog(table, title);
        dialog.setVisible(true);
        dialog.removeFromLocationManager();
        if (dialog.wasCancelled()) {
            undo();
        }
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

        dialog = createDialog(title, parent);
        new DialogSelectionSupport(selectionSource, dialog);
    }
   
    private KongaDialog createDialog(String title, Component parent) {
        KongaDialog dialog = new KongaDialog(SwingUtilities.getWindowAncestor(parent), title) {

            @Override
            protected void onDialogClose() {
                super.onDialogClose();
                turnOffAutoBehaviorChoice.apply();
            }

            @Override
            protected void onDialogOpened() {
                super.onDialogOpened();
                giveFocusToList();
            }

            private void giveFocusToList() {
                EventQueue.invokeLater(new Runnable() {

                    @Override
                    public void run() {
                        selectionUi.requestFocus();
                    }
                });
            }
        };
        layoutDialog(dialog);
        dialog.setLocationRelativeTo(null);
        dialog.setOkButtonAsDefault();
        dialog.getCancelButton().setText("No Thanks");
        return dialog;
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

                            "\" 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;
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

        ui = new FileTemplateWizardUi(appWin, segmentType);
        factories = createFactories();
    }
   
    public void start() {
        final KongaDialog dlg = createDialog();
        EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                dlg.setLocationRelativeTo(dlg.getParent());
                dlg.setVisible(true);
                if (dlg.wasOkPressed()) {
                    createStructure();
                } else {
                    callback.cancelled(null);
                }
            }

Examples of org.jitterbit.ui.dialog.KongaDialog

        });
    }

    private KongaDialog createDialog() {
        JFrame owner = appWin.getFrame();
        final KongaDialog dlg = new FileTemplateWizardDialog(owner, ui);
        dlg.getOKButton().setEnabled(false);
        ui.setValidationListener(new Enablable() {

            @Override
            public boolean isEnabled() {
                return dlg.getOKButton().isEnabled();
            }

            @Override
            public void setEnabled(boolean value) {
                dlg.getOKButton().setEnabled(value);
            }
        });
        return dlg;
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

        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;
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

    public ApplicationLogLevelConsoleDialog(ApplicationLogLevelConsole console) {
        this.console = console;
    }

    public void show(Window owner) {
        KongaDialog dialog = new KongaDialog(owner, "Configure Application Log Levels") {

            @Override
            protected void onApply() {
                applyLogLevels();
            }

            private void applyLogLevels() {
                console.apply();
                saveLogLevels();
            }

            @Override
            protected void onOk() {
                applyLogLevels();
                super.onOk();
            }
        };
        layoutDialog(dialog);
        dialog.manageLocation(getClass());
        dialog.setVisible(true);
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

        EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                restoreAllVisitedPages();
                KongaDialog dlg = createDialog(ui);
                dlg.setVisible(true);
                if (dlg.wasOkPressed()) {
                    apply(dlg.getOwner());
                }
            }

            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;
            }
        });
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 10).withEmptyBorder(10, 10, 10, 10);
        layout.center(Alert.getDisplayMessage(message));
        layout.west(layoutTypeIcon());
        layout.south(layoutButtons());
        Window window = (owner != null ? SwingUtilities.getWindowAncestor(owner) : UiUtils.getActiveWindow());
        KongaDialog dialog = new KongaDialog(window, title);
        layout.asContentPaneFor(dialog);
        return dialog;
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

        if (dialog != null) {
            dialog.toFront();
            return;
        }
        content.addResource(new DialogCloser());
        KongaDialog dialog = createDialog();
        registerDialogListener(dialog);
        installFocusListener(dialog);
        this.dialog = dialog;
        dialog.setVisible(true);
    }
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.