Examples of wasOkPressed()


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

            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

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

    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

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

    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

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

        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

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

                            ui,
                            "Are you sure?",
                            KongaDialog.YES_NO,
                            null);
            dlg.setVisible(true);
            return dlg.wasOkPressed();
        }

        @Override
        public void decorate(UiCanvas canvas) {
            BorderLayoutBuilder p = new BorderLayoutBuilder(0, 10);
View Full Code Here

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

                @Override
                public void run() {
                    KongaDialog dlg = createDialog(prompt);
                    dlg.setVisible(true);
                    goAhead[0] = dlg.wasOkPressed();
                }
            });
        } catch (InterruptedException ex) {
            Thread.currentThread().interrupt();
        } catch (InvocationTargetException ex) {
View Full Code Here

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

                        KongaDialog.YES_NO,
                        null);
        dlg.getRootPane().setDefaultButton(dlg.getYesButton());
        dlg.setVisible(true);
        ui.updatePreferences();
        return dlg.wasOkPressed();
    }
   
   
    private static class Ui implements UiProvider {
View Full Code Here

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

    public static Date selectFromDialog(Date initialDate, Window owner, String title) {
        DatePicker picker = new DatePicker(initialDate);
        KongaDialog dialog = UiProviderDialogDisplayer.createDialog(owner, picker, title,
                        ModalityType.APPLICATION_MODAL, KongaDialog.OK_CANCEL, null);
        dialog.setVisible(true);
        return dialog.wasOkPressed() ? picker.getSelectedDate() : null;
    }

    /**
     * Displays a <code>DatePicker</code> as an overlay in an <code>OverlayContainer</code>.
     *
 
View Full Code Here

Examples of org.jitterbit.ui.input.InputPanelDialog.wasOkPressed()

        dlg.pack();
        dlg.setOkButtonAsDefault();
        dlg.setResizable(false);
        dlg.manageLocation();
        dlg.setVisible(true);
        if (dlg.wasOkPressed()) {
            updateProperties(panel);
        }
    }

    private void updateProperties(final HttpPropertiesPanel panel) {
View Full Code Here

Examples of org.jitterbit.ui.input.InputPanelDialog.wasOkPressed()

            };
            dialog.pack();
            dialog.manageLocation(FileFilterOptionsEditor.class);
            dialog.setOkButtonAsDefault();
            dialog.setVisible(true);
            if (dialog.wasOkPressed()) {
                updateOptions(panel.getOptions(), true);
            }
        }
    }
   
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.