|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.builder.helper.XTableModelHelper
public class XTableModelHelper
A utility class to help construct a HTML like table structure
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
| Constructor Summary | |
|---|---|
XTableModelHelper()
|
|
| Method Summary | |
|---|---|
static XModel |
addData(XModel model,
java.lang.String name,
java.lang.String value)
Add data to the specified model. |
static XModel |
addHeader(XModel model)
Creates a new 'th' node and returns it |
static XModel |
addRow(XModel model)
Add a new 'tr' node to the passed XModel |
static XModel |
createDataItem(java.lang.String name,
java.lang.String value,
XModel model)
|
static XModel |
createDataSet(java.lang.String name)
Creates a new dataset within the model with the specified name. |
static XModel |
createDataSet(java.lang.String name,
XModel model)
|
static XModel |
createTable(XModel model,
java.lang.String name)
Adds a new table XModel node to the model node The XModel which will have the newly created table XModel appended to it |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XTableModelHelper()
| Method Detail |
|---|
public static XModel createDataSet(java.lang.String name)
name - The name to be given to the new XModel
public static XModel createDataSet(java.lang.String name,
XModel model)
public static XModel createDataItem(java.lang.String name,
java.lang.String value,
XModel model)
public static XModel createTable(XModel model,
java.lang.String name)
model - The XModel which will have the newly created model appended
to itname - The name of the new XModel
public static XModel addHeader(XModel model)
model - The model which will have the newly created XModel appended to
it
public static XModel addRow(XModel model)
model - The model which will have the newly created XModel appended to
it
public static XModel addData(XModel 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 | |||||||||