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

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


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

        JPanel panel = new JPanel();
        panel.setLayout(new ExtendedTableLayout(new double[][]{{-1}, {150, 5, -1}}));

        panel.add(new ToolWindowsTableView(viewContext).getComponent(), "0,0,FULL,FULL");
        panel.add(new PreferencePanelView(viewContext).getComponent(), "0,2,FULL,FULL");

        return panel;
View Full Code Here


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

    protected Component initComponent() {
        mainPanel = new JPanel(new ExtendedTableLayout(new double[][]{{-1}, {70, 1, -1}}));
        mainPanel.setBorder(new TitledBorder("Preferences"));
      
        JTabbedPane tabbedPane = new JTabbedPane();
        tabbedPane.add("TypeDescriptors", new TypeDescriptorsPreferenceView(viewContext).getComponent());
        tabbedPane.add("ToolWindowTabs", new ToolWindowTabsView(viewContext).getComponent());
View Full Code Here

        }

        protected Component initComponent() {
            MatrixPanel matrixPanel = new MatrixPanel(1, 1);

            JPanel showMessagePanel = new JPanel(new ExtendedTableLayout(new double[][]{{-1,1,70}, {-1}}));
            showMessagePanel.setBorder(new TitledBorder("Show Anchor Message"));
            showMessagePanel.add(messageField = new JTextField(), "0,0,FULL,FULL");
            showMessagePanel.add(new JButton(new ViewContextAction("Show", null, viewContext, Actions.SHOW_MESSAGE, ToolWindow.class)), "2,0,c,c");

            matrixPanel.addEntry(0,0, null, showMessagePanel);
View Full Code Here

    protected void initComponents() {
        this.frame = new JFrame("MyDoggy-Set...");
        this.frame.setSize(640, 480);
        this.frame.setLocation(100, 100);
        this.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.frame.getContentPane().setLayout(new ExtendedTableLayout(new double[][]{{0, -1, 0}, {0, -1, 0}}));

        this.toolWindowManager = new MyDoggyToolWindowManager(frame, Locale.US, null);

        this.contentContext = new ContentContext(toolWindowManager, frame);
View Full Code Here

        ViewContext viewContext = new MapViewContext();
        viewContext.put(ToolWindowManager.class, toolWindowManager);
        viewContext.put("windowAncestor", parentComponent);

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

        return panel;
    }
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>ToolWindow <br> Properties</html>"),
                  "3,4,FULL,FULL");

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


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

        panel.add(renderButton("Customize", ResourceManager.class),
                  "5,4,FULL,FULL");
        panel.add(renderLabel("<html>Customize <br>Colors and Icons</html>"),
                  "7,4,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

        super(viewContext);
    }

    protected Component initComponent() {
        JPanel panel = new JPanel();
        panel.setLayout(new ExtendedTableLayout(new double[][]{{-1}, {-1}}));

        panel.add(new ToolWindowTabsTableView(viewContext).getComponent(), "0,0,FULL,FULL");

        return panel;
    }
View Full Code Here

        super(viewContext);
    }


    protected Component initComponent() {
        mainPanel = new JPanel(new ExtendedTableLayout(new double[][]{{-1}, {20, 3, -1}}));

        typeDescriptorContainer = new TypeDescriptorContainer();

        mainPanel.add(typeDescriptorContainer.getContainer(), "0,2,FULL,FULL");
        mainPanel.add(new TypeDescriptorSelectorView(viewContext).getComponent(), "0,0,FULL,FULL");
View Full Code Here

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

        protected Component initComponent() {
            JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{150, 3, -1, 5 , 100}, {-1}}));

            types = new JComboBox(new Object[]{
                    "<none>",
                    DockedTypeDescriptor.class,
                    SlidingTypeDescriptor.class,
View Full Code Here

                        GlassPanel glassPane = descriptor.getManager().getGlassPanel();

                        if (previewPanel != null)
                            glassPane.remove(previewPanel);

                        previewPanel = new TranslucentPanel(new ExtendedTableLayout(new double[][]{{2, TableLayout.FILL, 2}, {2, TableLayout.FILL, 2}}));
                        previewPanel.setAlphaModeRatio(representativeAnchorDescriptor.getPreviewTransparentRatio());
                        setPreviewPanelBounds(rootPaneContainer);
                        previewPanel.add(contentContainer, "1,1,FULL,FULL");

                        glassPane.add(previewPanel);
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.