Class zwt.ui.table.RowSorter.SortKey
Extends
zwt.Object.
A sort key describes the sort order for a column.
Sort keys are used in a RowSorter to sort the data values of the underlying model.
Defined in: RowSorter.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.table.RowSorter.SortKey(The, The)
Construct a sort key.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
zwt.ui.table.RowSorter.SortKey.ORDER_ASCENDING
Indicate an ascending sorted column
|
<static> |
zwt.ui.table.RowSorter.SortKey.ORDER_DESCENDING
Indicate a descending sorted column
|
<static> |
zwt.ui.table.RowSorter.SortKey.ORDER_UNSORTED
Indicate an unsorted column
|
Method Attributes | Method Name and Description |
---|---|
Return the column index associated to the key.
|
|
Return the current sort order.
|
Class Detail
zwt.ui.table.RowSorter.SortKey(The, The)
Construct a sort key.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {Integer} The
- index of the column in the underlying model.
- {Integer} The
- sort order (one of zwt.ui.table.RowSorter.SortKey.ORDER_UNSORTED, zwt.ui.table.RowSorter.SortKey.ORDER_ASCENDING and zwt.ui.table.RowSorter.SortKey.ORDER_DESCENDING).
Field Detail
<static>
{Integer}
zwt.ui.table.RowSorter.SortKey.ORDER_ASCENDING
Indicate an ascending sorted column
<static>
{Integer}
zwt.ui.table.RowSorter.SortKey.ORDER_DESCENDING
Indicate a descending sorted column
<static>
{Integer}
zwt.ui.table.RowSorter.SortKey.ORDER_UNSORTED
Indicate an unsorted column
Method Detail
{Integer}
getColumnIndex()
Return the column index associated to the key.
- Returns:
- The column index in the underlying model
{Integer}
getSortOrder()
Return the current sort order.
- Returns:
- The sort order