Package org.noos.xing.mydoggy.plaf.ui.cmp

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout


        // Setup type descriptor templates...
        FloatingTypeDescriptor typeDescriptor = (FloatingTypeDescriptor) toolWindowManager.getTypeDescriptorTemplate(ToolWindowType.FLOATING);
        typeDescriptor.setTransparentDelay(0);

        // Register tools
        JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{20, -1, 20}, {20, -1, 20}}));
        panel.add(new JButton("Hello World 2"), "1,1,FULL,FULL");

        // JXDatePicker panel
        final JLabel label = new JLabel();
        label.setText("Choose Date by selecting below.");
View Full Code Here


    }


    protected void initComponents() {
        mainPanel = new JPanel();
        sheet = new TranslucentPanel(new ExtendedTableLayout(new double[][]{{2, TableLayout.FILL, 2}, {2, TableLayout.FILL, 2}}));
        layeredPane = descriptor.getManager().getLayeredPane();
    }
View Full Code Here

    public Component getComponent() {
        ViewContext viewContext = new MapViewContext();
        viewContext.put(ToolWindowManager.class, toolWindowManager);

        JPanel panel = new JPanel();
        panel.setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1, 5, -1}}));
        panel.add(new PreferencePanelView(viewContext).getComponent(), "0,0,FULL,FULL");
        panel.add(new ContentTableView(viewContext).getComponent(),    "0,2,FULL,FULL");

        return panel;
    }
View Full Code Here

                                      null,
                                      false);
        }
        window.setName("toolWindow.floating.window." + toolWindow.getId());

        JPanel contentPane = new JPanel(new ExtendedTableLayout(new double[][]{{1, TableLayout.FILL, 1}, {1, TableLayout.FILL, 1}}));
        contentPane.setBorder(BorderFactory.createLineBorder(Color.GRAY));
        window.setContentPane(contentPane);

        new FloatingToolTransparencyListener(this, descriptor, window.getWindow());
        resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window.getWindow());
View Full Code Here

        for (int i = 0, index = 1; i < rows; i++) {
            layoutRows[index] = -2;
            layoutRows[index + 1] = 3;
            index += 2;
        }
        setLayout(new ExtendedTableLayout(new double[][]{layoutCols, layoutRows}));
    }
View Full Code Here

* @author Angelo De Caro (angelo.decaro@gmail.com)
*/
public class TitlePanel extends JPanel {

    public TitlePanel(String title, Component component) {
        setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
        add(component, "0,0,FULL,FULL");
        setBorder(new TitledBorder(title));
    }
View Full Code Here

        SwingUtil.repaint(panel);
    }

    protected void initComponents() {
        if (this.panel != null)
            this.panel.setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
        else
            this.panel = new JPanel(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));
    }
View Full Code Here

*/
public class ToolBarContentPanel extends JPanel {
    protected JToolBar toolBar;

    public ToolBarContentPanel(Component content) {
        setLayout(new ExtendedTableLayout(new double[][]{{-1},{25,3,-1}}));
        add(toolBar = new JToolBar(), "0,0,r,FULL");
        toolBar.setBorderPainted(false);
        toolBar.setFloatable(false);
        toolBar.setOpaque(false);
       
View Full Code Here

        super(viewContext);
    }

    protected Component initComponent() {
        // Setup welcome panel...
        JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{-1, 100, 5, 160, 3, 100, 5, 160, -1},
                                                                         {-1, 5, 60, 5, 60, 5, 60, 5, 60, 5, -1}})) {
            public void setUI(PanelUI ui) {
                if (getUI() == null)
                    super.setUI(ui);
            }
        };

        panel.setBackground(Colors.blu);

        panel.add(renderButton("Manager", ToolWindowManager.class),
                  "1,2,FULL,FULL");
        panel.add(renderLabel("<html>Edit <br>ToolWindowManager <br> properties </html>"),
                  "3,2,FULL,FULL");

        panel.add(renderButton("Tools", ToolWindow.class),
                  "1,4,FULL,FULL");
        panel.add(renderLabel("<html>Edit <br>ToolWindows <br> properties</html>"),
                  "3,4,FULL,FULL");

        panel.add(renderButton("Contents", Content.class),
                  "1,6,FULL,FULL");
        panel.add(renderLabel("<html>Edit <br>Contents <br> properties</html>"),
                  "3,6,FULL,FULL");

        panel.add(renderButton("<html>Nested<br> Tool Manager", MyDoggySetContext.ActionKey.NEST_TOOLMANAGER),
                  "1,8,FULL,FULL");
        panel.add(renderLabel("<html>Nested <br>ToolWindowManager</html>"),
                  "3,8,FULL,FULL");

        panel.add(renderButton("Groups", ToolWindowGroup.class),
                  "5,2,FULL,FULL");
        panel.add(renderLabel("<html>Edit <br>Groups <br> properties</html>"),
                  "7,2,FULL,FULL");

        panel.add(renderButton("ITests", InteractiveTest.class),
                  "5,4,FULL,FULL");
        panel.add(renderLabel("<html>Run <br>Interactive <br> Tests</html>"),
                  "7,4,FULL,FULL");

        panel.add(renderButton("Customize", ResourceManager.class),
                  "5,6,FULL,FULL");
        panel.add(renderLabel("<html>Customize <br>MyDoggy</html>"),
                  "7,6,FULL,FULL");

        // Setup main panel
        JPanel main = new JPanel(new ExtendedTableLayout(new double[][]{{3, -1, 3}, {3, 93, 5, -1, 3}}));
        main.add(new JImage("org/noos/xing/mydoggy/mydoggyset/images/banner.jpg"), "1,1,FULL,FULL");
        main.add(panel, "1,3,FULL,FULL");

        return new JScrollPane(main);
    }
View Full Code Here

        viewContext.put(ToolBarKey.LEFT_TOOLBAR, toolWindowManager.getToolWindowBar(ToolWindowAnchor.LEFT));
        viewContext.put(ToolBarKey.RIGHT_TOOLBAR, toolWindowManager.getToolWindowBar(ToolWindowAnchor.RIGHT));
        viewContext.put(ToolBarKey.TOP_TOOLBAR, toolWindowManager.getToolWindowBar(ToolWindowAnchor.TOP));

        JPanel panel = new JPanel();
        panel.setLayout(new ExtendedTableLayout(new double[][]{{-1}, {180, 3, -1}}));
        panel.add(new ToolWindowManagerDescriptorPrefView(viewContext).getComponent(), "0,0,FULL,FULL");
        panel.add(new PersistencePrefView(viewContext).getComponent(), "0,2,FULL,FULL");

        viewContext.put(ToolWindowManagerDescriptor.class, toolWindowManager.getToolWindowManagerDescriptor());
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.ui.cmp.ExtendedTableLayout

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.