public abstract class OMEventHandlerAdapter extends OMComponent implements OMEventHandler
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedList<OMEvent> |
events |
protected java.util.List |
filterList |
protected java.util.Hashtable |
filterStates |
protected java.util.List |
macroFilters |
static java.lang.String |
ShowEventsAtStartupProperty |
i18n, propertyPrefix
beanContextChildSupport, isolated
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
OMEventHandlerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
addEvent(OMEvent me) |
void |
addMacroFilter(OMEventMacroFilter mf) |
void |
clearEvents() |
void |
clearMacroFilters() |
void |
findAndInit(java.lang.Object someObj)
The findAndInit method has been made non-abstract, because it now calls
this method for every object that is in the iterator it receives.
|
void |
findAndUndo(java.lang.Object someObj)
The childrenRemoved has been changed to go through its iterator to call
this method with every object.
|
java.util.List<OMEvent> |
getEventList() |
java.util.List<OMEvent> |
getEventList(java.util.List filters)
This is the main call to return OMEvents based on filters set in the
GUI.
|
java.util.List |
getFilters() |
java.lang.Boolean |
getFilterState(java.lang.String filterName)
Query to find out if a filter should be enabled, based on EventHandler
settings and history.
|
java.util.List<OMEvent> |
getMacroFilteredList(java.util.Collection eventCollection) |
void |
removeEvent(OMEvent me) |
void |
removeMacroFilter(OMEventMacroFilter mf) |
void |
setFilterState(java.lang.String filterName,
java.lang.Boolean state) |
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
protected java.util.LinkedList<OMEvent> events
protected java.util.List filterList
protected java.util.List macroFilters
protected java.util.Hashtable filterStates
public static final java.lang.String ShowEventsAtStartupProperty
public void addEvent(OMEvent me)
public void removeEvent(OMEvent me)
public void clearEvents()
public java.util.List<OMEvent> getEventList()
getEventList
in interface OMEventHandler
public java.util.List<OMEvent> getEventList(java.util.List filters)
getEventList
in interface OMEventHandler
filters
- A List of Strings. If your OMEventHandler provides
entries into the filterList, you should check the entries on that
list to see if they are in this provided list. If they are, you
should return the OMEvents that fall under that filter String's
jurisdiction.public void addMacroFilter(OMEventMacroFilter mf)
public void removeMacroFilter(OMEventMacroFilter mf)
public void clearMacroFilters()
public java.util.List<OMEvent> getMacroFilteredList(java.util.Collection eventCollection)
getMacroFilteredList
in interface OMEventHandler
public void findAndInit(java.lang.Object someObj)
MapHandlerChild
findAndInit
in interface LightMapHandlerChild
findAndInit
in class MapHandlerChild
public void findAndUndo(java.lang.Object someObj)
MapHandlerChild
findAndUndo
in interface LightMapHandlerChild
findAndUndo
in class MapHandlerChild
public java.util.List getFilters()
getFilters
in interface OMEventHandler
public java.lang.Boolean getFilterState(java.lang.String filterName)
getFilterState
in interface OMEventHandler
filterName
- the filter string.public void setFilterState(java.lang.String filterName, java.lang.Boolean state)
setFilterState
in interface OMEventHandler
filterName
- state
- Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details