public class ConTreeObservable extends Observable
| 构造器和说明 |
|---|
ConTreeObservable() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
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 在类中 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.