Examples of wasOkPressed()


Examples of org.jitterbit.application.ui.widget.WizardStyleDialog.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.application.ui.widget.WizardStyleDialog.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.application.ui.widget.WizardStyleDialog.wasOkPressed()

            WizardStyleDialog dialog = new WizardStyleDialog(owner, TransformationResources.getString("TargetUpdateKeysEditor.Title"), ui);
            dialog.setResizable(false);
            dialog.setOkButtonAsDefault();
            dialog.manageLocation(TargetUpdateKeysEditor.class);
            dialog.setVisible(true);
            return dialog.wasOkPressed();
        }
    }

}
View Full Code Here

Examples of org.jitterbit.application.ui.widget.WizardStyleDialog.wasOkPressed()

    }

    private void openTargetSelector() {
        EntityTypeSelectionPanel selector = createSelector();
        WizardStyleDialog dialog = openDialog(selector);
        if (dialog.wasOkPressed()) {
            EnumSet<EntityType> destinationTypes = selector.getSelection();
            if (!destinationTypes.isEmpty()) {
                startDuplication(destinationTypes);
            }
        }
View Full Code Here

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

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

    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

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

    }

    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

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

        @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

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

        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

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

                        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
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.