| java.lang.Object org.mortbay.html.Element org.mortbay.html.Composite org.mortbay.html.Block org.mortbay.html.Form org.mortbay.html.TableForm
TableForm | public class TableForm extends Form (Code) | | A form laid out in a Table.
This class creates a form and lays out all the elements within a
table. Each element added has a label part and a element part. The label
is displayed in the form beside the element. All buttons are shown at the
bottom.
|
Constructor Summary | |
public | TableForm(String target) Create a new TableForm. |
Method Summary | |
public Input | addButton(String tag, String label) Add a Submit Button. | public void | addButtonArea(String label) | public void | addButtonArea() | public void | addButtonRow() | public void | addCheckbox(String tag, String label, boolean checked) | public void | addColumn() Create a new column in the form. | public void | addColumn(int spacing) Create a new column in the form. | public void | addField(String label, Element field) Add an arbitrary element to the table. | public Input | addFileField(String tag, String label) Add a File Entry Field. | public void | addHiddenField(String tag, String value) Add a hidden field. | public void | addInfoField(String tag, String label, String value) Add an informational field which also passes the data as hidden. | public void | addPassword(String tag, String label, int length) Add a password field. | public void | addReset(String label) Add a reset button. | public Select | addSelect(String tag, String label, boolean multiple, int size) Add a Select field. | public Select | addSelect(String tag, String label, boolean multiple, int size, Enumeration values) Add a Select field initialised with fields. | public void | addText(String label, String value) Add an informational section. | public TextArea | addTextArea(String tag, String label, int width, int height, String value) Add a Text Area. | public Input | addTextField(String tag, String label, int length, String value) Add a Text Entry Field. | public void | buttonsAtBottom() | public TableForm | extendRow() Extend the usage of the current row in the form. | public void | newColumns() Add a new sections of columns. | public void | newTable() Start using a new Table.
Anything added to the Composite parent of
this object before this is called will be added between the two
tables. | public Table | outerTable() | public void | setColumnSpan(int span) Set the column span of the current column.
This call is needed for forms that have varying numbers
of columns in different sections. | public Table | table() | public void | useAttributes(String attr) | public void | write(Writer out) |
TableForm | public TableForm(String target)(Code) | | Create a new TableForm.
Parameters: target - The target url to send the form contents to |
addButton | public Input addButton(String tag, String label)(Code) | | Add a Submit Button.
Parameters: tag - The form name of the element Parameters: label - The label for the Button |
addButtonArea | public void addButtonArea()(Code) | | |
addButtonRow | public void addButtonRow()(Code) | | |
addCheckbox | public void addCheckbox(String tag, String label, boolean checked)(Code) | | Parameters: tag - The form name of the element Parameters: label - The label for the element in the table. |
addColumn | public void addColumn()(Code) | | Create a new column in the form.
|
addColumn | public void addColumn(int spacing)(Code) | | Create a new column in the form.
|
addField | public void addField(String label, Element field)(Code) | | Add an arbitrary element to the table.
Parameters: label - The label for the element in the table. |
addFileField | public Input addFileField(String tag, String label)(Code) | | Add a File Entry Field.
Parameters: tag - The form name of the element Parameters: label - The label for the element in the table. |
addHiddenField | public void addHiddenField(String tag, String value)(Code) | | Add a hidden field.
Parameters: tag - The form name of the element |
addInfoField | public void addInfoField(String tag, String label, String value)(Code) | | Add an informational field which also passes the data as hidden.
Parameters: tag - The form name of the element Parameters: label - The label for the element in the table. |
addPassword | public void addPassword(String tag, String label, int length)(Code) | | Add a password field.
Parameters: tag - The form name of the element Parameters: label - The label for the element in the table. |
addReset | public void addReset(String label)(Code) | | Add a reset button.
Parameters: label - The label for the element in the table. |
addSelect | public Select addSelect(String tag, String label, boolean multiple, int size)(Code) | | Add a Select field.
Parameters: tag - The form name of the element Parameters: label - The label for the element in the table. |
addSelect | public Select addSelect(String tag, String label, boolean multiple, int size, Enumeration values)(Code) | | Add a Select field initialised with fields.
Parameters: tag - The form name of the element Parameters: label - The label for the element in the table. |
addText | public void addText(String label, String value)(Code) | | Add an informational section.
|
addTextArea | public TextArea addTextArea(String tag, String label, int width, int height, String value)(Code) | | Add a Text Area.
Parameters: tag - The form name of the element Parameters: label - The label for the element in the table. |
addTextField | public Input addTextField(String tag, String label, int length, String value)(Code) | | Add a Text Entry Field.
Parameters: tag - The form name of the element Parameters: label - The label for the element in the table. |
buttonsAtBottom | public void buttonsAtBottom()(Code) | | |
extendRow | public TableForm extendRow()(Code) | | Extend the usage of the current row in the form. The next
element added will be added to the same row as the form and
not have a label of it's own.
TableForm, the this pointer so that users can write:tableForm.extendRow().addField(...) |
newColumns | public void newColumns()(Code) | | Add a new sections of columns.
|
newTable | public void newTable()(Code) | | Start using a new Table.
Anything added to the Composite parent of
this object before this is called will be added between the two
tables.
|
outerTable | public Table outerTable()(Code) | | Get the internal table
|
setColumnSpan | public void setColumnSpan(int span)(Code) | | Set the column span of the current column.
This call is needed for forms that have varying numbers
of columns in different sections. NB. and column spacing
counts as a column.
Parameters: span - |
useAttributes | public void useAttributes(String attr)(Code) | | Use the given attributes on the next addXXX
|
|
|