Package org.jitterbit.application.ui.widget

Examples of org.jitterbit.application.ui.widget.HideableSplitPane


            sectionSplit = createSectionSplit();
        }
    }

    private SectionedSplitPane createSectionSplit() {
        HideableSplitPane split = new HideableSplitPane(JSplitPane.HORIZONTAL_SPLIT, 1);
        split.putClientProperty("section_split", Boolean.TRUE);
        split.setResizeWeight(0.75);
        split.setOpaque(false);
        split.setDividerSize(4);
        split.setLeftMinimumSize(new Dimension(50, 50));
        split.setLeftComponent(left);
        SectionedSplitPane sections = new SectionedSplitPane(split);
        sections.setIncludeControlPanelInLayout(false);
        sections.setOpaque(false);
        return sections;
    }
View Full Code Here


        return sections;
    }

    @Override
    public void setDebugUi(ScriptTestUi debugUi) {
        HideableSplitPane split = createTopBottomSplit();
        // TODO: Keyboard shortcut for the toggle.
        topBottomToggle = new HideableSplitPaneToggle(split, Icons.TEST_ICON_16);
        topBottomToggle.setToolTipWhenDisplayed("Hide the test console");
        topBottomToggle.setToolTipWhenHidden("Show the test console");
        split.setTopComponent(top);
        split.setBottomComponent(debugUi);
        left.center(split);
        topBottomSplit = split;
        split.addPropertyChangeListener(HideableSplitPane.HIDDEN, new PropertyChangeListener() {

            @Override
            public void propertyChange(PropertyChangeEvent evt) {
                if
                (Boolean.FALSE.equals(evt.getNewValue())) {
View Full Code Here

            }
        });
    }

    private static HideableSplitPane createTopBottomSplit() {
        HideableSplitPane split = new HideableSplitPane(JSplitPane.VERTICAL_SPLIT, 1);
        split.putClientProperty("test_split", Boolean.TRUE);
        split.setDividerSize(4);
        split.setResizeWeight(0.5);
        split.setBottomMinimumSize(new Dimension(0, 0));
        split.setBottomPreferredSize(new Dimension(20, 20));
        split.setDividerHidden(false);
        return split;
    }
View Full Code Here

        p.setMinimumSize(new Dimension(1, 1));
        return p;
    }

    private static HideableSplitPane createSplitPane(int split, int sign, boolean hidden) {
        HideableSplitPane splitPane = new HideableSplitPane(split, sign);
        splitPane.setOneTouchExpandable(true);
        splitPane.setDividerSize(DIVIDER_SIZE);
        splitPane.setDividerHidden(hidden);
        return splitPane;
    }
View Full Code Here

    private class Layout {

        private final SectionedSplitPane sections;

        public Layout() {
            HideableSplitPane splitPane = createSplitPane();
            sections = new SectionedSplitPane(splitPane);
            layoutTextArea();
            layoutAvailableTables();
            sections.setControlPanelBorder(null);
        }
View Full Code Here

            layoutAvailableTables();
            sections.setControlPanelBorder(null);
        }

        private HideableSplitPane createSplitPane() {
            HideableSplitPane split = new HideableSplitPane(JSplitPane.VERTICAL_SPLIT, 1);
            split.setDividerSize(4);
            split.setResizeWeight(0.5);
            return split;
        }
View Full Code Here

        this.model = model;
        tree = new ServerProjectsTree(model);
        subViews = new ProjectConsoleSubViewTabContainer();
        consoleActions = new ProjectConsoleAction[0];
        waitService = new DummyWaitService();
        splitPane = new HideableSplitPane(JSplitPane.VERTICAL_SPLIT, 1);
        splitPane.setDividerHidden(true);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.widget.HideableSplitPane

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.