public abstract class PropagatingAstObserver extends Object implements AstObserver
AstObserver.ListChangeType| Constructor and Description |
|---|
PropagatingAstObserver() |
| Modifier and Type | Method and Description |
|---|---|
void |
concreteListChange(NodeList observedNode,
AstObserver.ListChangeType type,
int index,
Node nodeAddedOrRemoved) |
void |
concretePropertyChange(Node observedNode,
ObservableProperty property,
Object oldValue,
Object newValue) |
void |
listChange(NodeList observedNode,
AstObserver.ListChangeType type,
int index,
Node nodeAddedOrRemoved)
A list is changed
|
void |
parentChange(Node observedNode,
Node previousParent,
Node newParent)
The parent of a node is changed
|
void |
propertyChange(Node observedNode,
ObservableProperty property,
Object oldValue,
Object newValue)
The value of a property is changed
|
static PropagatingAstObserver |
transformInPropagatingObserver(AstObserver observer)
Wrap a given observer to make it self-propagating.
|
public static PropagatingAstObserver transformInPropagatingObserver(AstObserver observer)
public final void propertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue)
AstObserverpropertyChange in interface AstObserverobservedNode - owner of the propertyproperty - property changedoldValue - value of the property before the changenewValue - value of the property after the changepublic final void listChange(NodeList observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)
AstObserverlistChange in interface AstObserverobservedNode - list changedtype - type of changeindex - position at which the changed occurrednodeAddedOrRemoved - element added or removedpublic void concretePropertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue)
public void concreteListChange(NodeList observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)
public void parentChange(Node observedNode, Node previousParent, Node newParent)
AstObserverparentChange in interface AstObserverobservedNode - node of which the parent is changedpreviousParent - previous parentnewParent - new parentCopyright © 2007–2016. All rights reserved.