|
||||||||||
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.ValueBindingFilterCriteria
public class ValueBindingFilterCriteria
The ValueBindingFilterCriteria is an implementation of FilterCriteria
that compares the value of a ValueBinding
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.
Use the requestMapKey
property
TableDataProvider
,
TableDataFilter
,
Serialized FormField Summary | |
---|---|
protected java.util.Locale |
compareLocale
Storage for the compare locale |
protected boolean |
matchEqualTo
|
protected boolean |
matchGreaterThan
|
protected boolean |
matchLessThan
|
Constructor Summary | |
---|---|
ValueBindingFilterCriteria()
|
|
ValueBindingFilterCriteria(java.lang.Object compareValue)
|
|
ValueBindingFilterCriteria(javax.faces.el.ValueBinding valueBinding)
|
|
ValueBindingFilterCriteria(javax.faces.el.ValueBinding valueBinding,
java.lang.Object compareValue)
|
|
ValueBindingFilterCriteria(javax.faces.el.ValueBinding valueBinding,
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. |
javax.faces.el.ValueBinding |
getValueBinding()
|
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 ValueBinding . |
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 |
setValueBinding(javax.faces.el.ValueBinding valueBinding)
|
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 ValueBindingFilterCriteria()
public ValueBindingFilterCriteria(javax.faces.el.ValueBinding valueBinding)
valueBinding
- ValueBindingpublic ValueBindingFilterCriteria(java.lang.Object compareValue)
compareValue
- The desired compare valuepublic ValueBindingFilterCriteria(javax.faces.el.ValueBinding valueBinding, java.lang.Object compareValue)
valueBinding
- ValueBindingcompareValue
- The desired compare valuepublic ValueBindingFilterCriteria(javax.faces.el.ValueBinding valueBinding, java.lang.Object compareValue, boolean matchLessThan, boolean matchEqualTo, boolean matchGreaterThan)
valueBinding
- ValueBindingcompareValue
- ObjectmatchLessThan
- booleanmatchEqualTo
- booleanmatchGreaterThan
- booleanMethod Detail |
---|
public java.lang.String getDisplayName()
getDisplayName
in class com.sun.data.provider.FilterCriteria
public void setValueBinding(javax.faces.el.ValueBinding valueBinding)
valueBinding
- ValueBindingpublic javax.faces.el.ValueBinding getValueBinding()
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.
TableRowDataProvider
public 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 TableRowDataProvider
public 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 ValueBinding
. 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 |