Package org.jitterbit.ui

Examples of org.jitterbit.ui.UiProvider


        dialog.getCancelButton().setText("No Thanks");
        return dialog;
    }

    private void layoutDialog(KongaDialog dialog) {
        UiProvider ui = layoutListAndPreferenceChoice();
        dialog.standardLayout(ui, KongaDialog.OK_CANCEL);
    }
View Full Code Here


        for (SearchableProperty p : SearchMetaData.getSupportedProperties(EntityType.WebServiceCall)) {
            if (p.getValueType().equals(String.class)) {
                fields.add(new StringSearchField(p));
            }
        }
        UiProvider ui = new VerticalSearchFieldsPanel(fields);
        QuickFrame.show(ui, "Search Params");
    }
View Full Code Here

        update(true);
    }

    @Override
    public void decorate(UiCanvas canvas) {
        UiProvider left = layoutList(projectDataElementsList, projectHeaderLabel);
        UiProvider right = layoutList(builtInDataElementsList, new JLabel("Jitterbit Variables",
                            ClientIcons.APPLICATION_16, SwingConstants.LEADING));
        Grid grid = Grid.oneRow(10).addAll(left, right);
        grid.setOpaqueRecursively(false);
        grid.decorate(canvas);
    }
View Full Code Here

        }
    }
   
   
    public static void main(String[] args) {
        UiProvider ui = new OperatorButtonPanel(new Receiver<String>() {
           
            @Override
            public void handle(String s) {
                System.out.println(s);
            }
View Full Code Here

     *            to be re-typed into the second field to protect against typos.
     * @return an array of <tt>char</tt> holding the defined password, or <tt>null</tt> if the
     *         dialog was cancelled.
     */
    public static char[] definePassword(Window owner, String caption, boolean includeReTypeField) {
        UiProvider captionUi = StringUtils.isBlank(caption) ? null : new UiProviderAdapter(new JLabel(caption));
        return definePassword(owner, captionUi, includeReTypeField);
    }
View Full Code Here

            public void handle(String cmd) {
                System.out.println(cmd);
            }
        });
        field.setWidth(100);
        QuickFrame.show(new UiProvider() {

            @Override
            public void requestFocus() {
                field.requestFocus();
            }
View Full Code Here

        JComponent c;
        if (content instanceof JComponent) {
            c = (JComponent) content;
            setFocusedComponent(c);
        } else if (content instanceof UiProvider) {
            UiProvider ui = (UiProvider) content;
            c = wrapUi(ui);
            setFocusedComponent(ui);
        } else {
            throw new RuntimeException();
        }
View Full Code Here

    }
   
    @Override
    public void decorate(UiCanvas canvas) {
        BorderLayoutBuilder layout = new BorderLayoutBuilder(10, 10);
        UiProvider toolbar = createToolbar();
        final KongaSplitPane split = createSplitPane();
        layout.north(toolbar).center(split);
        layout.setBorder(Empty.border(10));
        layout.decorate(canvas);
        DelayedJob.createAndSchedule(25, new Runnable() {
View Full Code Here

            this.transformations = transformations;
        }

        @Override
        public Choice get() {
            UiProvider layout = createLayout();
            ChoiceMessage<Choice> message = new ChoiceMessage<Choice>(layout, "Refresh Transformations?", Choice.values());
            message.setType(Type.WARNING);
            message.setDefaultChoice(Choice.SAVE_AND_REFRESH);
            message.setChoiceIfCancelled(Choice.CANCEL);
            return message.show(page.getWindow().getFrame());
View Full Code Here

        LabelDecorator title = StyleSheet.createPopupWindowTitle(text, style);
        w.setTitle(title, true);
    }

    private JComponent createPopupWindowContent() {
        UiProvider displayer = EntityValidationResultDisplayerFactory.newTreeDisplayer(validationResult);
        return BorderLayoutBuilder.fillWith(displayer);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.UiProvider

Copyright © 2018 www.massapicom. 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.