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
 GraphicButton 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.
 GraphicButton 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.
 ComboField addComboField(java.lang.String name, java.util.Collection items)
          Adds a combo box field with the given name and collection of possibilities, with no layout info.
 ComboField addComboField(java.lang.String name, java.util.Collection items, java.lang.Object fieldLayoutInfo)
          Adds a combo box field with the given name and collection of possibilities, with the specified layout info.
 DateAndTimeField addDateAndTimeField(java.lang.String name)
          Adds a date field with the given name, with no layout info.
 DateAndTimeField addDateAndTimeField(java.lang.String name, java.lang.Object fieldLayoutInfo)
          Adds a date 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.
 GUIField addField(java.lang.String name, java.lang.String fieldType)
          Acts like addFOOField for the given fieldType "FOO".
 GUIField addField(java.lang.String name, java.lang.String fieldType, java.lang.Object layoutInfo)
          Acts like addFOOField for the given fieldType "FOO".
 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.
 IntegerField addIntegerField(java.lang.String name)
          Adds a Integer field with the given name, with no layout info.
 IntegerField addIntegerField(java.lang.String name, java.lang.Object fieldLayoutInfo)
          Adds a Integer field with the given name, with the specified layout info.
 NamedBlobField addNamedBlobField(java.lang.String name)
           
 NamedBlobField addNamedBlobField(java.lang.String name, java.lang.Object fieldLayoutInfo)
           
 NumberField addNumberField(java.lang.String name)
          Adds a Number field with the given name, with no layout info.
 NumberField addNumberField(java.lang.String name, java.lang.Object fieldLayoutInfo)
          Adds a Number 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.
 ReadOnlyStringField addReadOnlyStringField(java.lang.String name)
          Adds a read-only string field with the given name, with no layout info.
 ReadOnlyStringField addReadOnlyStringField(java.lang.String name, java.lang.Object fieldLayoutInfo)
          Adds a string field with the given name, with the specified layout info.
 SoundField addSoundField(java.lang.String name)
           
 SoundField addSoundField(java.lang.String name, java.lang.Object fieldLayoutInfo)
           
 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.
 TimeField addTimeField(java.lang.String name)
          Adds a date field with the given name, with no layout info.
 TimeField addTimeField(java.lang.String name, java.lang.Object fieldLayoutInfo)
          Adds a date 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, layoutBox, layoutCard, layoutCentered, layoutFlow, layoutFlow, layoutForm, layoutGrid, layoutGrid, layoutGridBag, layoutGroup, layoutNewspaper, layoutNewspaper, layoutStretchAndStack, setBackgroundColor, setFont, setForegroundColor, setLabelHorizontalAlignment, setLabelVerticalAlignment, setLayout, startContainer, startContainer, startHorizontallySplitPane, startHorizontallySplitPane, startLayeredPane, startLayeredPane, startPanel, startPanel, startScrollPane, startScrollPane, startTabbedPane, startTabbedPane, startVerticallySplitPane, startVerticallySplitPane
 
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 GraphicButton 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 GraphicButton 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.


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)
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.


addReadOnlyStringField

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


addReadOnlyStringField

public ReadOnlyStringField addReadOnlyStringField(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.


addNumberField

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


addNumberField

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


addIntegerField

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


addIntegerField

public IntegerField addIntegerField(java.lang.String name,
                                    java.lang.Object fieldLayoutInfo)
Adds a Integer field with the given name, with the specified layout info. Does not add a label. Returns the created IntegerField 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.


addComboField

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


addComboField

public ComboField addComboField(java.lang.String name,
                                java.util.Collection items,
                                java.lang.Object fieldLayoutInfo)
Adds a combo box 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.


addDateAndTimeField

public DateAndTimeField addDateAndTimeField(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.


addDateAndTimeField

public DateAndTimeField addDateAndTimeField(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.


addTimeField

public TimeField addTimeField(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.


addTimeField

public TimeField addTimeField(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.


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.


addNamedBlobField

public NamedBlobField addNamedBlobField(java.lang.String name)

addNamedBlobField

public NamedBlobField addNamedBlobField(java.lang.String name,
                                        java.lang.Object fieldLayoutInfo)

addSoundField

public SoundField addSoundField(java.lang.String name)

addSoundField

public SoundField addSoundField(java.lang.String name,
                                java.lang.Object fieldLayoutInfo)

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.


addField

public GUIField addField(java.lang.String name,
                         java.lang.String fieldType)
Acts like addFOOField for the given fieldType "FOO".


addField

public GUIField addField(java.lang.String name,
                         java.lang.String fieldType,
                         java.lang.Object layoutInfo)
Acts like addFOOField for the given fieldType "FOO".