public class TestEventHandler extends OMEventHandlerAdapter implements TimeBoundsProvider
Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
protected TimeBounds |
timeBounds |
protected java.util.List<TimeBoundsHandler> |
timeBoundsHandlers |
events, filterList, filterStates, macroFilters, ShowEventsAtStartupProperty
i18n, propertyPrefix
beanContextChildSupport, isolated
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
TestEventHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addEvent(OMEvent event) |
void |
addTimeBoundsHandler(TimeBoundsHandler tbh)
The TimeBoundsProvider keep track of the handlers it needs to notify when
the bounds or activeness changes.
|
void |
callForTimeBoundsReset() |
protected void |
createEvents() |
java.util.List<OMEvent> |
getEventList(java.util.List filters)
This is the main call to return OMEvents based on filters set in the
GUI.
|
TimeBounds |
getTimeBounds()
A method called on the TimeBoundsProvider to retrieve the provider's time
bounds.
|
void |
handleTimeBounds(TimeBounds tb)
A method called on the TimeBoundsProvider to inform it of the overall
time bounds, in case some external time bounds values are being set by
another component and this provider wants to react to those bounds in
some way.
|
boolean |
isActive()
A query that can be made to the TimeBoundsProvider asking it if it is
active, and if it's time bounds should be considered.
|
void |
removeTimeBoundsHandler(TimeBoundsHandler tbh)
The TimeBoundsProvider keep track of the handlers it needs to notify when
the bounds or activeness changes.
|
void |
setActive(boolean active)
An accessor that switches the TimeBoundsProvider on/off.
|
addMacroFilter, clearEvents, clearMacroFilters, findAndInit, findAndUndo, getEventList, getFilters, getFilterState, getMacroFilteredList, removeEvent, removeMacroFilter, setFilterState
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
protected TimeBounds timeBounds
protected java.util.List<TimeBoundsHandler> timeBoundsHandlers
protected boolean active
protected void createEvents()
public void addEvent(OMEvent event)
addEvent
in class OMEventHandlerAdapter
public java.util.List<OMEvent> getEventList(java.util.List filters)
OMEventHandlerAdapter
getEventList
in interface OMEventHandler
getEventList
in class OMEventHandlerAdapter
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 addTimeBoundsHandler(TimeBoundsHandler tbh)
TimeBoundsProvider
addTimeBoundsHandler
in interface TimeBoundsProvider
public TimeBounds getTimeBounds()
TimeBoundsProvider
getTimeBounds
in interface TimeBoundsProvider
public void handleTimeBounds(TimeBounds tb)
TimeBoundsProvider
handleTimeBounds
in interface TimeBoundsProvider
public boolean isActive()
TimeBoundsProvider
isActive
in interface TimeBoundsProvider
public void setActive(boolean active)
TimeBoundsProvider
setActive
in interface TimeBoundsProvider
public void removeTimeBoundsHandler(TimeBoundsHandler tbh)
TimeBoundsProvider
removeTimeBoundsHandler
in interface TimeBoundsProvider
public void callForTimeBoundsReset()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details