|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.component.form.FormBuilderBase
to.etc.domui.component.form.GenericFormBuilder
to.etc.domui.component.form.GenericTableFormBuilder
to.etc.domui.component.form.OldHorizontalFormBuilder
@Deprecated public class OldHorizontalFormBuilder
PENDING REMOVAL- replace with HorizontalFormBuilder
.
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.
Field Summary |
---|
Fields inherited from class to.etc.domui.component.form.FormBuilderBase |
---|
LOG |
Constructor Summary | |
---|---|
OldHorizontalFormBuilder()
Deprecated. |
|
OldHorizontalFormBuilder(java.lang.Class<T> clz,
IReadOnlyModel<T> mdl)
Deprecated. |
|
OldHorizontalFormBuilder(T instance)
Deprecated. |
Method Summary | |
---|---|
TD |
addCell()
Deprecated. Add a new cell to the last-used row. |
TD |
addCell(int colSpan,
int rowSpan)
Deprecated. |
TD |
addCell(java.lang.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(java.lang.String label,
int colSpan,
NodeBase labelnode,
NodeBase[] list,
boolean mandatory,
boolean editable,
PropertyMetaModel<?> pmm)
Deprecated. |
protected void |
addControl(java.lang.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,
java.lang.String... names)
Deprecated. Handle placement of a list of property names, all obeying the current mode in effect. |
void |
addPropertyAndControlWithSpan(java.lang.String propertyName,
NodeBase nb,
boolean mandatory,
int colSpan)
Deprecated. Enable adding of field into table cell with possibility to customize colspan. |
IControl<?> |
addPropWithSpan(java.lang.String name,
boolean readOnly,
boolean mandatory,
int colSpan)
Deprecated. Enable adding of field into table cell with possibility to customize colspan. |
IControl<?> |
addPropWithSpan(java.lang.String name,
java.lang.String label,
boolean readOnly,
boolean mandatory,
int colSpan)
Deprecated. Enable adding of field into table cell with possibility to customize colspan. |
Table |
finish()
Deprecated. This finishes off the current table by calculating colspans for all skewed rows. |
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. |
void |
nl()
Deprecated. Start a new row of input fields. |
Methods inherited from class to.etc.domui.component.form.GenericTableFormBuilder |
---|
addCell, addRow, addRowAndCell, addRowAndCell, getLastUsedRow, getTable, getTBody, newBody, onBodyAdded, onRowAdded, onTableAdded, reset, row, selectRow, setLastUsedCell, setLastUsedRow, setTable, setTBody, table, tbody |
Methods inherited from class to.etc.domui.component.form.GenericFormBuilder |
---|
addContent, addContent, addDisplayProp, addDisplayProp, addDisplayProp, addDisplayProps, addLabelAndControl, addLabelAndControl, addProp, addProp, addProp, addProp, addProp, addProp, addProp, addPropertyAndControl, addPropertyControl, addProps |
Methods inherited from class to.etc.domui.component.form.FormBuilderBase |
---|
createControlFor, createControlFor, getBindings, getBuilder, getClassMeta, getContext, getControlLabelFactory, getCurrentInputClass, getModel, resolveProperty, rights, setBindings, setClassModel, setContext, setControlLabelFactory, setInstance, setMetaModel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OldHorizontalFormBuilder()
public OldHorizontalFormBuilder(java.lang.Class<T> clz, IReadOnlyModel<T> mdl)
public OldHorizontalFormBuilder(T instance)
Method Detail |
---|
protected void addControl(java.lang.String label, NodeBase labelnode, NodeBase[] list, boolean mandatory, boolean editable, PropertyMetaModel<?> pmm)
GenericFormBuilder
addControl
in class GenericFormBuilder
mandatory
- 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 GenericFormBuilder
protected void addControl(java.lang.String label, int colSpan, NodeBase labelnode, NodeBase[] list, boolean mandatory, boolean editable, PropertyMetaModel<?> pmm)
In addition, enables customization of colSpan for rendered cell.
public void addContent(NodeBase label, NodeBase[] control, boolean editable)
addContent
in class GenericFormBuilder
protected IControl<?>[] addListOfProperties(boolean editable, java.lang.String... names)
GenericFormBuilder
addListOfProperties
in class GenericFormBuilder
public TD addCell()
GenericTableFormBuilder
addCell
in class GenericTableFormBuilder
public TD addCell(int colSpan, int rowSpan)
public TD addCell(java.lang.String css, int colSpan, int rowSpan)
protected void internalClearLocation()
GenericTableFormBuilder
internalClearLocation
in class GenericTableFormBuilder
public Table finish()
finish
in class GenericTableFormBuilder
public TR getLabelRow()
public TR getEditRow()
public void nl()
public IControl<?> addPropWithSpan(java.lang.String name, boolean readOnly, boolean mandatory, int colSpan)
name
- readOnly
- In case of readOnly set to true behaves same as addReadOnlyProp.mandatory
- Specify if field is mandatory. This always overrides the mandatoryness of the metadata which is questionable.span
- Specify cell span.
public IControl<?> addPropWithSpan(java.lang.String name, java.lang.String label, boolean readOnly, boolean mandatory, int colSpan)
name
- label
- User defined label.readOnly
- In case of readOnly set to true behaves same as addReadOnlyProp.mandatory
- Specify if field is mandatory. This always overrides the mandatoryness of the metadata which is questionable.span
- Specify cell span.
public void addPropertyAndControlWithSpan(java.lang.String propertyName, NodeBase nb, boolean mandatory, int colSpan)
propertyName
- nb
- mandatory
- colSpan
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |