Package adams.flow.core
Class FlowContextUtils.UpdateObserver
- java.lang.Object
-
- adams.flow.core.FlowContextUtils.UpdateObserver
-
- All Implemented Interfaces:
PropertyTraversal.Observer
- Enclosing class:
- FlowContextUtils
public static class FlowContextUtils.UpdateObserver extends Object implements PropertyTraversal.Observer
Observer that updates the context.
-
-
Constructor Summary
Constructors Constructor Description UpdateObserver(Actor context)
Initializes the observer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getUpdates()
Returns the number of updates.boolean
observe(PropertyPath.Path path, PropertyDescriptor desc, Object parent, Object child)
Presents the current path, descriptor and object to the observer.
-
-
-
Field Detail
-
m_Context
protected Actor m_Context
the context to set.
-
m_Updates
protected int m_Updates
the number of flow contexts that were updated.
-
-
Constructor Detail
-
UpdateObserver
public UpdateObserver(Actor context)
Initializes the observer.- Parameters:
context
- the context to set
-
-
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:
observe
in interfacePropertyTraversal.Observer
- Parameters:
path
- the pathdesc
- the property descriptorparent
- the parent objectchild
- the child object- Returns:
- true if to continue observing
-
getUpdates
public int getUpdates()
Returns the number of updates.- Returns:
- the updates
-
-