|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.inmethod.grid.common.GridSortState
public class GridSortState
An IGridSortState implementation.
IGridSortState,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.inmethod.grid.IGridSortState |
|---|
IGridSortState.Direction, IGridSortState.ISortStateColumn |
| Constructor Summary | |
|---|---|
GridSortState(AbstractGrid<?,?> grid)
Constructor. |
|
| Method Summary | |
|---|---|
void |
clearSortState()
Resets the entire sort state. |
void |
clearSortState(String propertyName)
Clears the sort state for given property. |
List<IGridSortState.ISortStateColumn> |
getColumns()
Returns all IGridSortState.ISortStateColumn instances in this state. |
AbstractGrid<?,?> |
getGrid()
|
IGridSortState.ISortStateColumn |
getSortStateForProperty(String propertyName)
Returns the IGridSortState.ISortStateColumn for given property or null if there is no
such entry. |
void |
setSortState(String propertyName,
IGridSortState.Direction direction)
Sets the sort direction for given property name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridSortState(AbstractGrid<?,?> grid)
grid - the related grid, not null| Method Detail |
|---|
public void clearSortState()
public void clearSortState(String propertyName)
propertyName - public IGridSortState.ISortStateColumn getSortStateForProperty(String propertyName)
IGridSortState.ISortStateColumn for given property or null if there is no
such entry.
propertyName -
IGridSortState.ISortStateColumn for given property or null if there is no
such entry
public void setSortState(String propertyName,
IGridSortState.Direction direction)
propertyName - direction - public List<IGridSortState.ISortStateColumn> getColumns()
IGridSortState.ISortStateColumn instances in this state.
getColumns in interface IGridSortStateIGridSortState.ISortStateColumn instances in this statepublic AbstractGrid<?,?> getGrid()
getGrid in interface IGridSortState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||