WebFormSubtable instead.
This class facilitates the handling and manipulation of WJP subtables.@Deprecated
public class WJPSubtable
extends java.lang.Object
| Constructor and Description |
|---|
WJPSubtable()
Deprecated.
Constructs a new empty
WJPSubtable. |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(java.lang.String columnName,
ProcessConstants.AdeptDataType dataType)
Deprecated.
Adds a new column this WJP subtable with the given name and data type.
|
int |
addRow()
Deprecated.
Adds a new empty row.
|
int |
addRow(java.lang.Object... values)
Deprecated.
Adds a empty row filled with the given values.
|
int |
getColumnCount()
Deprecated.
Returns the number of columns in this WJP subtable.
|
java.lang.String[] |
getColumnNames()
Deprecated.
Returns the names of all columns in this WJP subtable.
|
ProcessConstants.AdeptDataType |
getDataType(java.lang.String columnName)
Deprecated.
Returns the data type of the column with the given name.
|
int |
getRowCount()
Deprecated.
Returns the number of rows of this WJP subtable.
|
java.lang.Object |
getValue(java.lang.String columnName,
int rowIndex)
Deprecated.
Returns the value of the specified column and row.
|
boolean |
hasColumn(java.lang.String columnName)
Deprecated.
Returns whether this WJP subtable has a column with the given name.
|
void |
insertRow(int rowIndex)
Deprecated.
Inserts a new empty row at the specified row index.
|
void |
insertRow(int rowIndex,
java.lang.Object... values)
Deprecated.
Inserts a new row filled with the given values at the specified row index.
|
void |
loadFromStream(java.io.InputStream in)
Deprecated.
Loads the data of the WJP subtable from the given input stream.
|
void |
loadFromUDTValue(UDTValue udtValue)
Deprecated.
Loads the data of the WJP subtable from the given
UDTValue. |
void |
removeColumn(java.lang.String columnName)
Deprecated.
Removes the column with the given name from this WJP subtable.
|
void |
removeRow(int rowIndex)
Deprecated.
Removes the row at the specified index.
|
java.io.InputStream |
saveToStream()
Deprecated.
Serialises the data of this WJP subtable and returns an input stream from
which the data can be read.
|
void |
saveToStream(java.io.OutputStream out)
Deprecated.
Serialises the data of this WJP subtable to the given output stream.
|
UDTValue |
saveToUDTValue()
Deprecated.
Serialises the data of this WJP subtable to a
UDTValue. |
void |
setValue(java.lang.String columnName,
int rowIndex,
java.lang.Object value)
Deprecated.
Sets the value of the specified column and row to the given value.
|
void |
setValues(int rowIndex,
java.lang.Object... values)
Deprecated.
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 WJP subtable should be readjava.io.IOException - if reading the UDT value failedXMLFormatException - if the UDT value isn't a valid WJP subtablepublic void loadFromStream(java.io.InputStream in)
throws java.io.IOException,
XMLFormatException
in - the input stream from which the WJP subtable should be readjava.io.IOException - if reading the input stream failedXMLFormatException - if the input stream didn't contain a valid WJP
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 WJP subtable should
be savedjava.io.IOException - if the WJP 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 WJP
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