Examples of ButtonBorder


Examples of javax.swing.plaf.basic.BasicBorders.ButtonBorder

    Border b = UIManager.getBorder("ToolBar.rolloverBorder");

    if (b == null)
      {
        b = new CompoundBorder(
            new ButtonBorder(UIManager.getColor("Button.shadow"),
                             UIManager.getColor("Button.darkShadow"),
                             UIManager.getColor("Button.light"),
                             UIManager.getColor("Button.highlight")),
            BasicBorders.getMarginBorder());
      }
View Full Code Here

Examples of javax.swing.plaf.metal.MetalBorders.ButtonBorder

  }

  public void test2(TestHarness harness)     
  {
    harness.checkPoint("getBorderInsets(Component, Insets)");
    ButtonBorder b = new ButtonBorder();
    Insets insets = b.getBorderInsets(null, new Insets(1, 2, 3, 4));
    harness.check(insets, new Insets(3, 3, 3, 3));

    // check null insets
    boolean pass = false;
    try
    {
      b.getBorderInsets(new JButton("Test"), null);
    }
    catch (NullPointerException e)
    {
      pass = true;
    }
View Full Code Here

Examples of javax.swing.plaf.metal.MetalBorders.ButtonBorder

                                                      Integer.MIN_VALUE,
                                                      Integer.MIN_VALUE,
                                                      Integer.MIN_VALUE);

    public static void main(String[] args) {
        new ButtonBorder() {{borderInsets = NEGATIVE;}};
        new MenuBarBorder() {{borderInsets = NEGATIVE;}};
        new MenuItemBorder() {{borderInsets = NEGATIVE;}};
        new PopupMenuBorder() {{borderInsets = NEGATIVE;}};

        test(create("ButtonBorder"));
View Full Code Here

Examples of org.apache.isis.viewer.dnd.border.ButtonBorder

        ObjectAdapter object = createExampleObjectForView();
        Content content = new RootObject(object);
        ViewSpecification specification = new ExampleViewSpecification();
        ViewAxis axis = null;

        View view = new ButtonBorder(actions, new TestObjectView(content, specification, axis, 200, 80, "VIEW in border"));

        view.setLocation(new Location(100, 100));
        view.setSize(view.getRequiredSize(new Size()));
        workspace.addView(view);

    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ButtonBorder

            @Override
            public View decorate(final View view, final Axes axes) {
                // TODO reintroduce the 'Apply' notion, but under control from
                // the method declaration
                final ButtonAction[] actions = new ButtonAction[] { new ExecuteAndCloseAction(), new CancelAction() };
                final ButtonBorder buttonBorder = new ButtonBorder(actions, new IconBorder(view, Toolkit.getText(ColorsAndFonts.TEXT_TITLE_SMALL)));
                buttonBorder.setFocusManager(new ActionDialogFocusManager(buttonBorder));
                return buttonBorder;
            }
        });
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ButtonBorder

        }, new CancelAction(),

        };

        final DetailedMessageView messageView = new DetailedMessageView(content, this);
        return new ButtonBorder(actions, new ScrollBorder(messageView));
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ButtonBorder

    @Override
    public View createView(final Content content, final Axes axes, final int sequence) {
        final ButtonAction actions[] = new ButtonAction[] { new CloseViewAction() };
        final MessageView messageView = new MessageView((MessageContent) content, this);
        final View dialogView = new ButtonBorder(actions, new ScrollBorder(messageView));
        dialogView.setFocusManager(new SubviewFocusManager(dialogView));
        return dialogView;
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ButtonBorder

            @Override
            public View decorate(final View view, final Axes axes) {
                // TODO reintroduce the 'Apply' notion, but under control from
                // the method declaration
                final ButtonAction[] actions = new ButtonAction[] { new ExecuteAndCloseAction(), new CancelAction() };
                final ButtonBorder buttonBorder = new ButtonBorder(actions, new IconBorder(view, Toolkit.getText(ColorsAndFonts.TEXT_TITLE_SMALL)));
                buttonBorder.setFocusManager(new ActionDialogFocusManager(buttonBorder));
                return buttonBorder;
            }
        });
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.border.ButtonBorder

        addViewDecorator(new CompositeViewDecorator() {
            @Override
            public View decorate(final View view, final Axes axes) {
                // TODO reintroduce the 'Apply' notion, but under control from the method declaration
                final ButtonAction[] actions = new ButtonAction[] { new ExecuteAndCloseAction(), new CancelAction() };
                final ButtonBorder buttonBorder =
                    new ButtonBorder(actions, new IconBorder(view, Toolkit.getText(ColorsAndFonts.TEXT_TITLE_SMALL)));
                buttonBorder.setFocusManager(new ActionDialogFocusManager(buttonBorder));
                return buttonBorder;
            }
        });
    }
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.