public class WebFormSubtable
extends java.lang.Object
| Constructor and Description |
|---|
WebFormSubtable()
Constructs a new empty
WebFormSubtable. |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(java.lang.String columnName,
ProcessConstants.AdeptDataType dataType)
Adds a new column this WebForm subtable with the given name and data type.
|
int |
addRow()
Adds a new empty row.
|
int |
addRow(java.lang.Object... values)
Adds a empty row filled with the given values.
|
int |
getColumnCount()
Returns the number of columns in this WebForm subtable.
|
java.lang.String[] |
getColumnNames()
Returns the names of all columns in this WebForm subtable.
|
ProcessConstants.AdeptDataType |
getDataType(java.lang.String columnName)
Returns the data type of the column with the given name.
|
int |
getRowCount()
Returns the number of rows of this WebForm subtable.
|
java.lang.Object |
getValue(java.lang.String columnName,
int rowIndex)
Returns the value of the specified column and row.
|
boolean |
hasColumn(java.lang.String columnName)
Returns whether this WebForm subtable has a column with the given name.
|
void |
insertRow(int rowIndex)
Inserts a new empty row at the specified row index.
|
void |
insertRow(int rowIndex,
java.lang.Object... values)
Inserts a new row filled with the given values at the specified row index.
|
void |
loadFromStream(java.io.InputStream in)
Loads the data of the WebForm subtable from the given input stream.
|
void |
loadFromUDTValue(UDTValue udtValue)
Loads the data of the WebForm subtable from the given
UDTValue. |
void |
removeColumn(java.lang.String columnName)
Removes the column with the given name from this WebForm subtable.
|
void |
removeRow(int rowIndex)
Removes the row at the specified index.
|
java.io.InputStream |
saveToStream()
Serialises the data of this WebForm subtable and returns an input stream from
which the data can be read.
|
void |
saveToStream(java.io.OutputStream out)
Serialises the data of this WebForm subtable to the given output stream.
|
UDTValue |
saveToUDTValue()
Serialises the data of this WebForm subtable to a
UDTValue. |
void |
setValue(java.lang.String columnName,
int rowIndex,
java.lang.Object value)
Sets the value of the specified column and row to the given value.
|
void |
setValues(int rowIndex,
java.lang.Object... values)
Sets all values of the given row.
|
public void loadFromUDTValue(UDTValue udtValue) throws java.io.IOException, XMLFormatException
UDTValue.udtValue - the UDT value from which the WebForm subtable should be readjava.io.IOException - if reading the UDT value failedXMLFormatException - if the UDT value isn't a valid WebForm subtablepublic void loadFromStream(java.io.InputStream in)
throws java.io.IOException,
XMLFormatException
in - the input stream from which the WebForm subtable should be readjava.io.IOException - if reading the input stream failedXMLFormatException - if the input stream didn't contain a valid WebForm
subtablepublic UDTValue saveToUDTValue()
UDTValue.public void saveToStream(java.io.OutputStream out)
throws java.io.IOException
out - the output stream to which the data of this WebForm subtable should
be savedjava.io.IOException - if the WebForm subtable could not be written to the given
output streampublic java.io.InputStream saveToStream()
throws java.io.IOException
java.io.IOException - if the input stream could not be created for the WebForm
subtablepublic java.lang.String[] getColumnNames()
public int getColumnCount()
public boolean hasColumn(java.lang.String columnName)
columnName - the name of the columnpublic void addColumn(java.lang.String columnName,
ProcessConstants.AdeptDataType dataType)
columnName - the name of the new columndataType - the data type of the new columnpublic void removeColumn(java.lang.String columnName)
columnName - the name of the column to be removedpublic ProcessConstants.AdeptDataType getDataType(java.lang.String columnName)
columnName - name of the desired columnpublic int getRowCount()
public int addRow()
public int addRow(java.lang.Object... values)
values - the values of the new rowpublic void insertRow(int rowIndex)
rowIndex - the index of the new rowpublic void insertRow(int rowIndex,
java.lang.Object... values)
rowIndex - the index of the new rowvalues - the values of the new rowpublic void removeRow(int rowIndex)
rowIndex - index of the row to be deletedpublic java.lang.Object getValue(java.lang.String columnName,
int rowIndex)
columnName - the name of the desired columnrowIndex - the index of the desired rowpublic void setValue(java.lang.String columnName,
int rowIndex,
java.lang.Object value)
columnName - the name of the desired columnrowIndex - the index of the desired rowvalue - the new value for the specified column and rowpublic void setValues(int rowIndex,
java.lang.Object... values)
rowIndex - the index of the desired rowvalues - the new values of the row