|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.presentation.portlet.widgets.model.WidgetModel
org.jaffa.presentation.portlet.widgets.model.TableModel
Model for the Table widget.
| Nested Class Summary | |
class |
TableModel.Column
An instance of this class will be created for each column added to the TableModel. |
| Constructor Summary | |
TableModel()
|
|
| Method Summary | |
void |
addColumn(String name,
String dataType)
Add a column to the Table. |
void |
addRow(int position,
List fields)
Add a row to the table. |
void |
addRow(List fields)
Add a row to the table. |
void |
clearColumns()
Clear out all the columns |
void |
clearRows()
Clear out all the rows |
String |
getColumnDataType(String columnName)
Returns the dataType for the columnName. |
List |
getColumnNames()
Returns a List of columnNames, in the order of entry. |
List |
getColumns()
Returns a List of TableModel.Column objects, in the order of entry. |
List |
getRow(int rowNum)
Returns a List of field values in column order for the input row number. |
List |
getRows()
Returns a Collection, where each element is a List of fields, in the order of the columns. |
List |
getSelectedRows()
Returns a List of selected rows, where each row is a List of field values. |
Object |
getValue(String columnName,
int rowNum)
Return a field value from a given row. |
boolean |
isModelChanged()
See if model has changed, in the process reset the changed flag. |
void |
setSelectedRows(List rowNums)
Sets the selected rows. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TableModel()
| Method Detail |
public void clearColumns()
public void addColumn(String name,
String dataType)
name - The name of the column.dataType - The data type of the column.public List getColumns()
public List getColumnNames()
public String getColumnDataType(String columnName)
columnName - The name of the column.
public void addRow(List fields)
fields - The List of values.
public void addRow(int position,
List fields)
position - The index of the row.fields - The List of values.public void clearRows()
public List getRows()
public List getRow(int rowNum)
rowNum - The index of the row to be retrieved.
public Object getValue(String columnName,
int rowNum)
columnName - The name of the column.rowNum - The index of the row to be retrieved.
public List getSelectedRows()
public void setSelectedRows(List rowNums)
rowNums - A List of row numbers to be marked as selected.public boolean isModelChanged()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||