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)
AstObserver
propertyChange
in interface AstObserver
observedNode
- 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)
AstObserver
parentChange
in interface AstObserver
observedNode
- node of which the parent is changedpreviousParent
- previous parentnewParent
- new parentpublic void listChange(NodeList observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)
AstObserver
listChange
in interface AstObserver
observedNode
- 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 AstObserver
Copyright © 2007–2019. All rights reserved.