public class GridLayoutFormPanel extends LayoutFormPanel
GridLayoutFormPanel objects generate the following events:
This examples creates a GridLayoutFormPanel object with two columns.
  
  // Create a text form input element for the system.
  LabelFormElement sysPrompt = new LabelFormElement("System:");
  TextFormInput system = new TextFormInput("System");
  
  // Create a text form input element for the userId.
  LabelFormElement userPrompt = new LabelFormElement("User:");
  TextFormInput user = new TextFormInput("User");
  
  // Create a password form input element for the password.
  LabelFormElement passwordPrompt = new LabelFormElement("Password:");
  PasswordFormInput password = new PasswordFormInput("Password");
  
  // Create the GridLayoutFormPanel object with two columns and add the form elements.
  GridLayoutFormPanel panel = new GridLayoutFormPanel(2);
  panel.addElement(sysPrompt);
  panel.addElement(system);
  panel.addElement(userPrompt);
  panel.addElement(user);
  panel.addElement(passwordPrompt);
  panel.addElement(password);
  
  // Create the submit button to the form.
  SubmitFormInput logonButton = new SubmitFormInput("logon", "Logon");
  
  // Create HTMLForm object and add the panel to it.
  HTMLForm form = new HTMLForm(servletURI);
  form.addElement(panel);
  form.addElement(logonButton);
  | Constructor and Description | 
|---|
| GridLayoutFormPanel()Constructs a default GridLayoutFormPanel with one column. | 
| GridLayoutFormPanel(int columns)Constructs a GridLayoutFormPanel with the specified number of columns. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addPropertyChangeListener(java.beans.PropertyChangeListener listener)Adds a PropertyChangeListener. | 
| void | addVetoableChangeListener(java.beans.VetoableChangeListener listener)Adds the VetoableChangeListener. | 
| java.lang.String | getAlignment()Returns the alignment of the text interpretation. | 
| java.lang.String | getColumnAlignment(int column)Returns the alignment of the text that is used for
 elements in a specific column in the grid. | 
| java.lang.String | getColumnDirection(int column)Returns the direction of the text interpretation that is
 used for elements in a specific column in the grid. | 
| int | getColumns()Returns the number of columns in the layout. | 
| java.lang.String | getDirection()Returns the direction of the text interpretation. | 
| java.lang.String | getFOTag()Returns a comment tag. | 
| java.lang.String | getLanguage()Returns the language of the input element. | 
| java.lang.String | getTag()Returns the grid layout panel tag. | 
| void | removePropertyChangeListener(java.beans.PropertyChangeListener listener)Removes the PropertyChangeListener from the internal list. | 
| void | removeVetoableChangeListener(java.beans.VetoableChangeListener listener)Removes the VetoableChangeListener from the internal list. | 
| void | setAlignment(java.lang.String align)Sets the alignment of the text for the grid. | 
| void | setColumnAlignment(int column,
                  java.lang.String align)Sets the alignment of the text interpretation that is used
 for elements in a specific column in the grid. | 
| void | setColumnDirection(int column,
                  java.lang.String dir)Sets the direction of the text interpretation that is used
 for elements in a specific column in the grid. | 
| void | setColumns(int columns)Sets the number of columns in the layout. | 
| void | setDirection(java.lang.String dir)Sets the direction of the text interpretation. | 
| void | setLanguage(java.lang.String lang)Sets the language of the input tag. | 
addElement, addElementListener, getSize, removeElement, removeElementListener, toStringpublic GridLayoutFormPanel()
public GridLayoutFormPanel(int columns)
columns - The number of columns.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The PropertyChangeListener.removePropertyChangeListener(java.beans.PropertyChangeListener)public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener - The VetoableChangeListener.removeVetoableChangeListener(java.beans.VetoableChangeListener)public java.lang.String getAlignment()
public java.lang.String getColumnAlignment(int column)
getAlignment
 to determine the alignment used for the overall grid.column - The column for which to retrieve the alignment. The column is 0-based.setColumnAlignment(int, java.lang.String)public java.lang.String getColumnDirection(int column)
getDirection
 to determine the direction used for the overall grid.column - The column for which to retrieve the direction. The column is 0-based.setColumnDirection(int, java.lang.String)public int getColumns()
public java.lang.String getDirection()
public java.lang.String getLanguage()
public java.lang.String getFOTag()
public java.lang.String getTag()
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The PropertyChangeListener.addPropertyChangeListener(java.beans.PropertyChangeListener)public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener - The VetoableChangeListener.addVetoableChangeListener(java.beans.VetoableChangeListener)public void setAlignment(java.lang.String align)
align - The alignment. Use one of the following constants
 defined in HTMLConstants:  LEFT, RIGHT, or CENTER.HTMLConstantspublic void setColumnAlignment(int column,
                      java.lang.String align)
setAlignment
 to set the alignment for the overall grid.column - The column. This value is 0-based.align - The alignment. One of the following constants
 defined in HTMLConstants:  LEFT, RIGHT, or CENTER.HTMLConstantspublic void setColumnDirection(int column,
                      java.lang.String dir)
setDirection
 to set the direction for the overall grid.column - The column. This value is 0-based.dir - The direction. One of the following constants
 defined in HTMLConstants:  LTR or RTL.HTMLConstantspublic void setColumns(int columns)
                throws java.beans.PropertyVetoException
columns - The number of columns.java.beans.PropertyVetoException - If a change is vetoed.public void setDirection(java.lang.String dir)
                  throws java.beans.PropertyVetoException
dir - The direction.  One of the following constants
  defined in HTMLConstants:  LTR or RTL.java.beans.PropertyVetoException - If a change is vetoed.HTMLConstantspublic void setLanguage(java.lang.String lang)
                 throws java.beans.PropertyVetoException
lang - The language.  Example language tags include:
  en and en-US.java.beans.PropertyVetoException - If a change is vetoed.