Examples of KongaDialog


Examples of org.jitterbit.ui.dialog.KongaDialog

        this.selector = selector;
    }

    @SuppressWarnings("unchecked")
    public void open() {
        final KongaDialog dialog = new KongaDialog(ApplicationUi.getAppWin().getFrame(), selector.getTitle()) {

            @Override
            protected void onOk() {
                selector.apply();
                super.onOk();
            }
        };
        selector.setCallback(new Receiver() {

            @Override
            public void handle(Object o) {
                dialog.dispose();
            }
        });
        dialog.standardLayout(selector, KongaDialog.OK_CANCEL);
        dialog.setOkButtonAsDefault();
        dialog.manageLocation(getClass());
        dialog.setVisible(true);
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

        this.owner = owner;
    }

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

Examples of org.jitterbit.ui.dialog.KongaDialog

        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);
        dialog.setResizable(false);
        dialog.setOkButtonAsDefault();
        return dialog;
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

        return new TestResultOutcomeFilter(selected);
    }
   
   
    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;
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

        selector.setAttributes(extAttrs);
        return selector;
    }

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

Examples of org.jitterbit.ui.dialog.KongaDialog

            }
        }
    }
   
    private KongaDialog createDialog() {
        KongaDialog dialog = new KongaDialog(UiUtils.getActiveWindow(), "Define Extended Attributes");
        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 5);
        layout.north("Define the extended attributes to use for " + node.getUserObject().getName()).center(ui);
        dialog.standardLayout(layout, KongaDialog.OK_CANCEL);
        dialog.manageLocation(SetExtendedAttributesAction.class);
        dialog.setOkButtonAsDefault();
        return dialog;
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

        }

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

Examples of org.jitterbit.ui.dialog.KongaDialog

                listener.filterChanged(filter);
            }
        }

        private KongaDialog createDialog(final ActivityEntryFilterUi<E> filter, final String title) {
            KongaDialog dialog = new KongaDialog(owner, title) {

                @Override
                protected void onDialogOpened() {
                    filter.requestFocus();
                }
            };
            layoutDialog(dialog, filter);
            if (locationOnScreen != null) {
                dialog.setLocation(locationOnScreen);
                WindowUtils.ensureWindowCompletelyVisibleOnScreen(dialog);
            }
            return dialog;
        }

Examples of org.jitterbit.ui.dialog.KongaDialog

        dialog.setLocationRelativeTo(dialog.getOwner());
        dialog.setVisible(true);
    }
   
    private KongaDialog createEmptyDialog() {
        return new KongaDialog(UiUtils.getActiveWindow(), "Test Result Details");
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

        okEnabler = new OkEnabler();
        ui.addChangeListener(okEnabler);
    }
   
    public boolean open() {
        dialog = new KongaDialog(UiUtils.getActiveWindow(), "Select a WSDL") {

            @Override
            protected void onDialogOpened() {
                super.onDialogOpened();
                ui.requestFocus();
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.