Package org.noos.xing.yasaf.plaf.component

Examples of org.noos.xing.yasaf.plaf.component.MatrixPanel.addEntry()


        protected Component initComponent() {
            MatrixPanel panel = new MatrixPanel(2, 2);
            panel.setBorder(new TitledBorder("ToolWindowManager#getToolWindowManagerDescriptor()"));

            // Column 0
            panel.addEntry(0, 0, "numberingEnabled : ", numberingEnabled = new JCheckBox());
            numberingEnabled.setAction(new DynamicAction(ToolWindowManagerDescriptor.class,
                    "numberingEnabled",
                    new ViewContextSource(viewContext, ToolWindowManagerDescriptor.class),
                    new ChecBoxSelectionSource(numberingEnabled)));
View Full Code Here


            numberingEnabled.setAction(new DynamicAction(ToolWindowManagerDescriptor.class,
                    "numberingEnabled",
                    new ViewContextSource(viewContext, ToolWindowManagerDescriptor.class),
                    new ChecBoxSelectionSource(numberingEnabled)));

            panel.addEntry(1, 0, "previewEnabled : ", previewEnabled = new JCheckBox());
            previewEnabled.setAction(new DynamicAction(ToolWindowManagerDescriptor.class,
                    "previewEnabled",
                    new ViewContextSource(viewContext, ToolWindowManagerDescriptor.class),
                    new ChecBoxSelectionSource(previewEnabled)));
View Full Code Here

            pushAwayMode.addItemListener(new ItemListener() {
                public void itemStateChanged(ItemEvent e) {
                    viewContext.put(PushAwayMode.class, e.getItem());
                }
            });
            panel.addEntry(0, 1, "pushAwayMode : ", pushAwayMode);

            panel.addEntry(1, 1, "showUnavailableTools : ", showUnavailableTools = new JCheckBox());
            showUnavailableTools.setAction(new DynamicAction(ToolWindowManagerDescriptor.class,
                    "showUnavailableTools",
                    new ViewContextSource(viewContext, ToolWindowManagerDescriptor.class),
View Full Code Here

                    viewContext.put(PushAwayMode.class, e.getItem());
                }
            });
            panel.addEntry(0, 1, "pushAwayMode : ", pushAwayMode);

            panel.addEntry(1, 1, "showUnavailableTools : ", showUnavailableTools = new JCheckBox());
            showUnavailableTools.setAction(new DynamicAction(ToolWindowManagerDescriptor.class,
                    "showUnavailableTools",
                    new ViewContextSource(viewContext, ToolWindowManagerDescriptor.class),
                    new ChecBoxSelectionSource(showUnavailableTools)));
View Full Code Here

            protected Component initComponent() {
                MatrixPanel panel = new MatrixPanel(4, 2);
                panel.setBorder(new TitledBorder("Properties"));

                // Left
                panel.addEntry(0, 0, "visible : ", visible = new JCheckBox());
                visible.setAction(new DynamicAction(ToolWindowBar.class,
                        "visible",
                        new ViewContextSource(viewContext, ToolWindowBar.class),
                        new ChecBoxSelectionSource(visible)));
View Full Code Here

                visible.setAction(new DynamicAction(ToolWindowBar.class,
                        "visible",
                        new ViewContextSource(viewContext, ToolWindowBar.class),
                        new ChecBoxSelectionSource(visible)));

                panel.addEntry(1, 0, "aggregateMode : ", aggregateMode = new JCheckBox());
                aggregateMode.setAction(new DynamicAction(ToolWindowBar.class,
                        "aggregateMode",
                        new ViewContextSource(viewContext, ToolWindowBar.class),
                        new ChecBoxSelectionSource(aggregateMode)));
View Full Code Here

                        new ViewContextSource(viewContext, ToolWindowBar.class),
                        new ChecBoxSelectionSource(aggregateMode)));

                // Right

                panel.addEntry(0, 1, "dividerSize : ", dividerSize = new JSpinner(new SpinnerNumberModel(5, 0, 50, 1)));
                dividerSize.addChangeListener(new ChangeListenerAction(ToolWindowBar.class,
                        "dividerSize",
                        new ViewContextSource(viewContext, ToolWindowBar.class),
                        new SpinnerValueSource(dividerSize)
                )
View Full Code Here

                        new ViewContextSource(viewContext, ToolWindowBar.class),
                        new SpinnerValueSource(dividerSize)
                )
                );

                panel.addEntry(1, 1, "length : ", length = new JSpinner(new SpinnerNumberModel(5, 0, 50, 1)));
                length.addChangeListener(new ChangeListenerAction(ToolWindowBar.class,
                        "length",
                        new ViewContextSource(viewContext, ToolWindowBar.class),
                        new SpinnerValueSource(length)
                )
View Full Code Here

                                         new SpinnerValueSource(dockLength))
        );

        // Right

        panel.addEntry(3, 1, "animating : ", animating = new JCheckBox());
        animating.setSelected(true);
        animating.setAction(new DynamicAction(ToolWindowTypeDescriptor.class,
                                              "animating",
                                              new ViewContextSource(viewContext, DockedTypeDescriptor.class),
                                              new ChecBoxSelectionSource(animating)));
View Full Code Here

    }

    protected Component initComponent() {
        MatrixPanel panel = new MatrixPanel(3, 2);

        panel.addEntry(0, 0, "enabled : ", enabled = new JCheckBox());
        enabled.setAction(new DynamicAction(ToolWindowTypeDescriptor.class,
                "enabled",
                new ViewContextSource(viewContext, ToolWindowTypeDescriptor.class),
                new ChecBoxSelectionSource(enabled)));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.