ilog.views.util.filter
Interface IlvFilter

All Superinterfaces:
IlvUnaryPredicate
All Known Implementing Classes:
IlvAbstractFilter

public interface IlvFilter
extends IlvUnaryPredicate

This interface describes a rule that selects some of the objects of a model and discards the other objects.

Since:
JViews 7.5

Method Summary
 void addFilterListener(FilterListener listener)
          Adds a listener to this filter.
 boolean evaluate(Object object)
          Returns true if the filter accepts the object, or false if it rejects it.
 void removeFilterListener(FilterListener listener)
          Removes a listener from this filter.
 

Method Detail

evaluate

boolean evaluate(Object object)
Returns true if the filter accepts the object, or false if it rejects it.

Specified by:
evaluate in interface IlvUnaryPredicate
Parameters:
object - an object in a model
Returns:
The result of the evaluation.

addFilterListener

void addFilterListener(FilterListener listener)
Adds a listener to this filter. The listener is invoked when the result of the evaluate method on any object may have changed.

Parameters:
listener - The listener that will be subscribed to subsequent FilterEvent events.
See Also:
removeFilterListener(ilog.views.util.filter.event.FilterListener)

removeFilterListener

void removeFilterListener(FilterListener listener)
Removes a listener from this filter.

Parameters:
listener - The listener that will be unsubscribed from receiving FilterEvent events.
See Also:
addFilterListener(ilog.views.util.filter.event.FilterListener)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.