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 theStoppableinterface.
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<Object>m_Recordedthe set of objects.protected List<Object>m_StoppableObjectsthe 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 booleanobserve(PropertyPath.Path path, PropertyDescriptor desc, Object parent, Object child)Presents the current path, descriptor and object to the observer.
-
-
-
Method Detail
-
observe
public boolean observe(PropertyPath.Path path, PropertyDescriptor desc, Object parent, Object child)
Presents the current path, descriptor and object to the observer.- Specified by:
observein interfacePropertyTraversal.Observer- Parameters:
path- the pathdesc- the property descriptorparent- the parent objectchild- the child object- Returns:
- true if to continue observing
-
-