Package adams.core
Class StoppableUtils.StoppableObserver
- java.lang.Object
-
- adams.core.StoppableUtils.StoppableObserver
-
- All Implemented Interfaces:
PropertyTraversal.Observer
- Enclosing class:
- StoppableUtils
public static class StoppableUtils.StoppableObserver extends Object implements PropertyTraversal.Observer
Observer that records all the objects that implement theStoppable
interface.
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<Object>
m_Recorded
the set of objects.protected List<Object>
m_StoppableObjects
the list to populate.
-
Constructor Summary
Constructors Constructor Description StoppableObserver(List<Object> stoppableObjects)
Initializes the observer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
observe(PropertyPath.Path path, PropertyDescriptor desc, Object parent, Object child)
Presents the current path, descriptor and object to the observer.
-
-
-
Method Detail
-
observe
public void observe(PropertyPath.Path path, PropertyDescriptor desc, Object parent, Object child)
Presents the current path, descriptor and object to the observer.- Specified by:
observe
in interfacePropertyTraversal.Observer
- Parameters:
path
- the pathdesc
- the property descriptorparent
- the parent objectchild
- the child object
-
-