| java.lang.Object org.deegree.model.table.DefaultTable
DefaultTable | public class DefaultTable implements Table(Code) | | author: Andreas Poth author: last edited by: $Author: mschneider $ version: $Revision: 10547 $, $Date: 2008-03-11 01:40:28 -0700 (Tue, 11 Mar 2008) $ |
DefaultTable | public DefaultTable(String tableName, String[] columnNames, int[] columnTypes, int initialCapacity) throws TableException(Code) | | Parameters: tableName - Parameters: columnNames - Parameters: columnTypes - Parameters: initialCapacity - throws: TableException - |
addColumn | public void addColumn(String name, int type)(Code) | | adds a new column to the table. for this a computional expensive operation this method should
be used with care.
|
getColumnCount | public int getColumnCount()(Code) | | returns the number columns of the table
|
getColumnIndex | public int getColumnIndex(String columnName)(Code) | | returns the index of the submitted columns name. If no column with that name if present -1
will be returned. the test is not case sensitive
Parameters: columnName - |
getColumnName | public String getColumnName(int col)(Code) | | returns the name of the specified column. If a column hasn't a name a empty String ("") will
be returned.
|
getColumnNames | public String[] getColumnNames()(Code) | | returns the names of all table columns. If a column hasn't a name a empty String ("") will be
returned.
|
getColumnType | public int getColumnType(int col)(Code) | | returns the name of the type of the specifies column. For each column a type (name of a java
class) has to be defined.
|
getColumnTypes | public int[] getColumnTypes()(Code) | | returns the names of all column types. For each column a type (name of a java class) has to
be defined.
|
getRow | public Object[] getRow(int row)(Code) | | returns the data of the row'th row of the table
|
getRowCount | public int getRowCount()(Code) | | returns the number rows of the table
|
getTableName | public String getTableName()(Code) | | returns the name of the table. If the table hasn't a name an empty string ("") will be
returned.
|
getValueAt | public Object getValueAt(int row, int col)(Code) | | returns the value of the table field indexed by row and col
|
removeRow | public Object[] removeRow(int index)(Code) | | removes a row from the table
Parameters: index - removed row |
setColumnName | public void setColumnName(int col, String name)(Code) | | sets the name of a column.
|
setColumnType | public void setColumnType(int col, int type) throws TableException(Code) | | sets the type of a column.
|
setValueAt | public void setValueAt(Object value, int row, int col)(Code) | | set a value at the table field indexed by row and col
|
toString | public String toString()(Code) | | string representation |
|
|