Package org.jitterbit.ui.dialog

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


    public RouteType select(Operation from, IntegrationEntity to) {
        Ui ui = new Ui(from, to);
        KongaDialog dlg = createDialog(ui);
        listen(ui, dlg);
        dlg.setVisible(true);
        return dlg.wasOkPressed() ? ui.getSelection() : null;
    }

    private KongaDialog createDialog(Ui ui) {
        KongaDialog dialog = new WizardStyleDialog(owner, Strings.get("RouteTypeSelector.Title"), ui);
        dialog.manageLocation(RouteTypeSelector.class);
View Full Code Here


    public TestResultFilter openSelector() {
        KongaDialog dialog = UiProviderDialogDisplayer.createDialog(UiUtils.getActiveWindow(), this, "Select Outcomes",
                        ModalityType.DOCUMENT_MODAL, KongaDialog.OK_CANCEL, OutcomeFilterUi.class);
        dialog.setResizable(false);
        dialog.setVisible(true);
        return dialog.wasOkPressed() ? getFilter() : null;
    }
   
}
View Full Code Here

    }

    private void openDialog(ClassNameNode node) {
        KongaDialog dialog = createDialog();
        dialog.setVisible(true);
        if (dialog.wasOkPressed()) {
            if (ui.isValid()) {
                applyAttributes();
            } else {
                Alert.error("Invalid input. Make sure all attributes have valid names.", "Invalid Input");
                openDialog(node);
View Full Code Here

        @Override
        public void display(String title, ActivityEntryFilterUi<E> filter, FilterListener listener) {
            String originalFilter = filter.getFilterString();
            KongaDialog dlg = createDialog(filter, title);
            dlg.setVisible(true);
            if (dlg.wasOkPressed()) {
                filter.apply();
                notifyFilterListeners(filter, listener, originalFilter);
            }
        }
View Full Code Here

        assert EventQueue.isDispatchThread() : "getPassword() must be called from the EDT";
        checkNotNull(jp, "jp");
        JitterPackPasswordPrompter prompter = new JitterPackPasswordPrompter(jp);
        KongaDialog dlg = createDialog(owner, prompter);
        dlg.setVisible(true);
        return dlg.wasOkPressed() ? prompter.pwdField.getPassword() : null;
    }

    private static KongaDialog createDialog(Window owner, JitterPackPasswordPrompter prompter) {
        final KongaDialog dlg = UiProviderDialogDisplayer.createDialog(
                        owner,
View Full Code Here

                        Dialog.DEFAULT_MODALITY_TYPE,
                        KongaDialog.OK_CANCEL,
                        SetSiblingsAction.class);
        dlg.setOkButtonAsDefault();
        dlg.setVisible(true);
        if (dlg.wasOkPressed()) {
            applySelection(selector, node);
        }
    }

    private void applySelection(SiblingListSelector selector, OperationWrapperNode node) {
View Full Code Here

   
    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

        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

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

            @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

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.