Package org.noos.xing.yasaf.plaf.bean

Examples of org.noos.xing.yasaf.plaf.bean.SpinnerValueSource


                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)
                )
                );

                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)
                )
                );

                return panel;
            }
View Full Code Here


        panel.add(dockLength = new JSpinner(new SpinnerNumberModel(100, 100, 400, 10)), "3,7,FULL,FULL");
        dockLength.addChangeListener(
                new ChangeListenerAction(DockedTypeDescriptor.class,
                                         "dockLength",
                                         new ViewContextSource(viewContext, DockedTypeDescriptor.class),
                                         new SpinnerValueSource(dockLength))
        );

        // Right

        panel.addEntry(3, 1, "animating : ", animating = new JCheckBox());
View Full Code Here

        panel.addEntry(1, 1, "transparentRatio : ", transparentRatio = new JSpinner(new SpinnerNumberModel(0.0, 0.0, 1.0, 0.05)));
        transparentRatio.addChangeListener(
                new ChangeListenerAction(SlidingTypeDescriptor.class,
                        "transparentRatio",
                        new ViewContextSource(viewContext, SlidingTypeDescriptor.class),
                        new ToFloatSource(new SpinnerValueSource(transparentRatio)))
        );

        panel.addEntry(2, 1, "transparentDelay : ", transparentDelay = new JSpinner(new SpinnerNumberModel(0, 0, 5000, 500)));
        transparentDelay.addChangeListener(
                new ChangeListenerAction(SlidingTypeDescriptor.class,
                        "transparentDelay",
                        new ViewContextSource(viewContext, SlidingTypeDescriptor.class),
                        new SpinnerValueSource(transparentDelay))
        );

        return panel;
    }
View Full Code Here

        panel.add(dockLength = new JSpinner(new SpinnerNumberModel(100, 100, 400, 10)), "3,7,FULL,FULL");
        dockLength.addChangeListener(
                new ChangeListenerAction(DockedTypeDescriptor.class,
                                         "dockLength",
                                         new ViewContextSource(viewContext, DockedTypeDescriptor.class),
                                         new SpinnerValueSource(dockLength))
        );

        // Right
        panel.add(new JLabel("previewEnabled : "), "5,1,r,c");
        panel.add(previewEnabled = new JCheckBox(), "7,1,FULL,FULL");
        previewEnabled.setAction(new DynamicAction(DockedTypeDescriptor.class,
                                                   "previewEnabled",
                                                   new ViewContextSource(viewContext, DockedTypeDescriptor.class),
                                                   new ChecBoxSelectionSource(previewEnabled)));

        panel.add(new JLabel("previewDelay : "), "5,3,r,c");
        panel.add(previewDelay = new JSpinner(new SpinnerNumberModel(0, 0, 5000, 500)), "7,3,FULL,FULL");
        previewDelay.addChangeListener(
                new ChangeListenerAction(DockedTypeDescriptor.class,
                                         "previewDelay",
                                         new ViewContextSource(viewContext, DockedTypeDescriptor.class),
                                         new SpinnerValueSource(previewDelay))
        );

        panel.add(new JLabel("previewTransparentRatio : "), "5,5,r,c");
        panel.add(previewTransparentRatio = new JSpinner(new SpinnerNumberModel(0.0, 0.0, 1.0, 0.05)), "7,5,FULL,FULL");
        previewTransparentRatio.addChangeListener(
                new ChangeListenerAction(DockedTypeDescriptor.class,
                                         "previewTransparentRatio",
                                         new ViewContextSource(viewContext, DockedTypeDescriptor.class),
                                         new ToFloatSource(new SpinnerValueSource(previewTransparentRatio)))
        );

        return panel;
    }
View Full Code Here

        panel.add(transparentDelay = new JSpinner(new SpinnerNumberModel(0, 0, 5000, 500)), "7,3,FULL,FULL");
        transparentDelay.addChangeListener(
                new ChangeListenerAction(FloatingTypeDescriptor.class,
                                         "transparentDelay",
                                         new ViewContextSource(viewContext, FloatingTypeDescriptor.class),
                                         new SpinnerValueSource(transparentDelay))
        );

        panel.add(new JLabel("transparentRatio : "), "5,5,r,c");
        panel.add(transparentRatio = new JSpinner(new SpinnerNumberModel(0.0, 0.0, 1.0, 0.05)), "7,5,FULL,FULL");
        transparentRatio.addChangeListener(
                new ChangeListenerAction(FloatingTypeDescriptor.class,
                                         "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",
View Full Code Here

        panel.add(transparentRatio = new JSpinner(new SpinnerNumberModel(0.0, 0.0, 1.0, 0.05)), "7,5,FULL,FULL");
        transparentRatio.addChangeListener(
                new ChangeListenerAction(FloatingTypeDescriptor.class,
                                         "transparentRatio",
                                         new ViewContextSource(viewContext, FloatingTypeDescriptor.class),
                                         new ToFloatSource(new SpinnerValueSource(transparentRatio)))
        );

        return panel;
    }
View Full Code Here

                    new ChangeListenerAction(ToolWindowManagerDescriptor.class,
                                             "setDividerSize",
                                             new ViewContextSource(viewContext, ToolWindowManagerDescriptor.class),
                                             new AndSource(
                                                     new ConstantSource(ToolWindowAnchor.LEFT),
                                                     new SpinnerValueSource(leftDividerSize)
                                             )
                    )
            );

            panel.addPair(1, 1,
                          "DividerSize (RIGHT) : ",
                          rightDividerSize = new JSpinner(new SpinnerNumberModel(5, 0, 20, 1)));
            rightDividerSize.addChangeListener(
                    new ChangeListenerAction(ToolWindowManagerDescriptor.class,
                                             "setDividerSize",
                                             new ViewContextSource(viewContext, ToolWindowManagerDescriptor.class),
                                             new AndSource(
                                                     new ConstantSource(ToolWindowAnchor.RIGHT),
                                                     new SpinnerValueSource(rightDividerSize)
                                             )
                    )
            );

            panel.addPair(1, 2,
                          "DividerSize (TOP) : ",
                          topDividerSize = new JSpinner(new SpinnerNumberModel(5, 0, 20, 1)));
            topDividerSize.addChangeListener(
                    new ChangeListenerAction(ToolWindowManagerDescriptor.class,
                                             "setDividerSize",
                                             new ViewContextSource(viewContext, ToolWindowManagerDescriptor.class),
                                             new AndSource(
                                                     new ConstantSource(ToolWindowAnchor.TOP),
                                                     new SpinnerValueSource(topDividerSize)
                                             )
                    )
            );

            panel.addPair(1, 3,
                          "DividerSize (BOTTOM) : ",
                          bottomDividerSize = new JSpinner(new SpinnerNumberModel(5, 0, 20, 1)));
            bottomDividerSize.addChangeListener(
                    new ChangeListenerAction(ToolWindowManagerDescriptor.class,
                                             "setDividerSize",
                                             new ViewContextSource(viewContext, ToolWindowManagerDescriptor.class),
                                             new AndSource(
                                                     new ConstantSource(ToolWindowAnchor.BOTTOM),
                                                     new SpinnerValueSource(bottomDividerSize)
                                             )
                    )
            );

            return panel;
View Full Code Here

        panel.add(dockLength = new JSpinner(new SpinnerNumberModel(100, 100, 400, 10)), "3,7,FULL,FULL");
        dockLength.addChangeListener(
                new ChangeListenerAction(DockedTypeDescriptor.class,
                        "dockLength",
                        new ViewContextSource(viewContext, DockedTypeDescriptor.class),
                        new SpinnerValueSource(dockLength))
        );

        // Right
        panel.add(new JLabel("previewEnabled : "), "5,1,r,c");
        panel.add(previewEnabled = new JCheckBox(), "7,1,FULL,FULL");
        previewEnabled.setAction(new DynamicAction(DockedTypeDescriptor.class,
                "previewEnabled",
                new ViewContextSource(viewContext, DockedTypeDescriptor.class),
                new ChecBoxSelectionSource(previewEnabled)));

        panel.add(new JLabel("previewDelay : "), "5,3,r,c");
        panel.add(previewDelay = new JSpinner(new SpinnerNumberModel(0, 0, 5000, 500)), "7,3,FULL,FULL");
        previewDelay.addChangeListener(
                new ChangeListenerAction(DockedTypeDescriptor.class,
                        "previewDelay",
                        new ViewContextSource(viewContext, DockedTypeDescriptor.class),
                        new SpinnerValueSource(previewDelay))
        );

        panel.add(new JLabel("previewTransparentRatio : "), "5,5,r,c");
        panel.add(previewTransparentRatio = new JSpinner(new SpinnerNumberModel(0.0, 0.0, 1.0, 0.05)), "7,5,FULL,FULL");
        previewTransparentRatio.addChangeListener(
                new ChangeListenerAction(DockedTypeDescriptor.class,
                        "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,
View Full Code Here

        panel.add(transparentDelay = new JSpinner(new SpinnerNumberModel(0, 0, 5000, 500)), "7,3,FULL,FULL");
        transparentDelay.addChangeListener(
                new ChangeListenerAction(FloatingLiveTypeDescriptor.class,
                        "transparentDelay",
                        new ViewContextSource(viewContext, FloatingLiveTypeDescriptor.class),
                        new SpinnerValueSource(transparentDelay))
        );

        panel.add(new JLabel("transparentRatio : "), "5,5,r,c");
        panel.add(transparentRatio = new JSpinner(new SpinnerNumberModel(0.0, 0.0, 1.0, 0.05)), "7,5,FULL,FULL");
        transparentRatio.addChangeListener(
                new ChangeListenerAction(FloatingLiveTypeDescriptor.class,
                        "transparentRatio",
                        new ViewContextSource(viewContext, FloatingLiveTypeDescriptor.class),
                        new ToFloatSource(new SpinnerValueSource(transparentRatio)))
        );

        return panel;
    }
View Full Code Here

                           leftDividerSize = new JSpinner(new SpinnerNumberModel(5, 0, 20, 1)));
            leftDividerSize.addChangeListener(
                    new ChangeListenerAction(ToolWindowBar.class,
                                             "setDividerSize",
                                             new ViewContextSource(viewContext, ToolBarKey.LEFT_TOOLBAR),
                                             new SpinnerValueSource(leftDividerSize)
                    )
            );

            panel.addEntry(3, 0, "DividerSize (RIGHT) : ",
                           rightDividerSize = new JSpinner(new SpinnerNumberModel(5, 0, 20, 1)));
            rightDividerSize.addChangeListener(
                    new ChangeListenerAction(ToolWindowBar.class,
                                             "setDividerSize",
                                             new ViewContextSource(viewContext, ToolBarKey.RIGHT_TOOLBAR),
                                             new SpinnerValueSource(rightDividerSize)
                    )
            );

            panel.addEntry(4, 0, "DividerSize (TOP) : ",
                           topDividerSize = new JSpinner(new SpinnerNumberModel(5, 0, 20, 1)));
            topDividerSize.addChangeListener(
                    new ChangeListenerAction(ToolWindowBar.class,
                                             "setDividerSize",
                                             new ViewContextSource(viewContext, ToolBarKey.TOP_TOOLBAR),
                                             new SpinnerValueSource(topDividerSize)
                    )
            );

            panel.addEntry(5, 0, "DividerSize (BOTTOM) : ",
                           bottomDividerSize = new JSpinner(new SpinnerNumberModel(5, 0, 20, 1)));
            bottomDividerSize.addChangeListener(
                    new ChangeListenerAction(ToolWindowBar.class,
                                             "setDividerSize",
                                             new ViewContextSource(viewContext, ToolBarKey.BOTTOM_TOOLBAR),
                                             new SpinnerValueSource(bottomDividerSize)
                    )
            );

            // Column 1
            pushAwayMode = new JComboBox(new Object[]{
View Full Code Here

TOP

Related Classes of org.noos.xing.yasaf.plaf.bean.SpinnerValueSource

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.