|
|||||||||||
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 NSUML change event (which may occur on a non-UI) thread) to user interface components. The class is created in response to a NSUML change event being captures 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 mechanisme
Field Summary | |
private java.awt.Container |
_container
|
private ru.novosoft.uml.MElementEvent |
_event
|
private int |
_eventType
|
private java.lang.Object |
_target
The target of the proppanel that constructs this umlchangedispatch |
static int |
DEFAULT
Dispatch a default (target changed) event. |
static int |
LIST_ROLE_ITEM_SET
Dispatch a NSUML list role item set event. |
static int |
PROPERTY_SET
Dispatch a NSUML property set event. |
static int |
RECOVERED
Dispatch a NSUML recovered event. |
static int |
REMOVED
Dispatch a NSUML removed event. |
static int |
ROLE_ADDED
Dispatch a NSUML role added event. |
static int |
ROLE_REMOVED
Dispatch a NSUML role removed event. |
static int |
TARGET_CHANGED
Dispatch a target changed event. |
static int |
TARGET_CHANGED_ADD
Dispatch a target changed event and add a NSUML listener to the target afterwards. |
static int |
TARGET_REASSERTED
Dispatch a target reasserted event. |
Constructor Summary | |
UMLChangeDispatch(java.awt.Container container,
int eventType)
Creates a UMLChangeDispatch. |
Method Summary | |
private void |
dispatch(java.awt.Container container)
Iterates through all children of this container. |
void |
listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
configures this instance to dispatch a listRoleItemSet event. |
void |
propertySet(ru.novosoft.uml.MElementEvent mee)
configures this instance to dispatch a propertySet event. |
void |
recovered(ru.novosoft.uml.MElementEvent mee)
configures this instance to dispatch a recovered event. |
void |
removed(ru.novosoft.uml.MElementEvent mee)
configures this instance to dispatch a removed event. |
void |
roleAdded(ru.novosoft.uml.MElementEvent mee)
configures this instance to dispatch a roleAdded event. |
void |
roleRemoved(ru.novosoft.uml.MElementEvent mee)
configures this instance to dispatch a roleRemoved event. |
void |
run()
Called by InvokeLater on user interface thread. |
private void |
synchronizedDispatch(java.awt.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 ru.novosoft.uml.MElementEvent _event
private int _eventType
private java.awt.Container _container
private java.lang.Object _target
public static final int TARGET_CHANGED_ADD
Dispatch a target changed event and add a NSUML listener to the target afterwards.
public static final int TARGET_CHANGED
Dispatch a target changed event.
public static final int PROPERTY_SET
Dispatch a NSUML property set event.
public static final int LIST_ROLE_ITEM_SET
Dispatch a NSUML list role item set event.
public static final int RECOVERED
Dispatch a NSUML recovered event.
public static final int REMOVED
Dispatch a NSUML removed event.
public static final int ROLE_ADDED
Dispatch a NSUML role added event.
public static final int ROLE_REMOVED
Dispatch a NSUML role removed event.
public static final int TARGET_REASSERTED
Dispatch a target reasserted event.
public static final int DEFAULT
Dispatch a default (target changed) event.
Constructor Detail |
public UMLChangeDispatch(java.awt.Container container, int eventType)
container
- user interface container to which changes are dispatched.eventType
- -1 will add event listener to new target, 0 for default.Method Detail |
public void targetChanged()
targetChanged
in interface UMLUserInterfaceComponent
public void targetReasserted()
UMLUserInterfaceComponent
targetReasserted
in interface UMLUserInterfaceComponent
public void propertySet(ru.novosoft.uml.MElementEvent mee)
propertySet
in interface ru.novosoft.uml.MElementListener
mee
- NSUML eventpublic void listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
listRoleItemSet
in interface ru.novosoft.uml.MElementListener
mee
- NSUML eventpublic void recovered(ru.novosoft.uml.MElementEvent mee)
recovered
in interface ru.novosoft.uml.MElementListener
mee
- NSUML event.public void removed(ru.novosoft.uml.MElementEvent mee)
removed
in interface ru.novosoft.uml.MElementListener
mee
- NSUML event.public void roleAdded(ru.novosoft.uml.MElementEvent mee)
roleAdded
in interface ru.novosoft.uml.MElementListener
mee
- NSUML event.public void roleRemoved(ru.novosoft.uml.MElementEvent mee)
roleRemoved
in interface ru.novosoft.uml.MElementListener
mee
- NSUML eventpublic void run()
run
in interface java.lang.Runnable
private void dispatch(java.awt.Container container)
container
- AWT containerprivate void synchronizedDispatch(java.awt.Container cont)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |