|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.data.provider.FilterCriteria
com.sun.rave.web.ui.faces.ValueExpressionFilterCriteria
public class ValueExpressionFilterCriteria
The ValueExpressionFilterCriteria is an implementation of
FilterCriteria that compares the value of a String
(created with the specified value expression) with a predefined
compareValue. A user may specify matches to include less than
(<), equal to (==), or greater than (>) the compareValue Object,
or any combination of the above.
TableDataProvider,
TableDataFilter,
Serialized Form| Field Summary | |
|---|---|
protected java.util.Locale |
compareLocale
Storage for the compare locale |
protected boolean |
matchEqualTo
|
protected boolean |
matchGreaterThan
|
protected boolean |
matchLessThan
|
| Constructor Summary | |
|---|---|
ValueExpressionFilterCriteria()
|
|
ValueExpressionFilterCriteria(java.lang.Object compareValue)
|
|
ValueExpressionFilterCriteria(java.lang.String valueExpression)
|
|
ValueExpressionFilterCriteria(java.lang.String valueExpression,
java.lang.Object compareValue)
|
|
ValueExpressionFilterCriteria(java.lang.String valueExpression,
java.lang.Object compareValue,
boolean matchLessThan,
boolean matchEqualTo,
boolean matchGreaterThan)
|
|
| Method Summary | |
|---|---|
java.util.Locale |
getCompareLocale()
|
java.lang.Object |
getCompareValue()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getRequestMapKey()
Returns the request map variable key that will be used to store the TableRowDataProvider for the current row being match tested. |
java.lang.String |
getValueExpression()
|
boolean |
isMatchEqualTo()
|
boolean |
isMatchGreaterThan()
|
boolean |
isMatchLessThan()
|
boolean |
match(com.sun.data.provider.TableDataProvider provider,
com.sun.data.provider.RowKey row)
This method tests a match by comparing the compareValue
and the data value stored under the String. |
void |
setCompareLocale(java.util.Locale compareLocale)
|
void |
setCompareValue(java.lang.Object value)
|
void |
setMatchEqualTo(boolean matchEqualTo)
|
void |
setMatchGreaterThan(boolean matchGreaterThan)
|
void |
setMatchLessThan(boolean matchLessThan)
|
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 match tested. |
void |
setValueExpression(java.lang.String valueExpression)
|
| Methods inherited from class com.sun.data.provider.FilterCriteria |
|---|
isInclude, setDisplayName, setInclude |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Locale compareLocale
protected boolean matchEqualTo
protected boolean matchLessThan
protected boolean matchGreaterThan
| Constructor Detail |
|---|
public ValueExpressionFilterCriteria()
public ValueExpressionFilterCriteria(java.lang.String valueExpression)
valueExpression - Stringpublic ValueExpressionFilterCriteria(java.lang.Object compareValue)
compareValue - The desired compare value
public ValueExpressionFilterCriteria(java.lang.String valueExpression,
java.lang.Object compareValue)
valueExpression - StringcompareValue - The desired compare value
public ValueExpressionFilterCriteria(java.lang.String valueExpression,
java.lang.Object compareValue,
boolean matchLessThan,
boolean matchEqualTo,
boolean matchGreaterThan)
valueExpression - StringcompareValue - ObjectmatchLessThan - booleanmatchEqualTo - booleanmatchGreaterThan - boolean| Method Detail |
|---|
public java.lang.String getDisplayName()
getDisplayName in class com.sun.data.provider.FilterCriteriapublic void setValueExpression(java.lang.String valueExpression)
valueExpression - Stringpublic java.lang.String getValueExpression()
public java.lang.String getRequestMapKey()
TableRowDataProvider for the current row being match tested.
This allows value expressions to refer to the "current" row during the
filter operation.
TableRowDataProviderpublic void setRequestMapKey(java.lang.String requestMapKey)
TableRowDataProvider for the current row being match tested.
This allows value expressions to refer to the "current" row during the
filter operation.
requestMapKey - String key to use for the TableRowDataProviderpublic void setCompareValue(java.lang.Object value)
value - Objectpublic java.lang.Object getCompareValue()
public void setCompareLocale(java.util.Locale compareLocale)
compareLocale - Localepublic java.util.Locale getCompareLocale()
public void setMatchEqualTo(boolean matchEqualTo)
matchEqualTo - booleanpublic boolean isMatchEqualTo()
public void setMatchLessThan(boolean matchLessThan)
matchLessThan - booleanpublic boolean isMatchLessThan()
public void setMatchGreaterThan(boolean matchGreaterThan)
matchGreaterThan - booleanpublic boolean isMatchGreaterThan()
public boolean match(com.sun.data.provider.TableDataProvider provider,
com.sun.data.provider.RowKey row)
This method tests a match by comparing the compareValue
and the data value stored under the String. The passed
TableDataProvider and RowKey parameters are ignored. The
matchLessThan, matchEqualTo, and
matchGreaterThan properties are used to determine if a
match was found. The compareLocale is used for String
comparisons.
match in class com.sun.data.provider.FilterCriteria
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||