Package org.jitterbit.ui.dialog

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


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

            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

            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

        @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

    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

            tree.setSelectedClasses(preSelected);
            KongaDialog dialog = new KongaDialog(UiUtils.getActiveWindow(), title);
            dialog.standardLayout(tree, KongaDialog.OK_CANCEL);
            dialog.manageLocation(AuxiliaryClassSelector.class);
            dialog.setVisible(true);
            if (dialog.wasOkPressed()) {
                List<ObjectClassStructure> selected = tree.getSelectedStructures();
                callback.completed(selected.toArray(new ObjectClassStructure[selected.size()]));
            } else {
                callback.cancelled();
            }
View Full Code Here

    private void displayDialog() {
        WhereClauseEditorUi.State memento = ui.getMemento();
        KongaDialog dlg = new EditorDialog(page.getWindow(), ui);
        dlg.setVisible(true);
        if (dlg.wasOkPressed()) {
            handleNewInput(memento);
        } else {
            ui.setMemento(memento);
        }
    }
View Full Code Here

    private int show() {
        KongaDialog dlg = createDialog();
        dlg.manageLocation(DirtyDelegatesDialog.class);
        dlg.setVisible(true);
        return dlg.wasOkPressed() ? SAVE : CANCEL;
    }

    private KongaDialog createDialog() {
        KongaDialog dlg = new KongaDialog(owner, PackageResources.DirtyDelegates.TITLE);
        layoutDialog(dlg);
View Full Code Here

        ui.addActionListener(dialog.getOkActionListener());
        dialog.setLocationRelativeTo(null);
        dialog.setResizable(false);
        dialog.setOkButtonAsDefault();
        dialog.setVisible(true);
        if (dialog.wasOkPressed()) {
            return new PasswordAuthentication(ui.getUserName(), ui.getPassword());
        }
        return null;
    }
   
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.