|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.data.provider.SortCriteria
com.sun.rave.web.ui.faces.ValueExpressionSortCriteria
public class ValueExpressionSortCriteria
The ValueExpressionSortCriteria class is an implementation of SortCriteria
that simply retrieves the sort value from a ValueBinding
which is
created using the specified value expression.
Constructor Summary | |
---|---|
ValueExpressionSortCriteria()
Constructs a ValueExpressionSortCriteria with no value expression |
|
ValueExpressionSortCriteria(java.lang.String valueExpression)
Constructs a ValueExpressionSortCriteria with the specified value expression. |
|
ValueExpressionSortCriteria(java.lang.String valueExpression,
boolean ascending)
Constructs a ValueExpressionSortCriteria with the specified value expression and ascending state. |
Method Summary | |
---|---|
java.lang.String |
getCriteriaKey()
Returns the value expression. |
java.lang.String |
getDisplayName()
If no display name is set, this returns the value expression. |
java.lang.String |
getRequestMapKey()
Returns the request map variable key that will be used to store the TableRowDataProvider for the current row being sorted. |
java.lang.Object |
getSortValue(com.sun.data.provider.TableDataProvider provider,
com.sun.data.provider.RowKey row)
Returns the value from a ValueBinding created using the value
expression. |
java.lang.String |
getValueExpression()
Returns the value expression to use for this sort criteria. |
void |
setRequestMapKey(java.lang.String requestMapKey)
Sets the request map variable key that will be used to store the TableRowDataProvider for the current row being sorted. |
void |
setValueExpression(java.lang.String valueExpression)
Sets the value expression for this sort criteria. |
Methods inherited from class com.sun.data.provider.SortCriteria |
---|
isAscending, setAscending, setDisplayName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueExpressionSortCriteria()
public ValueExpressionSortCriteria(java.lang.String valueExpression)
valueExpression
- The desired value expressionpublic ValueExpressionSortCriteria(java.lang.String valueExpression, boolean ascending)
valueExpression
- The desired value expressionascending
- The desired boolean state for the ascending propertyMethod Detail |
---|
public java.lang.String getValueExpression()
public void setValueExpression(java.lang.String valueExpression)
valueExpression
- The desired value expression for this sort criteriapublic java.lang.String getRequestMapKey()
TableRowDataProvider
for the current row being sorted. This
allows value expressions to refer to the "current" row during the sort
operation.
TableRowDataProvider
public void setRequestMapKey(java.lang.String requestMapKey)
TableRowDataProvider
for the current row being sorted. This
allows value expressions to refer to the "current" row during the sort
operation.
requestMapKey
- String key to use for the TableRowDataProvider
public java.lang.String getDisplayName()
If no display name is set, this returns the value expression.
getDisplayName
in class com.sun.data.provider.SortCriteria
public java.lang.String getCriteriaKey()
getCriteriaKey
in class com.sun.data.provider.SortCriteria
public java.lang.Object getSortValue(com.sun.data.provider.TableDataProvider provider, com.sun.data.provider.RowKey row)
Returns the value from a ValueBinding
created using the value
expression. The passed arguments are ignored.
getSortValue
in class com.sun.data.provider.SortCriteria
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |