Package org.jitterbit.ui.dialog

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


                @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

                        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

    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

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.