| java.lang.Object net.xoetrope.builder.editor.helper.XTableModelHelper
XTableModelHelper | public class XTableModelHelper (Code) | | A utility class to help construct a HTML like table structure
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
version: $Revision: 1.4 $ |
XTableModelHelper | public XTableModelHelper()(Code) | | |
addData | public static XModel addData(XModel model, String name, String value)(Code) | | Add data to the specified model.
Parameters: model - The node which we are adding the data to Parameters: name - The name of the new data item Parameters: value - The value of the new data item The newly created data item |
addHeader | public static XModel addHeader(XModel model)(Code) | | Creates a new 'th' node and returns it
Parameters: model - The model which will have the newly created XModel appended toit The newly created th node |
addRow | public static XModel addRow(XModel model)(Code) | | Add a new 'tr' node to the passed XModel
Parameters: model - The model which will have the newly created XModel appended toit The newly created th node |
createDataSet | public static XModel createDataSet(String name)(Code) | | Creates a new dataset within the model with the specified name. The new
XModel is appended to the root and returned
Parameters: name - The name to be given to the new XModel The newly created XModel |
createTable | public static XModel createTable(XModel model, String name)(Code) | | Adds a new table XModel node to the model node
The XModel which will have the newly created table XModel
appended to it
Parameters: model - The XModel which will have the newly created model appendedto it Parameters: name - The name of the new XModel The newly created table XModel |
|
|