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

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


        alwaysOnTop.setAction(new DynamicAction(FloatingTypeDescriptor.class,
                                                "alwaysOnTop",
                                                new ViewContextSource(viewContext, FloatingTypeDescriptor.class),
                                                new ChecBoxSelectionSource(alwaysOnTop)));

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


                                         "transparentRatio",
                                         new ViewContextSource(viewContext, FloatingTypeDescriptor.class),
                                         new ToFloatSource(new SpinnerValueSource(transparentRatio)))
        );

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

        addToTaskBar.setAction(new DynamicAction(FloatingTypeDescriptor.class,
                                                 "addToTaskBar",
                                                 new ViewContextSource(viewContext, FloatingTypeDescriptor.class),
                                                 new ChecBoxSelectionSource(addToTaskBar)));

        panel.addEntry(4, 1, "osDecorated : ", osDecorated = new JCheckBox());
        osDecorated.setAction(new DynamicAction(FloatingTypeDescriptor.class,
                                                "osDecorated",
                                                new ViewContextSource(viewContext, FloatingTypeDescriptor.class),
                                                new ChecBoxSelectionSource(osDecorated)));
        return panel;
View Full Code Here

                        "previewTransparentRatio",
                        new ViewContextSource(viewContext, DockedTypeDescriptor.class),
                        new ToFloatSource(new SpinnerValueSource(previewTransparentRatio)))
        );

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

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

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

        enabledBox.setAction(new DynamicAction(ToolWindowTypeDescriptor.class,
                "enabled",
                new ViewContextSource(viewContext, ToolWindowTypeDescriptor.class),
                new ChecBoxSelectionSource(enabledBox)));

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

        animating.setAction(new DynamicAction(ToolWindowTypeDescriptor.class,
                "animating",
                new ViewContextSource(viewContext, FloatingLiveTypeDescriptor.class),
                new ChecBoxSelectionSource(animating)));

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

        protected Component initComponent() {
            MatrixPanel panel = new MatrixPanel(6, 2);
            panel.setBorder(new TitledBorder("ToolWindowManagerDescriptor Preference"));

            // 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

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

            panel.addEntry(2, 0, "DividerSize (LEFT) : ",
                           leftDividerSize = new JSpinner(new SpinnerNumberModel(5, 0, 20, 1)));
            leftDividerSize.addChangeListener(
                    new ChangeListenerAction(ToolWindowBar.class,
                                             "setDividerSize",
                                             new ViewContextSource(viewContext, ToolBarKey.LEFT_TOOLBAR),
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.