|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.uml.ui.UMLChangeDispatch
This class is used to dispatch a UML model change event (which may occur on a non-UI) thread) to user interface components. The class is created in response to a UML Model change event being captured by a UMLUserInterfaceContainer and then is passed as an argument to InvokeLater to be run on the user interface thread.
This class is updated to cope with changes to the targetchanged mechanism.
| Field Summary | |
private Container |
container
|
private int |
eventType
|
private Object |
target
The target of the proppanel that constructs this umlchangedispatch. |
static int |
TARGET_CHANGED
Dispatch a target changed event. |
static int |
TARGET_CHANGED_ADD
Dispatch a target changed event |
static int |
TARGET_REASSERTED
Dispatch a target reasserted event. |
| Constructor Summary | |
UMLChangeDispatch(Container uic,
int et)
Creates a UMLChangeDispatch. |
|
| Method Summary | |
private void |
dispatch(Container theAWTContainer)
Iterates through all children of this container. |
void |
run()
Called by InvokeLater on user interface thread. |
private void |
synchronizedDispatch(Container cont)
|
void |
targetChanged()
Configures this instance to dispatch a targetChanged event. |
void |
targetReasserted()
This method is called when the navigation history has been changed (and navigation buttons may need to be updated). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int eventType
private Container container
private Object target
public static final int TARGET_CHANGED_ADD
public static final int TARGET_CHANGED
public static final int TARGET_REASSERTED
| Constructor Detail |
public UMLChangeDispatch(Container uic,
int et)
uic - user interface container to which changes are dispatched.et - -1 will add event listener to new target, 0 for default.| Method Detail |
public void targetChanged()
targetChanged in interface UMLUserInterfaceComponentpublic void targetReasserted()
UMLUserInterfaceComponent
targetReasserted in interface UMLUserInterfaceComponentUMLUserInterfaceComponent.targetReasserted()public void run()
run in interface Runnableprivate void dispatch(Container theAWTContainer)
theAWTContainer - AWT containerprivate void synchronizedDispatch(Container cont)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2005 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |