com.ibm.as400.util.html
Class LineLayoutFormPanel

java.lang.Object
  extended by com.ibm.as400.util.html.LayoutFormPanel
      extended by com.ibm.as400.util.html.LineLayoutFormPanel
All Implemented Interfaces:
HTMLTagElement, Serializable

public class LineLayoutFormPanel
extends LayoutFormPanel

The LineLayoutFormPanel class represents a line layout of HTML form elements. Form elements in the panel are aligned in a single row. The trailing slash "/" on the LineLayoutFormPanel tag allows it to conform to the XHTML specification.

This example creates a LineLayoutFormPanel object and adds two form elements.

  
  CheckboxFormInput privacyCheckbox = new CheckboxFormInput("confidential", "yes", "Confidential", true);
  CheckboxFormInput mailCheckbox = new CheckboxFormInput("mailingList", "yes", "Join our mailing list", false);
  LineLayoutFormPanel panel = new LineLayoutFormPanel();
  panel.addElement(privacyCheckbox);
  panel.addElement(mailCheckbox);
  String tag = panel.getTag();
  

The HTML tag that is generated would look like this:
<input type="checkbox" name="confidential" value="yes" checked="checked" /> Confidential <input type="checkbox" name="mailingList" value="yes" /> Join our mailing list <br />

See Also:
Serialized Form

Constructor Summary
Constructor and Description
LineLayoutFormPanel()
           
 
Method Summary
Modifier and Type Method and Description
 String getFOTag()
          Returns a comment tag.
 String getTag()
          Returns the line layout panel tag.
 
Methods inherited from class com.ibm.as400.util.html.LayoutFormPanel
addElement, addElementListener, getSize, removeElement, removeElementListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineLayoutFormPanel

public LineLayoutFormPanel()
Method Detail

getFOTag

public String getFOTag()
Returns a comment tag. This method should not be called. There is no XSL-FO support for this class.

Returns:
The comment tag.

getTag

public String getTag()
Returns the line layout panel tag.

Returns:
The tag.