|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.util.filter.ExpressionFilter
public class ExpressionFilter
A Filter that filters on the evaluation of an Expression.
For instance to filter on a property of a category (here if it is showing):
new LogicalExpression(Category.PROP_IS_HIDDEN, LogicalExpression.NOT_EQUALS, Boolean.TRUE);
| Constructor Summary | |
|---|---|
ExpressionFilter(java.lang.String name,
Expression expr)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.lang.Object propertyProvider)
Do an evaluation on the PropertyProvider and returns it. |
Expression |
getExpression()
Returns the expression. |
java.lang.String |
getName()
Returns a human readable name for the filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionFilter(java.lang.String name,
Expression expr)
expr - The expression that will be given a PropertyProvider to be
evaluated. Not null.| Method Detail |
|---|
public java.lang.String getName()
Filter
getName in interface Filterpublic Expression getExpression()
public final boolean accept(java.lang.Object propertyProvider)
PropertyProvider and returns it.
accept in interface FilterpropertyProvider - The PropertyProvider that will be evaluated.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||