Examples of addGriddedButtons()


Examples of com.jgoodies.forms.builder.ButtonBarBuilder.addGriddedButtons()

        builder.getPanel().setBorder(Constants.DIALOG_BUTTON_BAR_BORDER);
        builder.addFixed(spnProgress);
        builder.addUnrelatedGap();
        builder.addGlue();
        addCustomButtons(builder);
        builder.addGriddedButtons(new JButton[] { btnPostToBlog, btnCancel });

        return builder.getPanel();
    }

    /**
 
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder.addGriddedButtons()

    }

    private Component buildButtonBar2Panel() {
        ButtonBarBuilder builder = new ButtonBarBuilder();
        builder.addGlue();
        builder.addGriddedButtons(new JButton[] {
                new JButton("Yes"),
                new JButton("No")
                });
        return wrap(builder.getPanel(),
            "This bar has been built with a ButtonBarBuilder:\n" +
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder.addGriddedButtons()

        builder.addGridded(new JButton("Help"));
        builder.addUnrelatedGap();
        builder.addGlue();
        builder.addFixed(new JButton("Copy to Clipboard"));
        builder.addUnrelatedGap();
        builder.addGriddedButtons(new JButton[] {
                new JButton("OK"),
                new JButton("Cancel")
          });
        return wrap(builder.getPanel(),
            "Demonstrates a glue (between Help and the rest),\n" +
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder.addGriddedButtons()

        builder.addGridded(new JButton("Help"));
        builder.addUnrelatedGap();
        builder.addGlue();
        builder.addFixedNarrow(new JButton("Copy to Clipboard"));
        builder.addUnrelatedGap();
        builder.addGriddedButtons(new JButton[] {
                new JButton("OK"),
                new JButton("Cancel")
        });
        return wrap(builder.getPanel(),
            "Demonstrates a glue (between Help and the rest),\n" +
View Full Code Here

Examples of com.jgoodies.forms.builder.ButtonBarBuilder.addGriddedButtons()

     * @return the message dialog button bar
     */
    private JPanel buildButtonBar() {
        ButtonBarBuilder builder = new ButtonBarBuilder();
        builder.setOpaque(false);
        builder.addGriddedButtons(new JButton[]{
            informationButton, warningButton, questionButton, errorButton});
        return builder.getPanel();
    }


View Full Code Here

Examples of org.gwt.mosaic.forms.client.builder.ButtonBarBuilder.addGriddedButtons()

   * @param buttons an array of buttons to add
   * @return a left aligned button bar with the given buttons
   */
  public static LayoutPanel buildLeftAlignedBar(Button[] buttons) {
    ButtonBarBuilder builder = new ButtonBarBuilder();
    builder.addGriddedButtons(buttons);
    builder.addGlue();
    return builder.getPanel();
  }

  /**
 
View Full Code Here

Examples of org.gwt.mosaic.forms.client.builder.ButtonBarBuilder.addGriddedButtons()

   */
  public static LayoutPanel buildLeftAlignedBar(Button[] buttons,
      boolean leftToRightButtonOrder) {
    ButtonBarBuilder builder = new ButtonBarBuilder();
    builder.setLeftToRightButtonOrder(leftToRightButtonOrder);
    builder.addGriddedButtons(buttons);
    builder.addGlue();
    return builder.getPanel();
  }

  // General Purpose Factory Methods: Centered ****************************
 
View Full Code Here

Examples of org.gwt.mosaic.forms.client.builder.ButtonBarBuilder.addGriddedButtons()

   * @return a centered button bar with the given buttons
   */
  public static LayoutPanel buildCenteredBar(Button[] buttons) {
    ButtonBarBuilder builder = new ButtonBarBuilder();
    builder.addGlue();
    builder.addGriddedButtons(buttons);
    builder.addGlue();
    return builder.getPanel();
  }

  /**
 
View Full Code Here

Examples of org.gwt.mosaic.forms.client.builder.ButtonBarBuilder.addGriddedButtons()

   * @return a right aligned button bar with the given buttons
   */
  public static LayoutPanel buildRightAlignedBar(Button[] buttons) {
    ButtonBarBuilder builder = new ButtonBarBuilder();
    builder.addGlue();
    builder.addGriddedButtons(buttons);
    return builder.getPanel();
  }

  /**
   * Builds and returns a right aligned button bar with the given buttons.
View Full Code Here

Examples of org.gwt.mosaic.forms.client.builder.ButtonBarBuilder.addGriddedButtons()

  public static LayoutPanel buildRightAlignedBar(Button[] buttons,
      boolean leftToRightButtonOrder) {
    ButtonBarBuilder builder = new ButtonBarBuilder();
    builder.setLeftToRightButtonOrder(leftToRightButtonOrder);
    builder.addGlue();
    builder.addGriddedButtons(buttons);
    return builder.getPanel();
  }

  // Right Aligned Button Bars with Help in the Left **********************

 
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.