public abstract class AstObserverAdapter extends Object implements AstObserver
AstObserver.ListChangeType| Constructor and Description |
|---|
AstObserverAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
listChange(NodeList observedNode,
AstObserver.ListChangeType type,
int index,
Node nodeAddedOrRemoved)
A list is changed
|
void |
listReplacement(NodeList observedNode,
int index,
Node oldNode,
Node newNode) |
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
|
public 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 void parentChange(Node observedNode, Node previousParent, Node newParent)
AstObserverparentChange in interface AstObserverobservedNode - node of which the parent is changedpreviousParent - previous parentnewParent - new parentpublic 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 listReplacement(NodeList observedNode, int index, Node oldNode, Node newNode)
listReplacement in interface AstObserverCopyright © 2007–2017. All rights reserved.