com.partnersoft.gui
Class GUIFormBuilder2

java.lang.Object
  extended by com.partnersoft.gui.GUIBuilder
      extended by com.partnersoft.gui.GUIFormBuilder2

public class GUIFormBuilder2
extends GUIBuilder

An extension to GUIBuilder for building GUIForms.

Author:
Paul Reavis Copyright 2005 Partner Software, Inc.

Constructor Summary
GUIFormBuilder2()
           
GUIFormBuilder2(javax.swing.JPanel starter)
           
GUIFormBuilder2(javax.swing.JPanel starter, java.lang.Object methodProvider)
           
GUIFormBuilder2(java.lang.Object methodProvider)
           
 
Method Summary
 com.partnersoft.gui.GUIFormBuilder2.ActionButton addButton(java.lang.String label, java.lang.String actionMethod)
          This adds a button with the specified label, that calls the named method on the action handler.
 com.partnersoft.gui.GUIFormBuilder2.ActionButton addButton(java.lang.String label, java.lang.String actionMethod, java.lang.Object layoutInfo)
          This adds a button with the specified label, that calls the named method on the action handler.
 CheckboxField addCheckboxField(java.lang.String name)
          Adds a checkbox field with the given name, with no layout info.
 CheckboxField addCheckboxField(java.lang.String name, java.lang.Object fieldLayoutInfo)
          Adds a checkbox field with the given name, with the specified layout info.
 DateField addDateField(java.lang.String name)
          Adds a date field with the given name, with no layout info.
 DateField addDateField(java.lang.String name, java.lang.Object fieldLayoutInfo)
          Adds a date field with the given name, with the specified layout info.
 GUIField addField(java.lang.String name, GUIField field)
          Adds the given GUIField component, associated with the given field name, with no layout info.
 GUIField addField(java.lang.String name, GUIField field, java.lang.Object layoutInfo)
          Adds the given GUIField component, associated with the given field name and layout info.
 FilenameField addFilenameField(java.lang.String name)
          Adds a filename field with the given name, with no layout info.
 FilenameField addFilenameField(java.lang.String name, java.lang.Object fieldLayoutInfo)
          Adds a filename field with the given name, with the specified layout info.
 PasswordField addPasswordField(java.lang.String name)
          Adds a password field with the given name, with no layout info.
 PasswordField addPasswordField(java.lang.String name, java.lang.Object fieldLayoutInfo)
          Adds a password field with the given name, with the specified layout info.
 PicklistField addPicklistField(java.lang.String name, java.util.Collection items)
          Adds a picklist field with the given name and collection of possibilities, with no layout info.
 PicklistField addPicklistField(java.lang.String name, java.util.Collection items, java.lang.Object fieldLayoutInfo)
          Adds a picklist field with the given name and collection of possibilities, with the specified layout info.
 StringField addStringField(java.lang.String name)
          Adds a string field with the given name, with no layout info.
 StringField addStringField(java.lang.String name, java.lang.Object fieldLayoutInfo)
          Adds a string field with the given name, with the specified layout info.
 TextAreaField addTextAreaField(java.lang.String name, int columns, int rows)
          Adds a string field with the given name, with no layout info.
 TextAreaField addTextAreaField(java.lang.String name, java.lang.Object fieldLayoutInfo, int columns, int rows)
          Adds a string field with the given name, with the specified layout info.
 GUIForm finishForm()
           
 
Methods inherited from class com.partnersoft.gui.GUIBuilder
addBorder, addBorder, addComponent, addComponent, addLabel, addLabel, addLowFatLabel, addLowFatLabel, endPanel, finish, getBackgroundColor, getCurrentPanel, getFont, getForegroundColor, getLabelHorizontalAlignment, getLabelVerticalAlignment, layoutBorder, layoutCentered, layoutFlow, layoutFlow, layoutForm, layoutGrid, layoutGrid, layoutGridBag, layoutNewspaper, layoutNewspaper, setBackgroundColor, setFont, setForegroundColor, setLabelHorizontalAlignment, setLabelVerticalAlignment, startContainer, startContainer, startLayeredPane, startLayeredPane, startPanel, startPanel, startScrollPane, startScrollPane, startTabbedPane, startTabbedPane
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIFormBuilder2

public GUIFormBuilder2()

GUIFormBuilder2

public GUIFormBuilder2(java.lang.Object methodProvider)

GUIFormBuilder2

public GUIFormBuilder2(javax.swing.JPanel starter)

GUIFormBuilder2

public GUIFormBuilder2(javax.swing.JPanel starter,
                       java.lang.Object methodProvider)
Method Detail

finishForm

public GUIForm finishForm()

addButton

public com.partnersoft.gui.GUIFormBuilder2.ActionButton addButton(java.lang.String label,
                                                                  java.lang.String actionMethod)
This adds a button with the specified label, that calls the named method on the action handler. The label goes on the button itself (there is no separate label as with the addField functions). No layout info is used.


addButton

public com.partnersoft.gui.GUIFormBuilder2.ActionButton addButton(java.lang.String label,
                                                                  java.lang.String actionMethod,
                                                                  java.lang.Object layoutInfo)
This adds a button with the specified label, that calls the named method on the action handler. The label goes on the button itself (there is no separate label as with the addField functions). Provide your own layout info.


addPasswordField

public PasswordField addPasswordField(java.lang.String name)
Adds a password field with the given name, with no layout info. Does not add a label. Returns the created PasswordField in case you need to monkey with it.


addPasswordField

public PasswordField addPasswordField(java.lang.String name,
                                      java.lang.Object fieldLayoutInfo)
Adds a password field with the given name, with the specified layout info. Does not add a label. Returns the created PasswordField in case you need to monkey with it.


addStringField

public StringField addStringField(java.lang.String name)
Adds a string field with the given name, with no layout info. Does not add a label. Returns the created StringField in case you need to monkey with it.


addTextAreaField

public TextAreaField addTextAreaField(java.lang.String name,
                                      int columns,
                                      int rows)
Adds a string field with the given name, with no layout info. Does not add a label. Returns the created StringField in case you need to monkey with it.


addStringField

public StringField addStringField(java.lang.String name,
                                  java.lang.Object fieldLayoutInfo)
Adds a string field with the given name, with the specified layout info. Does not add a label. Returns the created StringField in case you need to monkey with it.


addTextAreaField

public TextAreaField addTextAreaField(java.lang.String name,
                                      java.lang.Object fieldLayoutInfo,
                                      int columns,
                                      int rows)
Adds a string field with the given name, with the specified layout info. Does not add a label. Returns the created StringField in case you need to monkey with it.


addPicklistField

public PicklistField addPicklistField(java.lang.String name,
                                      java.util.Collection items)
Adds a picklist field with the given name and collection of possibilities, with no layout info. Does not add a label. Returns the created PicklistField in case you need to monkey with it.


addPicklistField

public PicklistField addPicklistField(java.lang.String name,
                                      java.util.Collection items,
                                      java.lang.Object fieldLayoutInfo)
Adds a picklist field with the given name and collection of possibilities, with the specified layout info. Does not add a label. Returns the created PicklistField in case you need to monkey with it.


addCheckboxField

public CheckboxField addCheckboxField(java.lang.String name)
Adds a checkbox field with the given name, with no layout info. No label is added. Returns the created CheckboxField in case you need to monkey with it.


addCheckboxField

public CheckboxField addCheckboxField(java.lang.String name,
                                      java.lang.Object fieldLayoutInfo)
Adds a checkbox field with the given name, with the specified layout info. No label is added. Returns the created CheckboxField in case you need to monkey with it.


addDateField

public DateField addDateField(java.lang.String name)
Adds a date field with the given name, with no layout info. No label is added. Returns the created DateField in case you need to monkey with it.


addDateField

public DateField addDateField(java.lang.String name,
                              java.lang.Object fieldLayoutInfo)
Adds a date field with the given name, with the specified layout info. No label is added. Returns the created DateField in case you need to monkey with it.


addFilenameField

public FilenameField addFilenameField(java.lang.String name)
Adds a filename field with the given name, with no layout info. No label is added. Returns the created FilenameField in case you need to monkey with it.


addFilenameField

public FilenameField addFilenameField(java.lang.String name,
                                      java.lang.Object fieldLayoutInfo)
Adds a filename field with the given name, with the specified layout info. No label is added. Returns the created FilenameField in case you need to monkey with it.


addField

public GUIField addField(java.lang.String name,
                         GUIField field)
Adds the given GUIField component, associated with the given field name, with no layout info. Does not add a label.


addField

public GUIField addField(java.lang.String name,
                         GUIField field,
                         java.lang.Object layoutInfo)
Adds the given GUIField component, associated with the given field name and layout info. Does not add a label.