LineLayoutFormPanel class

The LineLayoutFormPanel class represents a line layout of form elements for an HTML form. The form elements are arranged in a single row within a panel.

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 code example above generates the following HTML code:

    <input type="checkbox" name="confidential" value="yes"
    checked="checked" /> Confidential <input type="checkbox"
    name="mailingList" value="yes" /> Join our mailing list <br/>