public class SortEvent
extends javax.faces.event.ActionEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
SortEvent.SortType
The type of sort being performed.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Integer |
COLUMN_SORT_ASCENDING
Synonym for
SORT_ASCENDING, which is preferred over this constant. |
static java.lang.Integer |
COLUMN_SORT_DESCENDING
Synonym for
SORT_DESCENDING, which is preferred over this constant. |
static java.lang.String |
COLUMN_SORT_DIRECTION_PARAM
Synonym for
SORT_DIRECTION_PARAM, which is preferred over this constant. |
static java.lang.String |
COLUMN_SORT_GROUPED_PARAM
The name of the parameter whose value is a
Boolean that indicates whether the sort will retain groupings on the row edge. |
static java.lang.String |
COLUMN_SORT_SLICE_PARAM
The name of the parameter whose value is an
Integer that indicates the zero-based index of the column being sorted. |
static java.lang.String |
HEADER_SORT_LAYER_PARAM
The name of the parameter whose value is an
Integer that indicates the zero-based index of the layer being sorted, where the outermost layer is layer 0. |
static java.lang.Integer |
SORT_ASCENDING
A value indicating that the sort is in order of increasing values.
|
static java.lang.Integer |
SORT_DESCENDING
A value indicating that the sort is in order of decreasing values.
|
static java.lang.String |
SORT_DIRECTION_PARAM
The name of the parameter whose value can either be
SORT_ASCENDING or SORT_DESCENDING, indicating the direction of the sort. |
| Constructor and Description |
|---|
SortEvent(javax.faces.component.UIComponent component,
SortEvent.SortType type,
java.util.Map<java.lang.String,java.lang.Object> properties)
Creates a new sort event.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Returns a map of properties for the sort event.
|
SortEvent.SortType |
getType()
Returns the type of sort event.
|
boolean |
isAppropriateListener(javax.faces.event.FacesListener listener)
Indicates whether the listener is an appropriate listener for this event, that is, an instance of
SortListener. |
void |
processListener(javax.faces.event.FacesListener listener)
Calls the appropriate callback method of the listener.
|
public static final java.lang.String SORT_DIRECTION_PARAM
SORT_ASCENDING or SORT_DESCENDING, indicating the direction of the sort.public static final java.lang.Integer SORT_ASCENDING
public static final java.lang.Integer SORT_DESCENDING
public static final java.lang.String HEADER_SORT_LAYER_PARAM
Integer that indicates the zero-based index of the layer being sorted, where the outermost layer is layer 0. Applies to header sorts only.public static final java.lang.String COLUMN_SORT_SLICE_PARAM
Integer that indicates the zero-based index of the column being sorted.public static final java.lang.String COLUMN_SORT_DIRECTION_PARAM
SORT_DIRECTION_PARAM, which is preferred over this constant.public static final java.lang.String COLUMN_SORT_GROUPED_PARAM
Boolean that indicates whether the sort will retain groupings on the row edge.public static final java.lang.Integer COLUMN_SORT_ASCENDING
SORT_ASCENDING, which is preferred over this constant.public static final java.lang.Integer COLUMN_SORT_DESCENDING
SORT_DESCENDING, which is preferred over this constant.public SortEvent(javax.faces.component.UIComponent component,
SortEvent.SortType type,
java.util.Map<java.lang.String,java.lang.Object> properties)
component - the component that was sortedtype - the type of sort that was performedproperties - additional information about the sort. Must be Serializable.public SortEvent.SortType getType()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public boolean isAppropriateListener(javax.faces.event.FacesListener listener)
SortListener.isAppropriateListener in class javax.faces.event.ActionEventlistener - the listener to checktrue if the listener is appropriate for this event, false otherwisepublic void processListener(javax.faces.event.FacesListener listener)