|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.ui.explorer.ExplorerEventAdaptor
All events going to the Explorer must pass through here first!
Most will come from the uml model via ExplorerNSUMLEventAdaptor.
TODO: In some cases (test cases) this object is created without setting the treeModel. I (Linus) will add tests for this now. It would be better if this is created only when the Explorer is created.
Field Summary | |
private static ExplorerEventAdaptor |
instance
The singleton instance. |
private TreeModelUMLEventListener |
treeModel
The tree model to update. |
Constructor Summary | |
private |
ExplorerEventAdaptor()
Creates a new instance of ExplorerUMLEventAdaptor. |
Method Summary | |
static ExplorerEventAdaptor |
getInstance()
|
void |
modelElementAdded(Object source)
forwards this event to the tree model. |
void |
modelElementChanged(Object source)
forwards this event to the tree model. |
void |
modelElementRemoved(Object source)
forwards this event to the tree model. |
void |
propertyChange(PropertyChangeEvent pce)
Listens to events coming from the project manager, config manager, and uml model, passes those events on to the explorer model. |
void |
setTreeModelUMLEventListener(TreeModelUMLEventListener newTreeModel)
sets the tree model that will receive events. |
void |
structureChanged()
forwards this event to the tree model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static ExplorerEventAdaptor instance
private TreeModelUMLEventListener treeModel
Constructor Detail |
private ExplorerEventAdaptor()
Method Detail |
public static ExplorerEventAdaptor getInstance()
public void structureChanged()
public void modelElementRemoved(Object source)
source
- the modelelement to be removedpublic void modelElementAdded(Object source)
source
- the modelelement to be addedpublic void modelElementChanged(Object source)
source
- the modelelement to be changedpublic void setTreeModelUMLEventListener(TreeModelUMLEventListener newTreeModel)
newTreeModel
- the tree model to be usedpublic void propertyChange(PropertyChangeEvent pce)
propertyChange
in interface PropertyChangeListener
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |