Package org.zkoss.stateless.action.data
Class SortData
- java.lang.Object
-
- org.zkoss.stateless.action.data.SortData
-
- All Implemented Interfaces:
java.io.Serializable
,ActionData
- Direct Known Subclasses:
SortExtData
public class SortData extends java.lang.Object implements ActionData
Represents sort data by sorting activity- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SortData(java.util.Map data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getReferenceIndex()
Returns the reference index.java.lang.String
getSortDirection()
Returns the sort direction.boolean
isAscending()
Returns true if the sorting request is ascending.
-
-
-
Method Detail
-
isAscending
public boolean isAscending()
Returns true if the sorting request is ascending.
-
getSortDirection
public java.lang.String getSortDirection()
Returns the sort direction.
-
getReferenceIndex
public int getReferenceIndex()
Returns the reference index. This method is used forIHeaderElement
to sort a header to get its index from its parent.- Returns:
-
-