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

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


        transparentMode.setAction(new DynamicAction(SlidingTypeDescriptor.class,
                "transparentMode",
                new ViewContextSource(viewContext, SlidingTypeDescriptor.class),
                new ChecBoxSelectionSource(transparentMode)));

        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)))
View Full Code Here


                        "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))
View Full Code Here

    protected Component initComponent() {
        MatrixPanel panel = new MatrixPanel(4, 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, "modal : ", modal = new JCheckBox());
        modal.setAction(new DynamicAction(FloatingTypeDescriptor.class,
                "modal",
                new ViewContextSource(viewContext, FloatingTypeDescriptor.class),
                new ChecBoxSelectionSource(modal)));
View Full Code Here

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

        panel.addEntry(2, 0, "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

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

        panel.addEntry(3, 0, "idVisibleOnTitleBar : ", idVisibleOnTitleBar = new JCheckBox());
        idVisibleOnTitleBar.setAction(new DynamicAction(ToolWindowTypeDescriptor.class,
                "idVisibleOnTitleBar",
                new ViewContextSource(viewContext, FloatingTypeDescriptor.class),
                new ChecBoxSelectionSource(idVisibleOnTitleBar)));
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

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


            return matrixPanel;
        }
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

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.