to.etc.domui.component.form
Class OldHorizontalFormBuilder

java.lang.Object
  extended by to.etc.domui.component.form.FormBuilderBase
      extended by to.etc.domui.component.form.GenericFormBuilder
          extended by to.etc.domui.component.form.GenericTableFormBuilder
              extended by to.etc.domui.component.form.OldHorizontalFormBuilder

Deprecated.

@Deprecated
public class OldHorizontalFormBuilder
extends GenericTableFormBuilder

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.

Author:
Frits Jalvingh Created on Aug 13, 2009

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

OldHorizontalFormBuilder

public OldHorizontalFormBuilder()
Deprecated. 

OldHorizontalFormBuilder

public OldHorizontalFormBuilder(java.lang.Class<T> clz,
                                IReadOnlyModel<T> mdl)
Deprecated. 

OldHorizontalFormBuilder

public OldHorizontalFormBuilder(T instance)
Deprecated. 
Method Detail

addControl

protected void addControl(java.lang.String label,
                          NodeBase labelnode,
                          NodeBase[] list,
                          boolean mandatory,
                          boolean editable,
                          PropertyMetaModel<?> pmm)
Deprecated. 
Description copied from class: GenericFormBuilder
This is the actual workhorse doing the per-builder actual placement and layouting of a {control, label} pair.

Specified by:
addControl in class GenericFormBuilder
mandatory - T when the node is mandatory, needed by the label factory
editable - T when the node is editable, needed by the label factory
See Also:
to.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)

addControl

protected void addControl(NodeBase label,
                          NodeBase labelnode,
                          NodeBase[] list,
                          boolean mandatory,
                          boolean editable,
                          PropertyMetaModel<?> pmm)
Deprecated. 
Specified by:
addControl in class GenericFormBuilder

addControl

protected void addControl(java.lang.String label,
                          int colSpan,
                          NodeBase labelnode,
                          NodeBase[] list,
                          boolean mandatory,
                          boolean editable,
                          PropertyMetaModel<?> pmm)
Deprecated. 
See Also:
In addition, enables customization of colSpan for rendered cell.

addContent

public void addContent(NodeBase label,
                       NodeBase[] control,
                       boolean editable)
Deprecated. 
Specified by:
addContent in class GenericFormBuilder

addListOfProperties

protected IControl<?>[] addListOfProperties(boolean editable,
                                            java.lang.String... names)
Deprecated. 
Description copied from class: GenericFormBuilder
Handle placement of a list of property names, all obeying the current mode in effect.

Specified by:
addListOfProperties in class GenericFormBuilder

addCell

public TD addCell()
Deprecated. 
Description copied from class: GenericTableFormBuilder
Add a new cell to the last-used row.

Overrides:
addCell in class GenericTableFormBuilder
Returns:

addCell

public TD addCell(int colSpan,
                  int rowSpan)
Deprecated. 

addCell

public TD addCell(java.lang.String css,
                  int colSpan,
                  int rowSpan)
Deprecated. 

internalClearLocation

protected void internalClearLocation()
Deprecated. 
Description copied from class: GenericTableFormBuilder
Called when a new table, body or whatever is made current; it should reset all known positioning information.

Overrides:
internalClearLocation in class GenericTableFormBuilder

finish

public Table finish()
Deprecated. 
This finishes off the current table by calculating colspans for all skewed rows. This discards the current table!

Overrides:
finish in class GenericTableFormBuilder
Returns:

getLabelRow

public TR getLabelRow()
Deprecated. 
Returns:

getEditRow

public TR getEditRow()
Deprecated. 

nl

public void nl()
Deprecated. 
Start a new row of input fields.


addPropWithSpan

public 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. Add an input for the specified property. The property is based at the current input class. The input model is default (using metadata) and the property is labeled using the metadata-provided label. FORMAL-INTERFACE.

Parameters:
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.
Returns:

addPropWithSpan

public 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. Add an input for the specified property. The property is based at the current input class. The input model is default (using metadata) and the property is labeled using the label provided by method parameter. FORMAL-INTERFACE.

Parameters:
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.
Returns:

addPropertyAndControlWithSpan

public 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. This adds a fully user-specified control for a given property with it's default label, without creating any binding. The only reason the property is passed is to use it's metadata to define it's access rights and default label.

Parameters:
propertyName -
nb -
mandatory -
colSpan -