|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The TableViewModel interface specifies the methods the
TableView will use to interrogate a tabular data model.
The TableView can be set up to display any data
model which implements the
TableViewModel interface.
Copyright 2004 SAP AG
| Method Summary | |
TableColumn |
addColumn(String columnName)
adds a column with the specified name to the visible columns |
void |
addKeyColumn(int columnIndex)
adds a key column |
TableColumn |
getColumnAt(int columnIndex)
returns the column at the specified index |
int |
getColumnCount()
Returns the number of columns in the model. |
String |
getColumnName(int columnIndex)
Returns the name of the column at columnIndex. |
Vector |
getColumns()
returns the columns that should be displayed |
IndexedLinkedList |
getKeyColumn()
returns the key column |
int |
getRowCount()
Returns the number of rows in the model. |
AbstractDataType |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at columnIndex and
rowIndex. |
AbstractDataType |
getValueAt(int rowIndex,
String columnKey)
Returns the value for the cell at rowIndex and
in the column named with columnKey. |
void |
removeColumn(String columnName)
removes a column from the visible columns. |
void |
setColumnName(String columnName,
int columnIndex)
sets the name of the column at columnIndex to
columnName |
void |
setKeyColumn(int columnIndex)
sets the key column for the model |
void |
setValueAt(AbstractDataType aValue,
int rowIndex,
int columnIndex)
sets the value at rowIndex and columnIndex |
| Method Detail |
public int getRowCount()
getColumnCount()public int getColumnCount()
TableView uses this method to determine
how many columns it should create and display by default.
getRowCount()public String getColumnName(int columnIndex)
columnIndex. This is used
to initialize the table's column header name.
columnIndex - the index of the column
public void setColumnName(String columnName,
int columnIndex)
columnIndex to
columnName
public AbstractDataType getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.
rowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queried
public AbstractDataType getValueAt(int rowIndex,
String columnKey)
rowIndex and
in the column named with columnKey.
rowIndex - the row indexcolumnKey - the name of the column whose value is to be retrieved
public void setValueAt(AbstractDataType aValue,
int rowIndex,
int columnIndex)
rowIndex and columnIndex
aValue - the value that the table cell at rowIndex and
columNindex should haverowIndex - the index of the rowcolumnIndex - the index of the columnpublic void setKeyColumn(int columnIndex)
columnIndex - the index of the key columnpublic void addKeyColumn(int columnIndex)
columnIndex - the index of the key columnpublic IndexedLinkedList getKeyColumn()
IndexedLinkedListpublic Vector getColumns()
public TableColumn getColumnAt(int columnIndex)
columnIndexpublic TableColumn addColumn(String columnName)
columnName - the name of the column which should be addedpublic void removeColumn(String columnName)
columnName - the name of the column
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||