Package adams.data.conversion
Class AbstractSwapObject.SwapObserver
- java.lang.Object
-
- adams.data.conversion.AbstractSwapObject.SwapObserver
-
- All Implemented Interfaces:
PropertyTraversal.Observer
- Enclosing class:
- AbstractSwapObject
protected static class AbstractSwapObject.SwapObserver extends Object implements PropertyTraversal.Observer
Observer that performs the swapping of the objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractSwapObjectm_Ownerthe owner.
-
Constructor Summary
Constructors Constructor Description SwapObserver(AbstractSwapObject owner)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.
-
-
-
Field Detail
-
m_Owner
protected AbstractSwapObject m_Owner
the owner.
-
-
Constructor Detail
-
SwapObserver
public SwapObserver(AbstractSwapObject owner)
Initializes the observer.- Parameters:
owner- the owning conversion
-
-
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
-
-