Examples of ButtonBarBuilder


Examples of com.jgoodies.forms.builder.ButtonBarBuilder

  public SimpleForm getForm()
  {
    if( editorForm == null )
    {
      ButtonBarBuilder builder = new ButtonBarBuilder();
      editorFontTextField = new JTextField( 20 );
      editorFontTextField.setEnabled( false );
      builder.addFixed( editorFontTextField );
      builder.addRelatedGap();
      builder.addFixed( new JButton( new AbstractAction( "Select Font.." )
      {
        public void actionPerformed( ActionEvent e )
        {
          Font font = JFontChooser.showDialog( UISupport.getMainFrame(), "Select XML Editor Font",
              Font.decode( editorFontTextField.getText() ) );

          if( font != null )
            editorFontTextField.setText( encodeFont( font ) );
        }
      } ) );

      editorForm = new SimpleForm();
      editorForm.addSpace( 5 );
      editorForm.append( "Editor Font", builder.getPanel() );
      editorForm.appendSeparator();
      editorForm.appendCheckBox( XML_LINE_NUMBERS, "Show line numbers in XML editors by default", true );
      editorForm.appendCheckBox( GROOVY_LINE_NUMBERS, "Show line numbers in Groovy editors by default", true );
      editorForm.appendSeparator();
      editorForm.appendCheckBox( NO_RESIZE_REQUEST_EDITOR, "Disables automatic resizing of Request editors", true );
View Full Code Here

Examples of org.gwt.mosaic.forms.client.builder.ButtonBarBuilder

   *
   * @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
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.