Examples of KongaDialog


Examples of org.jitterbit.ui.dialog.KongaDialog

     */
    public static char[] getPassword(JitterPack jp, Window owner) {
        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;
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

    private void selectSiblings(OperationWrapperNode node, WebServiceCall wsCall) {
        SiblingListSelector selector = new SiblingListSelector(
                        controller.getProject(), wsCall, node.getDataObject().getActivity(),
                        getCurrentSiblings(node));
        KongaDialog dlg = UiProviderDialogDisplayer.createDialog(
                        controller.getGraph().getWindowOwner(),
                        selector,
                        Strings.get("SiblingSelector.Title"),
                        Dialog.DEFAULT_MODALITY_TYPE,
                        KongaDialog.OK_CANCEL,
                        SetSiblingsAction.class);
        dlg.setOkButtonAsDefault();
        dlg.setVisible(true);
        if (dlg.wasOkPressed()) {
            applySelection(selector, node);
        }
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

    private JmsMessage getSourceMessage() {
        return model.getSourceMessage();
    }
   
    private KongaDialog createDialog() {
        KongaDialog dlg = null;
        String title = PackageResources.PropertiesDialog.getTitle(getSourceMessage());
        Window owner = trigger.getDialogOwner();
        if (owner instanceof Frame) {
            dlg = new KongaDialog((Frame) owner, title, false);
        } else if (owner instanceof Dialog) {
            dlg = new KongaDialog((Dialog) owner, title, null, false);
        } else {
            throw new IllegalArgumentException("Invalid dialog owner: " + (owner != null ? owner.getClass() : "null")); //$NON-NLS-1$ //$NON-NLS-2$
        }
        createContentPane(dlg);
        dlg.pack();
        dlg.setLocationRelativeTo(owner);
        dlg.manageLocation(MessagePropertiesDialog.class);
        dlg.addWindowListener(new WindowAdapter() {

            @Override
            public void windowClosed(WindowEvent e) {
                dialogGate.setEnabled(true);
                MessagePropertiesDialog.this.dialog = null;

Examples of org.jitterbit.ui.dialog.KongaDialog

            this.memento = memento;
            this.monitor = monitor;
        }

        public void open() {
            dialog = new KongaDialog(UiUtils.getActiveWindow(), "Replace Done");
            BorderLayoutBuilder layout = layout();
            dialog.standardLayout(layout, null);
            dialog.setResizable(false);
            dialog.setLocationRelativeTo(null);
            dialog.setVisible(true);

Examples of org.jitterbit.ui.dialog.KongaDialog

        }

        private void showMessage(OperationLogEntry log) {
            HtmlLogMessageDisplayer m = new HtmlLogMessageDisplayer();
            m.displayDetails(log);
            KongaDialog dialog = createDialog(m);
            dialog.setVisible(true);
        }

Examples of org.jitterbit.ui.dialog.KongaDialog

            KongaDialog dialog = createDialog(m);
            dialog.setVisible(true);
        }

        private KongaDialog createDialog(HtmlLogMessageDisplayer m) {
            KongaDialog dialog = new KongaDialog(getOwner(), "Log Message");
            dialog.standardLayout(m, KongaDialog.CLOSE_ONLY);
            dialog.manageLocation(OperationActivityMonitor.class);
            WindowUtils.ensureMinimumSize(dialog, 400, 300);
            dialog.setCloseButtonAsDefault();
            return dialog;
        }

Examples of org.jitterbit.ui.dialog.KongaDialog

     *            the owner of the dialog
     */
    public void open(Window owner) {
        EntitySearchPanel searchPanel = createSearchUi();
        if (searchPanel != null) {
            KongaDialog dialog = createDialog(owner, searchPanel);
            dialog.setVisible(true);
        }
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

            return new VerticalSearchFieldsPanel(fields);
        }
    }

    private KongaDialog createDialog(Window owner, EntitySearchPanel searchPanel) {
        KongaDialog dialog = new WizardStyleDialog(owner, "Search & Replace", searchPanel, KongaDialog.CLOSE_ONLY, false);
        dialog.manageLocation(SearchAndReplaceAction.class);
        return dialog;
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

*/
public final class ChunkNodeSelectorDialog {
   
    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;
    }

Examples of org.jitterbit.ui.dialog.KongaDialog

    private static KongaDialog createDialog(JFrame owner,
                                            final ChunkNodeSelector selector,
                                            final Transformation tx,
                                            final SourceTarget st) {
        final KongaDialog dlg = new KongaDialog(owner, "Select the Chunk Node", true);
        dlg.standardLayout(selector, KongaDialog.OK_CANCEL);
        dlg.manageLocation(ChunkNodeSelectorDialog.class);
        dlg.addWindowListener(new WindowAdapter() {

            @Override
            public void windowOpened(WindowEvent e) {
                selector.createStructures(tx, st);
            }
        });
        selector.addSelectionListener(new SelectionListener() {

            @Override
            public void selectionChanged(SelectionChangedEvent evt) {
                updateOkButton(selector, dlg);
            }
        });
        selector.setDefaultAction(new AbstractSelectionAction() {
           
            @Override
            public void actionPerformed(ActionEvent e) {
                dlg.getOkActionListener().actionPerformed(e);
            }
        });
        updateOkButton(selector, dlg);
        dlg.setMinimumSize(new Dimension(400, 300));
        dlg.setOkButtonAsDefault();
        return dlg;
    }
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.