Package org.flexdock.docking.defaults

Examples of org.flexdock.docking.defaults.DefaultDockingPort$PortLayout


        return p;
    }

    private static DefaultDockingPort buildDockingPort(String desc) {
        // create the DockingPort
        DefaultDockingPort port = createDockingPort();

        // create the Dockable panel
        CompoundDemo cd = new CompoundDemo(desc);
        DockingManager.registerDockable(cd.getDockable());

        // dock the panel and return the DockingPort
        port.dock(cd.getDockable(), CENTER_REGION);
        return port;
    }
View Full Code Here


        port.dock(cd.getDockable(), CENTER_REGION);
        return port;
    }

    private static DefaultDockingPort createDockingPort() {
        DefaultDockingPort port = new DefaultDockingPort();
        port.setBackground(Color.gray);
        port.setPreferredSize(new Dimension(100, 100));
        return port;
    }
View Full Code Here

        return p;
    }

    private static DefaultDockingPort buildDockingPort(String desc) {
        // create the DockingPort
        DefaultDockingPort port = createDockingPort();

        // create the Dockable panel
        SplitPaneDemo spd = new SplitPaneDemo(desc);
        DockingManager.registerDockable(spd.getDockable());

        // dock the panel and return the DockingPort
        port.dock(spd.getDockable(), CENTER_REGION);
        return port;
    }
View Full Code Here

        port.dock(spd.getDockable(), CENTER_REGION);
        return port;
    }

    private static DefaultDockingPort createDockingPort() {
        DefaultDockingPort port = new DefaultDockingPort();
        port.setBackground(Color.gray);
        port.setPreferredSize(new Dimension(100, 100));
        port.getDockingProperties().setSingleTabsAllowed(true);
        port.setTabsAsDragSource(true);
        return port;
    }
View Full Code Here

        return p;
    }

    private static DefaultDockingPort buildDockingPort(String desc) {
        // create the DockingPort
        DefaultDockingPort port = createDockingPort(desc);

        // create the Dockable panel
        TabbedPaneDemo cd = new TabbedPaneDemo(desc);
        DockingManager.registerDockable(cd.getDockable());

        // dock the panel and return the DockingPort
        port.dock(cd.getDockable(), CENTER_REGION);
        return port;
    }
View Full Code Here

            return JTabbedPane.LEFT;
        return JTabbedPane.TOP;
    }

    private static DefaultDockingPort createDockingPort(String desc) {
        DefaultDockingPort port = new DefaultDockingPort();
        port.setBackground(Color.gray);
        port.setPreferredSize(new Dimension(200, 100));
        port.getDockingProperties().setTabPlacement(getTabPosition(desc));
        return port;
    }
View Full Code Here

        return p;
    }

    private DefaultDockingPort buildDockingPort(Color color, String desc) {
        // create the DockingPort
        DefaultDockingPort port = createDockingPort();

        // create and register the Dockable panel
        JPanel p = new JPanel();
        p.setBackground(color);
        p.add(new JLabel("Drag Me"));
        DockingManager.registerDockable(p, desc);

        // dock the panel and return the DockingPort
        port.dock(p, CENTER_REGION);
        return port;
    }
View Full Code Here

        port.dock(p, CENTER_REGION);
        return port;
    }

    private DefaultDockingPort createDockingPort() {
        DefaultDockingPort port = new DefaultDockingPort();
        port.setBackground(Color.ORANGE);
        port.setPreferredSize(new Dimension(100, 100));
        return port;
    }
View Full Code Here

        setContentPane(createContentPane());
    }

    private Container createContentPane() {
        port = new DefaultDockingPort();
        Titlepane pane1 = new Titlepane("View 1");
        Titlepane pane2 = new Titlepane("View 2");
        Titlepane pane3 = new Titlepane("View 3");
        Titlepane pane4 = new Titlepane("View 4");
        Titlepane pane5 = new Titlepane("View 5");
View Full Code Here

        });
        SimpleAttributeSet out = new SimpleAttributeSet();
        SimpleAttributeSet err = new SimpleAttributeSet();
        StyleConstants.setForeground(err, Color.RED);

        scriptContainer = new DefaultDockingPort("scripts");
        DockingPortPropertySet props = scriptContainer.getDockingProperties();
        props.setSingleTabsAllowed(true);
        props.setTabPlacement(JTabbedPane.TOP);
        dock.dock(scriptContainer, DockingConstants.CENTER_REGION);
        DockingManager.setMainDockingPort(this, "scripts");
View Full Code Here

TOP

Related Classes of org.flexdock.docking.defaults.DefaultDockingPort$PortLayout

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.