@Deprecated public class HorizontalFormBuilder extends GenericTableFormBuilder
FormBuilder.
EXPERIMENTAL UNSTABLE INTERFACE This builder helps with constructing horizontally-oriented
forms, where input fields are put next to each other with their labels on top of each other.
This is a replacement for TabularFormBuilder doing much of the same work but generating a
different layout.LOG| Constructor and Description |
|---|
HorizontalFormBuilder()
Deprecated.
Uninitialized form builder.
|
HorizontalFormBuilder(Class<T> clz,
IReadOnlyModel<T> mdl)
Deprecated.
Create a form builder using a lazy model and a current type.
|
HorizontalFormBuilder(T instance)
Deprecated.
Create a form builder to edit the specified, immutable instance (meaning the instance is immutable, not it's properties).
|
| Modifier and Type | Method and Description |
|---|---|
TD |
addCell()
Deprecated.
Add a new cell to the last-used row.
|
TD |
addCell(int colSpan,
int rowSpan)
Deprecated.
|
TD |
addCell(String css,
int colSpan,
int rowSpan)
Deprecated.
|
void |
addContent(NodeBase label,
NodeBase[] control,
boolean editable)
Deprecated.
|
protected void |
addControl(NodeBase label,
NodeBase labelnode,
NodeBase[] list,
boolean mandatory,
boolean editable,
PropertyMetaModel<?> pmm)
Deprecated.
|
protected void |
addControl(String label,
NodeBase labelnode,
NodeBase[] list,
boolean mandatory,
boolean editable,
PropertyMetaModel<?> pmm)
Deprecated.
This is the actual workhorse doing the per-builder actual placement and layouting of a {control, label} pair.
|
protected IControl<?>[] |
addListOfProperties(boolean editable,
String... names)
Deprecated.
Handle placement of a list of property names, all obeying the current mode in effect.
|
HorizontalFormBuilder |
colSpan(int x)
Deprecated.
Set the colspan for both label and control for all controls added after this call.
|
HorizontalFormBuilder |
controlClass(String controlClass)
Deprecated.
|
HorizontalFormBuilder |
controlColSpan(int x)
Deprecated.
Set the colspan for only the control for all controls added after this call.
|
HorizontalFormBuilder |
controlNowrap()
Deprecated.
|
HorizontalFormBuilder |
controlRowSpan(int x)
Deprecated.
Set the rowspan for only the control for all controls added after this call.
|
HorizontalFormBuilder |
controlWidth(String s)
Deprecated.
|
HorizontalFormBuilder |
defaultControlClass(String defaultControlClass)
Deprecated.
|
HorizontalFormBuilder |
defaultLabelClass(String defaultLabelClass)
Deprecated.
|
NodeContainer |
finish()
Deprecated.
This finishes off the current table by calculating colspans for all skewed rows.
|
void |
finish(NodeContainer target)
Deprecated.
|
void |
finish(NodeContainer target,
boolean balance)
Deprecated.
Adds the generated tables/table to the target specified.
|
TR |
getEditRow()
Deprecated.
|
TR |
getLabelRow()
Deprecated.
|
protected void |
internalClearLocation()
Deprecated.
Called when a new table, body or whatever is made current; it should reset all known positioning information.
|
HorizontalFormBuilder |
labelClass(String labelClass)
Deprecated.
|
HorizontalFormBuilder |
labelColSpan(int x)
Deprecated.
Set the colspan for only the label for all controls added after this call.
|
HorizontalFormBuilder |
labelNowrap()
Deprecated.
|
HorizontalFormBuilder |
labelRowSpan(int x)
Deprecated.
Set the rowspan for only the label for all controls added after this call.
|
HorizontalFormBuilder |
labelWidth(String s)
Deprecated.
|
void |
nl()
Deprecated.
Start a new row of input fields.
|
HorizontalFormBuilder |
nowrap()
Deprecated.
|
protected void |
onTableAdded(Table t)
Deprecated.
Called when a new table is added.
|
HorizontalFormBuilder |
rowSpan(int x)
Deprecated.
Set the rowspan for both label and control for all controls added after this call.
|
HorizontalFormBuilder |
tablePerForm()
Deprecated.
|
HorizontalFormBuilder |
tablePerRow()
Deprecated.
|
HorizontalFormBuilder |
width(String s)
Deprecated.
|
addCell, addRow, addRowAndCell, addRowAndCell, getLastUsedRow, getTable, getTBody, newBody, onBodyAdded, onRowAdded, reset, row, selectRow, setLastUsedCell, setLastUsedRow, setTable, setTBody, table, tbodyaddContent, addContent, addContent, addDisplayProp, addDisplayProp, addDisplayProp, addDisplayProps, addLabelAndControl, addLabelAndControl, addProp, addProp, addProp, addProp, addProp, addProp, addProp, addProp, addPropertyAndControl, addPropertyControl, addPropscreateControlFor, getBindings, getBuilder, getClassMeta, getControlLabelFactory, getCurrentInputClass, getModel, resolveProperty, setBindings, setClassModel, setControlLabelFactory, setInstance, setMetaModel, updateReadOnlypublic HorizontalFormBuilder()
public HorizontalFormBuilder(Class<T> clz, IReadOnlyModel<T> mdl)
T - clz - mdl - public HorizontalFormBuilder(T instance)
T - instance - @Nonnull public TD addCell()
GenericTableFormBuilderaddCell in class GenericTableFormBuilderGenericTableFormBuilder.addCell()public TD addCell(int colSpan, int rowSpan)
public TR getLabelRow()
public TR getEditRow()
protected void addControl(String label, NodeBase labelnode, NodeBase[] list, boolean mandatory, boolean editable, PropertyMetaModel<?> pmm)
GenericFormBuilderaddControl in class GenericFormBuildermandatory - T when the node is mandatory, needed by the label factoryeditable - T when the node is editable, needed by the label factoryto.etc.domui.component.form.GenericFormBuilder#addControl(java.lang.String, to.etc.domui.dom.html.NodeBase, to.etc.domui.dom.html.NodeBase[], boolean, to.etc.domui.component.meta.PropertyMetaModel)protected void addControl(NodeBase label, NodeBase labelnode, NodeBase[] list, boolean mandatory, boolean editable, PropertyMetaModel<?> pmm)
addControl in class GenericFormBuilderpublic void addContent(NodeBase label, NodeBase[] control, boolean editable)
addContent in class GenericFormBuilderprotected IControl<?>[] addListOfProperties(boolean editable, String... names)
GenericFormBuilderaddListOfProperties in class GenericFormBuilderprotected void onTableAdded(Table t)
GenericTableFormBuilderonTableAdded in class GenericTableFormBuilderprotected void internalClearLocation()
GenericTableFormBuilderinternalClearLocation in class GenericTableFormBuilderpublic void nl()
public NodeContainer finish()
finish in class GenericTableFormBuilderpublic void finish(NodeContainer target)
public void finish(NodeContainer target, boolean balance)
target - public HorizontalFormBuilder colSpan(int x)
x - public HorizontalFormBuilder rowSpan(int x)
x - public HorizontalFormBuilder labelColSpan(int x)
x - public HorizontalFormBuilder labelRowSpan(int x)
x - public HorizontalFormBuilder controlColSpan(int x)
x - public HorizontalFormBuilder controlRowSpan(int x)
x - public HorizontalFormBuilder defaultLabelClass(String defaultLabelClass)
public HorizontalFormBuilder defaultControlClass(String defaultControlClass)
public HorizontalFormBuilder labelClass(String labelClass)
public HorizontalFormBuilder controlClass(String controlClass)
public HorizontalFormBuilder tablePerRow()
public HorizontalFormBuilder tablePerForm()
public HorizontalFormBuilder labelWidth(String s)
public HorizontalFormBuilder controlWidth(String s)
public HorizontalFormBuilder labelNowrap()
public HorizontalFormBuilder controlNowrap()
public HorizontalFormBuilder nowrap()
public HorizontalFormBuilder width(String s)
Copyright © 2017 etc.to. All rights reserved.