Package org.jitterbit.ui

Examples of org.jitterbit.ui.UiCanvas


    @Override
    public void decorate(JComponent view) {
        BorderLayoutBuilder layout = new BorderLayoutBuilder();
        final JScrollPane sp = new KongaScrollPane();
        ui.decorate(new UiCanvas() {

            @Override
            public void display(Component c) {
                sp.setViewportView(c);
            }
View Full Code Here


        layoutSouthPart();
    }

    private void layoutSouthPart() {
        final JComponent south = createSouthComponent();
        UiCanvas canvas = new UiCanvas() {

            @Override
            public void display(Component c) {
                south.add(c);
            }
View Full Code Here

            public Dimension getMaximumSize() {
                return getPreferredSize();
            }
        };
        InvisiblePanel.convert(p);
        UiCanvas canvas = new UiCanvas() {

            @Override
            public void display(Component c) {
                p.add(c);
            }
View Full Code Here

        dialog = new DialogImpl(UiUtils.getActiveWindow(), getDialogTitle());
        addDialogButtons(dialog.getDefaultLayout());
    }

    private void addDialogButtons(final BorderLayoutBuilder layout) {
        actions.setDialog(dialog, new UiCanvas() {

            @Override
            public void display(Component c) {
                if (c instanceof JComponent) {
                    ((JComponent) c).setBorder(Empty.border(10, 0, 10, 0));
View Full Code Here

            col.add(TextStyles.InfoText.makeLabel(caption));
        }
    }

    private void layoutPrefUi(final OneColumnPanel col) {
        prefUi.decorate(new UiCanvas() {

            @Override
            public void display(Component c) {
                col.setFillNone();
                col.add(c);
View Full Code Here

        BorderLayout layout = (BorderLayout) pageArea.getLayout();
        Component center = layout.getLayoutComponent(BorderLayout.CENTER);
        if (center != null) {
            pageArea.remove(center);
        }
        page.decorate(new UiCanvas() {

            @Override
            public void display(Component c) {
                pageArea.add(c, BorderLayout.CENTER);
                JComponent jc = (JComponent) c;
View Full Code Here

            panel = new JPanel(new CardLayout());
            panel.setBorder(Empty.border(5, 20, 0, 0));
        }

        public void addSelector(final JmsMessagePanelPart part, final PayloadStructureType type) {
            part.decorate(new UiCanvas() {

                @Override
                public void display(Component c) {
                    panel.add(c, type.name());
                }
View Full Code Here

        public void decorate(UiCanvas canvas) {
            final OneColumnPanel col = new OneColumnPanel();
            col.setInsets(5, 0, 5, 0);
            col.setWeightX(1.0);
            col.add(getCaption());
            super.decorate(new UiCanvas() {

                @Override
                public void display(Component c) {
                    col.setFillNone();
                    col.add(c);
View Full Code Here

        impl = new DefaultPortDefiner(parent, columns);
    }
   
    @Override
    public void layout(final LayoutContainer container) {
        impl.decorate(new UiCanvas() {

            @Override
            public void display(Component c) {
                container.add(c);
            }
View Full Code Here

     *            the <code>Container</code> in which the provided UI should be displayed.
     * @param layout
     *            optional layout constraints used by the <code>Container</code>.
     */
    public static void decorate(final UiProvider provider, final Container container, final Object layout) {
        provider.decorate(new UiCanvas() {

            @Override
            public void display(Component c) {
                container.add(c, layout);
            }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.UiCanvas

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.