public class ConTreeObservable extends Observable
| Constructor and Description |
|---|
ConTreeObservable() |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyCreateActionToObservers(String treeCode,
Object notifyData)
通知变动(新增)
|
void |
notifyDeleteActionToObservers(String treeCode,
Object notifyData)
通知变动(删除)
|
void |
notifyObservers()
If this object has changed, as indicated by the
hasChanged method, then notify all of its observers
and then call the clearChanged method to
indicate that this object has no longer changed. |
void |
notifyObservers(Object arg)
If this object has changed, as indicated by the
hasChanged method, then notify all of its observers
and then call the clearChanged method to indicate
that this object has no longer changed. |
void |
notifyUpdateActionToObservers(String treeCode,
Object notifyData)
通知变动(更新)
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, setChangedpublic void notifyObservers()
hasChanged method, then notify all of its observers
and then call the clearChanged method to
indicate that this object has no longer changed.
Each observer has its update method called with two
arguments: this observable object and null. In other
words, this method is equivalent to:
notifyObservers(null)
notifyObservers in class ObservableObservable.clearChanged(),
Observable.hasChanged(),
Observer.update(Observable, Object)public void notifyObservers(Object arg)
hasChanged method, then notify all of its observers
and then call the clearChanged method to indicate
that this object has no longer changed.
Each observer has its update method called with two
arguments: this observable object and the arg argument.
notifyObservers in class Observablearg - any object.Observable.clearChanged(),
Observable.hasChanged(),
Observer.update(Observable, Object)public void notifyCreateActionToObservers(String treeCode, Object notifyData)
treeCode - 树编码notifyData - 通知数据public void notifyDeleteActionToObservers(String treeCode, Object notifyData)
treeCode - 树编码notifyData - 通知数据Copyright © 2020. All rights reserved.