|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.filters.AbstractFilter
public abstract class AbstractFilter
AbstractFilter is an abstract class for the Filter interface that provides methods to add and remove listeners from the list of registered listeners, and to send registered listeners a specified Filterable. The user or subclass must provide a source for the objects to be reported. AbstractFilter is also capable of listening for Filterable objects. call filter.handlObject(filterable) to have the AbstractFilter operate on the filterable object.... ie filter it.See the source: AbstractFilter.java
| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
static boolean |
DEFAULT_PASS_THROUGH
|
protected java.util.Vector |
listeners
|
protected boolean |
passThrough
Boolean indicating whether to send the Filterables that do not have the attributes that this filter uses for its test. |
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
AbstractFilter()
|
|
| Method Summary | |
|---|---|
void |
addFilterableListener(FilterableListener lis)
Register a filter event listener to be notified when a filter event is sent from this class. |
void |
fire(Filterable evt)
Sends events that emerge from the filter to all registered listeners. |
boolean |
getPassThrough()
Gets the boolean indicating whether to send on the Filterables that do not have the attributes the Filter tests on (e.g., for a Filter that operates on aircraft IDs: if Filterables without aircraft IDs are received, they will be sent to listeners if passThrough is set to true, and will not be sent if passThrough is false. |
abstract void |
handleObject(Filterable evt)
Called to have filter receive events that the Filter is registered for. |
void |
removeFilterableListener(FilterableListener listener)
Remove a filter event listener from the notification list. |
void |
setPassThrough(boolean passThrough)
Sets a boolean indicating whether to send on the Filterables that do not have the attributes the Filter tests on (e.g., for a Filter that operates on aircraft IDs: if Fix and Airport information is received, it would be sent to listeners if passThrough is set to true, and would not be sent if passThrough is false). |
static java.lang.String |
substituteFileVariables(java.lang.String inFileName)
Utility that replaces pre-defined file name variables with environment values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
public static final boolean DEFAULT_PASS_THROUGH
protected java.util.Vector listeners
protected boolean passThrough
| Constructor Detail |
|---|
public AbstractFilter()
| Method Detail |
|---|
public abstract void handleObject(Filterable evt)
handleObject in interface FilterableListenerevt - The event containing the Filterable object.public boolean getPassThrough()
getPassThrough in interface Filterpublic void setPassThrough(boolean passThrough)
setPassThrough in interface FilterpassThrough - Boolean indicating if to send on other Filterables.public void addFilterableListener(FilterableListener lis)
addFilterableListener in interface Filterlis - The listener to be added to the notification list.public void removeFilterableListener(FilterableListener listener)
removeFilterableListener in interface Filterlistener - The listener to be removed from the notification list.public void fire(Filterable evt)
fire in interface Filterevt - The event containing the filter event.public static java.lang.String substituteFileVariables(java.lang.String inFileName)
REG-EXPR REPLACEMENT STRING
"^$HOME" -> result of System.getProperty("user.home")
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||