Examples of KongaSplitPane


Examples of org.jitterbit.ui.widget.split.KongaSplitPane

        layout.center(createSplit());
        setDisplayPanel(layout.container());
    }

    private JSplitPane createSplit() {
        KongaSplitPane split = KongaSplitPane.verticalSplit(opHistoryUi, sourceHistoryUi);
        split.setResizeWeight(0.5);
        return split;

    }
View Full Code Here

Examples of org.jitterbit.ui.widget.split.KongaSplitPane

                    ExpressionAreaStatusPanel statusPanel) {
        return new BorderLayoutBuilder().center(expressionArea).south(statusPanel).container();
    }

    protected static KongaSplitPane createSplitPane(int orientation, boolean oneTouchExpandable) {
        KongaSplitPane split = ComponentFactories.splitPaneFactory().newSplitPane(orientation);
        split.setDividerSize(oneTouchExpandable ? 8 : 4);
        split.setOneTouchExpandable(oneTouchExpandable);
        split.setResizeWeight(0.5);
        return split;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.split.KongaSplitPane

        if (providers.isEmpty()) {
            ui = null;
        } else if (providers.size() == 1) {
            ui = BorderLayoutBuilder.fillWith(providers.get(0));
        } else {
            KongaSplitPane split = createSplitPane();
            ui = split;
            splitParts(providers, split);
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.split.KongaSplitPane

    public JComponent getUi() {
        return ui;
    }
   
    private KongaSplitPane createSplitPane() {
        KongaSplitPane split = ComponentFactories.splitPaneFactory().newSplitPane(JSplitPane.HORIZONTAL_SPLIT);
        split.setDividerSize(4);
        split.setResizeWeight(0.50);
        return split;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.split.KongaSplitPane

    private KongaSplitPane addRightComponent(List<UiProvider> providers, KongaSplitPane split, int n, JComponent c) {
        if (n == (providers.size() - 1)) {
            split.setRightComponent(c);
        } else {
            KongaSplitPane right = createSplitPane();
            right.setLeftComponent(c);
            split.setRightComponent(right);
            split = right;
        }
        return split;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.split.KongaSplitPane

            deWidget.decorate(canvas);
        }
    }

    private void layoutWithReferences(UiCanvas canvas) {
        KongaSplitPane split = new KongaSplitPane(JSplitPane.HORIZONTAL_SPLIT);
        split.setOneTouchExpandable(true);
        split.setResizeWeight(0.5);
        // HACK: Just setting the minimum size of the split pane's right-component does
        // not work; the divider cannot be moved all the way to the right anyway. I believe
        // this is because of the JTable inside of the DataElementReferenceTable.
        JComponent c = BorderLayoutBuilder.fillWith(referencesTable);
        ComponentTraverser.traverse(c, new Acceptor<Component>() {

            @Override
            public boolean accept(Component t) {
                t.setMinimumSize(new Dimension(1, 1));
                return !(t instanceof JTable);
            }
        });
        split.split(deWidget, new UiProviderAdapter(c));
        canvas.display(split);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.split.KongaSplitPane

            }
        });
    }

    private KongaSplitPane createSplitPane() {
        KongaSplitPane splitPane = KongaSplitPane.horizontalSplit(layoutDataElementsViewer(), layoutResultArea());
        splitPane.setDividerLocation(0.5);
        splitPane.setResizeWeight(0.5);
        return splitPane;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.split.KongaSplitPane

   
    @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() {
           
            @Override
            public void run() {
                split.setDividerLocation(0.70);
            }
        });
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.split.KongaSplitPane

        toolbar.setBorder(new BorderBuilder().etched().empty(3));
        return toolbar;
    }

    private KongaSplitPane createSplitPane() {
        final KongaSplitPane split = new KongaSplitPane(KongaSplitPane.HORIZONTAL_SPLIT, scriptArea, importsArea);
        split.setOneTouchExpandable(true);
        split.setResizeWeight(1.0);
        return split;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.split.KongaSplitPane

    @Override
    public void run() {
        StackedSections stack = createStack();
        KongaTextArea textArea = new KongaTextArea(20, 50);
        KongaSplitPane split = KongaSplitPane.horizontalSplit(textArea.asUiProvider(), stack);
        QuickFrame.show(split, null);
        stack.openSection(0);
    }
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.