Package info.clearthought.layout

Examples of info.clearthought.layout.TableLayout


    public FloatingTypeDescriptorView(ViewContext viewContext) {
        super(viewContext);
    }

    protected Component initComponent() {
        JPanel panel = new JPanel(new TableLayout(new double[][]{{3, -2, 3, -1, 3, -2, 3, -1, 3}, {-1, 20, 3, 20, 3, 20, 3, 20, -1}}));

        // Left
        panel.add(new JLabel("enabled : "), "1,1,r,c");
        panel.add(enabledBox = new JCheckBox(), "3,1,FULL,FULL");
        enabledBox.setAction(new DynamicAction(FloatingTypeDescriptor.class,
View Full Code Here


        public PersistencePrefView(ViewContext viewContext) {
            super(viewContext);
        }

        protected Component initComponent() {
            JPanel panel = new JPanel(new TableLayout(new double[][]{{3,100,3,-1,3},{3,20,3,20,3,20,3,-1,3}}));
            panel.setBorder(new TitledBorder("(Persistence) Worskpace Editor"));

            JButton save = new JButton("Save ->");
            save.addActionListener(new ViewContextAction(viewContext, "save"));
            panel.add(save, "1,1,FULL,FULL");
View Full Code Here


        JPanel jPanel = new JPanel();
        double size[][] = {{TableLayoutConstants.FILL}, // Columns
                {25, 25, 25, 25, TableLayoutConstants.FILL}}; // Rows
        jPanel.setLayout(new TableLayout(size));
        jPanel.add(new JTextField("textfield1"), "0,0");
        jPanel.add(new JTextField("textfield2"), "0,1");
        jPanel.add(new JTextField("textfield3"), "0,2");
        jPanel.add(new JTextField("textfield4"), "0,3");
        infoPanel = new JXTitledPanel("Information", jPanel);
View Full Code Here

        super(viewContext);
    }

    protected Component initComponent() {
        // Setup welcome panel...
        JPanel panel = new JPanel(new TableLayout(new double[][]{{-1, 100, 5, 160, 3, 100, 5, 160, -1},
                                                                 {-1, 70, 10, 70, 10, 70, -1}}));
        panel.setBackground(Colors.blu);

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

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

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

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

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

        // Setup main panel
        JPanel main = new JPanel(new TableLayout(new double[][]{{3, -1, 3},{3, 93,5,-1,3}}));
        main.add(new JLabel(new ImageIcon(
                this.getClass().getClassLoader().getResource("org/noos/xing/mydoggy/mydoggyset/images/banner.jpg")
        )), "1,1,FULL,FULL");
        main.add(panel, "1,3,FULL,FULL");
        return main;
View Full Code Here

    }

   
    protected void setPinVisible(boolean visible) {
        pinButton.setVisible(visible);
        TableLayout tableLayout = (TableLayout) titleBar.getLayout();
        tableLayout.setColumn(7, (visible) ? 17 : 0);
        tableLayout.setColumn(8, (visible) ? 2 : 0);
    }
View Full Code Here

        tableLayout.setColumn(8, (visible) ? 2 : 0);
    }

    protected void setFloatingVisible(boolean visible) {
        floatingButton.setVisible(visible);
        TableLayout tableLayout = (TableLayout) titleBar.getLayout();
        tableLayout.setColumn(5, (visible) ? 17 : 0);
        tableLayout.setColumn(6, (visible) ? 2 : 0);
    }
View Full Code Here

        tableLayout.setColumn(6, (visible) ? 2 : 0);
    }

    protected void setDockedVisible(boolean visible) {
        dockButton.setVisible(visible);
        TableLayout tableLayout = (TableLayout) titleBar.getLayout();
        tableLayout.setColumn(3, (visible) ? 17 : 0);
        tableLayout.setColumn(4, (visible) ? 2 : 0);
    }
View Full Code Here

        setDockedVisible(((SlidingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.SLIDING)).isEnabled());
        setDocked();
    }

    protected void enableIdOnTitleBar() {
        TableLayout layout = (TableLayout) titleBar.getLayout();
        layout.setColumn(0,
                         titleBar
                                 .getFontMetrics(titleBar.getFont())
                                 .stringWidth(
                                         resourceManager.getUserString(toolWindow.getId())
                                 )
View Full Code Here

        SwingUtil.repaint(titleBar);
    }

    protected void disableIdOnTitleBar() {
        TableLayout layout = (TableLayout) titleBar.getLayout();
        layout.setColumn(0, 3);

        SwingUtil.repaint(titleBar);
    }
View Full Code Here

        }
        SwingUtil.requestFocus(focusRequester);
    }

    protected void enableIdOnTitleBar() {
        TableLayout layout = (TableLayout) titleBar.getLayout();
        layout.setColumn(0,
                         titleBar
                                 .getFontMetrics(titleBar.getFont())
                                 .stringWidth(
                                         resourceManager.getUserString(toolWindow.getId())
                                 )
View Full Code Here

TOP

Related Classes of info.clearthought.layout.TableLayout

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.