Examples of wasOkPressed()


Examples of org.jitterbit.ui.dialog.KongaDialog.wasOkPressed()

   
    public static CROM selectNode(JFrame owner, Transformation tx, SourceTarget st, String initialSelection) {
        ChunkNodeSelector selector = new ChunkNodeSelector(initialSelection);
        KongaDialog dlg = createDialog(owner, selector, tx, st);
        dlg.setVisible(true);
        return dlg.wasOkPressed() ? selector.getSelectedNode() : null;
    }

    private static KongaDialog createDialog(JFrame owner,
                                            final ChunkNodeSelector selector,
                                            final Transformation tx,
View Full Code Here

Examples of org.jitterbit.ui.dialog.KongaDialog.wasOkPressed()

        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

Examples of org.jitterbit.ui.dialog.KongaDialog.wasOkPressed()

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

Examples of org.jitterbit.ui.dialog.KongaDialog.wasOkPressed()

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

            private KongaDialog createDialog(Ui ui) {
View Full Code Here

Examples of org.jitterbit.ui.dialog.KongaDialog.wasOkPressed()

    public static LoadSourceDataInput getInput(DatabaseStructure dbStruct) {
        assert EventQueue.isDispatchThread() : "This method must be called on the EDT";
        DatabaseFilterDefiner d = new DatabaseFilterDefiner(dbStruct);
        KongaDialog dlg = createDialog(UiUtils.getActiveFrame(), d.getDefiner());
        dlg.setVisible(true);
        if (dlg.wasOkPressed()) {
            return d.getDefiner().getInput();
        }
        return null;
    }
View Full Code Here

Examples of org.jitterbit.ui.dialog.KongaDialog.wasOkPressed()

        };
        dialog.setFocusedComponent(joinProperties);
        dialog.manageLocation(JoinPropertiesUi.class);
        dialog.setOkButtonAsDefault();
        dialog.setVisible(true);
        if (dialog.wasOkPressed()) {
            joinProperties.apply();
            return true;
        }
        return false;
    }
View Full Code Here

Examples of org.jitterbit.ui.dialog.KongaDialog.wasOkPressed()

            KongaDialog dialog = createDialog(owner, table);
            dialog.pack();
            dialog.manageLocation(InvalidMappingsViewer.class);
            dialog.setOkButtonAsDefault();
            dialog.setVisible(true);
            if (dialog.wasOkPressed()) {
                applyChanges();
            }
        }

        private KongaDialog createDialog(final Window owner, final InvalidMappingsTable table) {
View Full Code Here

Examples of org.jitterbit.ui.dialog.KongaDialog.wasOkPressed()

            public Resolution get() {
                Ui ui = new Ui();
                KongaDialog dialog = createDialog(ui);
                dialog.setLocationRelativeTo(null);
                dialog.setVisible(true);
                if (dialog.wasOkPressed()) {
                    if (ui.isOverwriteSelected()) {
                        model.setFileName(originalFileName);
                        return Resolution.OVERWRITE;
                    }
                    return Resolution.NEW_NAME;
View Full Code Here

Examples of org.jitterbit.ui.dialog.KongaDialog.wasOkPressed()

        @Override
        public void show(NodeRenamerPanel panel) {
            KongaDialog dlg = createDialog(panel);
            dlg.setVisible(true);
            if (dlg.wasOkPressed()) {
                applyNewName(panel.getNewName());
            }
        }

        private KongaDialog createDialog(final NodeRenamerPanel panel) {
View Full Code Here

Examples of org.jitterbit.ui.dialog.KongaDialog.wasOkPressed()

    private static String askForPassword(Locatable original) {
        KongaPasswordField field = new KongaPasswordField(20);
        OneColumnPanel col = layoutQuestion(original, field);
        KongaDialog dialog = createDialog(field, col);
        dialog.setVisible(true);
        return dialog.wasOkPressed() ? new String(field.getPassword()) : null;
    }

    private static OneColumnPanel layoutQuestion(Locatable original, KongaPasswordField field) {
        OneColumnPanel col = new OneColumnPanel();
        col.setInsets(0, 0, 10, 0);
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.