Class FormBuilder

  • public class FormBuilder
    extends SwingOwner
    A class to build a form.
    • Constructor Detail

      • FormBuilder

        public FormBuilder()
    • Method Detail

      • getPadding

        public java.awt.Insets getPadding()
        Returns the padding.
      • setPadding

        public void setPadding​(java.awt.Insets theInsets)
        Sets the padding.
      • setPadding

        public void setPadding​(int aTp,
                               int aLt,
                               int aBt,
                               int aRt)
        Sets the padding.
      • getSpacing

        public int getSpacing()
        Returns the spacing between components.
      • setSpacing

        public void setSpacing​(int aValue)
        Sets the spacing between components.
      • getFont

        public java.awt.Font getFont()
        Returns the font.
      • setFont

        public void setFont​(java.awt.Font aFont)
        Sets the font.
      • addLabel

        public javax.swing.JLabel addLabel​(java.lang.String aTitle)
        Adds a label.
      • addSeparator

        public javax.swing.JSeparator addSeparator()
        Adds a separator.
      • addTextField

        public javax.swing.JTextField addTextField​(java.lang.String aTitle,
                                                   java.lang.String aDefault)
        Adds a text field.
      • addTextField

        public javax.swing.JTextField addTextField​(java.lang.String aTitle,
                                                   java.lang.String aDefault,
                                                   int aWidth)
        Adds a text field.
      • addComboBox

        public javax.swing.JComboBox addComboBox​(java.lang.String aTitle,
                                                 java.lang.String[] options,
                                                 java.lang.String aDefault)
        Adds an option field.
      • addRadioButtons

        public java.util.List<javax.swing.JRadioButton> addRadioButtons​(java.lang.String aTitle,
                                                                        java.lang.String[] options,
                                                                        java.lang.String aDefault)
        Adds radio buttons.
      • addRadioButton

        public javax.swing.JRadioButton addRadioButton​(java.lang.String aTitle,
                                                       java.lang.String theText,
                                                       boolean isSelected)
        Adds a radio button.
      • addNode

        public <T extends javax.swing.JComponent> T addNode​(T aComp)
        Adds a component.
      • showPanel

        public boolean showPanel​(javax.swing.JComponent aComp,
                                 java.lang.String aTitle,
                                 javax.swing.Icon anIcon)
        Runs the option panel and returns a map.
      • getValue

        public java.lang.Object getValue​(java.lang.String aKey)
        Returns the specified value.
      • setValue

        public void setValue​(java.lang.String aKey,
                             java.lang.Object aValue)
        Sets the specified value.
      • getStringValue

        public java.lang.String getStringValue​(java.lang.String aKey)
        Returns the specified value.
      • createUI

        protected javax.swing.JComponent createUI()
        Creates the UI.
        createUI in class SwingOwner
      • getButtonGroup

        protected javax.swing.ButtonGroup getButtonGroup​(java.lang.String aName)
        Return the button group in this table for the given name (creating if needed).