|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.ui.explorer.ExplorerEventAdaptor
public final class ExplorerEventAdaptor
All events going to the Explorer must pass through here first!
Most will come from the uml model via the EventAdapter interface.
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.
TODO: The ExplorerTreeNode also listens to some events (from Diagrams), so it does not follow the rule above.
| Method Summary | |
|---|---|
static ExplorerEventAdaptor |
getInstance()
|
void |
modelElementAdded(java.lang.Object element)
forwards this event to the tree model. |
void |
modelElementChanged(java.lang.Object element)
forwards this event to the tree model. |
void |
propertyChange(java.beans.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()
Deprecated. by mvw in V0.25.4. Use events instead. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ExplorerEventAdaptor getInstance()
@Deprecated public void structureChanged()
public void modelElementAdded(java.lang.Object element)
element - the modelelement to be added
TODO: This shouldn't be public. Components desiring to
inform the Explorer of changes should send events.public void modelElementChanged(java.lang.Object element)
element - the modelelement to be changed
TODO: This shouldn't be public. Components desiring to
inform the Explorer of changes should send events.public void setTreeModelUMLEventListener(TreeModelUMLEventListener newTreeModel)
newTreeModel - the tree model to be usedpublic void propertyChange(java.beans.PropertyChangeEvent pce)
propertyChange in interface java.beans.PropertyChangeListenerPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Cookbook |