public class LineLayoutFormPanel extends LayoutFormPanel
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 />
| Constructor and Description |
|---|
LineLayoutFormPanel() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFOTag()
Returns a comment tag.
|
java.lang.String |
getTag()
Returns the line layout panel tag.
|
addElement, addElementListener, getSize, removeElement, removeElementListener, toString