|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.builder.helper.TableModelHelper
public class TableModelHelper
A utility class to help construct a HTML like table structure
Copyright: Copyright (c) Formaria Ltd., 2008
| Constructor Summary | |
|---|---|
TableModelHelper()
|
|
| Method Summary | |
|---|---|
static DataModel |
addData(DataModel model,
java.lang.String name,
java.lang.String value)
Add data to the specified model. |
static DataModel |
addHeader(DataModel model)
Creates a new 'th' node and returns it |
static DataModel |
addRow(DataModel model)
Add a new 'tr' node to the passed DataModel |
static DataModel |
createDataItem(java.lang.String name,
java.lang.String value,
DataModel model)
|
static DataModel |
createDataSet(java.lang.String name)
Creates a new dataset within the model with the specified name. |
static DataModel |
createDataSet(java.lang.String name,
DataModel model)
|
static DataModel |
createTable(DataModel model,
java.lang.String name)
Adds a new table DataModel node to the model node The DataModel which will have the newly created table DataModel appended to it |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableModelHelper()
| Method Detail |
|---|
public static DataModel createDataSet(java.lang.String name)
name - The name to be given to the new DataModel
public static DataModel createDataSet(java.lang.String name,
DataModel model)
public static DataModel createDataItem(java.lang.String name,
java.lang.String value,
DataModel model)
public static DataModel createTable(DataModel model,
java.lang.String name)
model - The DataModel which will have the newly created model appended
to itname - The name of the new DataModel
public static DataModel addHeader(DataModel model)
model - The model which will have the newly created DataModel appended to
it
public static DataModel addRow(DataModel model)
model - The model which will have the newly created DataModel appended to
it
public static DataModel addData(DataModel model,
java.lang.String name,
java.lang.String value)
model - The node which we are adding the data toname - The name of the new data itemvalue - The value of the new data item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||