|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.faban.common.TableModel
com.sun.faban.common.SortableTableModel
public class SortableTableModel
The TableModel represents a generic model for the LiveGrid data table AJAX component. It can be used to represent almost any data in a table form.
| Constructor Summary | |
|---|---|
SortableTableModel(int columns)
Constructs a TableModel. |
|
SortableTableModel(int columns,
int rowInitCapacity)
Constructs a TableModel. |
|
| Method Summary | |
|---|---|
int |
getSortColumn()
Obtains the column index the TableModel is currently sorted by. |
SortDirection |
getSortDirection()
Obtains the direction the TableModel is currently sorted. |
void |
sort(int column,
SortDirection direction)
Sorts the TableModel according to the column index and direction. |
void |
sort(String columnName,
SortDirection direction)
Sorts the TableModel according to the column and direction. |
| Methods inherited from class com.sun.faban.common.TableModel |
|---|
columns, getField, getHeader, getHeaders, getRow, newRow, rows, setHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortableTableModel(int columns)
columns - The number of columns in the table
public SortableTableModel(int columns,
int rowInitCapacity)
columns - The number of columns in the tablerowInitCapacity - The initial row capacity of the table| Method Detail |
|---|
public void sort(String columnName,
SortDirection direction)
columnName - The name of the column matching the headerdirection - The direction of the sort
public void sort(int column,
SortDirection direction)
column - The index of the column to sort bydirection - The direction of the sortpublic int getSortColumn()
public SortDirection getSortDirection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||