|
||||||||||
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
public abstract class GenericTableFormBuilder
This explicitly makes forms that are represented by some kind of table. It contains basic table manipulation code and stuff.
Field Summary |
---|
Fields inherited from class to.etc.domui.component.form.FormBuilderBase |
---|
LOG |
Constructor Summary | |
---|---|
GenericTableFormBuilder()
|
|
GenericTableFormBuilder(java.lang.Class<T> clz,
IReadOnlyModel<T> mdl)
|
|
GenericTableFormBuilder(T instance)
|
Method Summary | |
---|---|
TD |
addCell()
Add a new cell to the last-used row. |
TD |
addCell(java.lang.String css)
|
TR |
addRow()
Add a new row to the current body; create a body (and a table) if necessary. |
TD |
addRowAndCell()
|
TD |
addRowAndCell(java.lang.String tdcss)
|
NodeContainer |
finish()
This finishes off the current table by calculating colspans for all skewed rows. |
TR |
getLastUsedRow()
Get the last-used row. |
Table |
getTable()
Return the current table, or null if nothing is current. |
TBody |
getTBody()
Return the current tbody, or null if nothing is current. |
protected void |
internalClearLocation()
Called when a new table, body or whatever is made current; it should reset all known positioning information. |
TBody |
newBody()
Creates a new TBody and adds it to the table. |
protected void |
onBodyAdded(TBody b)
|
protected void |
onRowAdded(TR row)
|
protected void |
onTableAdded(Table t)
Called when a new table is added. |
void |
reset()
Clears the current generated layout and starts a new table. |
TR |
row()
Gets the last-used row. |
TR |
selectRow(int ix)
This makes the row with the specified index in the current body the "current" row. |
protected void |
setLastUsedCell(TD cell)
|
protected void |
setLastUsedRow(TR row)
|
void |
setTable(Table b)
Sets a new table. |
void |
setTBody(TBody b)
Sets the TBody to use. |
protected Table |
table()
Gets the current table, or creates a new one if none is set. |
protected TBody |
tbody()
Gets the current tbody, or creates a new one if none is set. |
Methods inherited from class to.etc.domui.component.form.GenericFormBuilder |
---|
addContent, addContent, addContent, addControl, addControl, addDisplayProp, addDisplayProp, addDisplayProp, addDisplayProps, addLabelAndControl, addLabelAndControl, addListOfProperties, 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 GenericTableFormBuilder()
public GenericTableFormBuilder(java.lang.Class<T> clz, IReadOnlyModel<T> mdl)
public GenericTableFormBuilder(T instance)
Method Detail |
---|
protected void internalClearLocation()
public void reset()
public void setTable(Table b)
b
- public void setTBody(TBody b)
b
- protected void onTableAdded(Table t)
t
- protected void onBodyAdded(TBody b)
protected void onRowAdded(TR row)
public Table getTable()
public TBody getTBody()
protected Table table()
onTableAdded(Table)
event.
protected TBody tbody()
onBodyAdded(TBody)
event.
public TBody newBody()
public NodeContainer finish()
@Nonnull public TR addRow()
@Nonnull public TR row()
@Nullable public TR getLastUsedRow()
public TR selectRow(int ix)
ix
-
@Nonnull public TD addCell()
@Nonnull public TD addCell(java.lang.String css)
@Nonnull public TD addRowAndCell()
@Nonnull public TD addRowAndCell(java.lang.String tdcss)
protected void setLastUsedRow(TR row)
protected void setLastUsedCell(TD cell)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |