org.argouml.uml.ui
Class UMLNameEventListener
java.lang.Object
|
+--org.argouml.uml.ui.UMLNameEventListener
- All Implemented Interfaces:
- java.util.EventListener, ru.novosoft.uml.MElementListener
- public class UMLNameEventListener
- extends java.lang.Object
- implements ru.novosoft.uml.MElementListener
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.
Constructor Summary |
UMLNameEventListener(java.awt.Container container,
java.lang.Class[] metaClasses)
Creates a UMLChangeDispatch. eventType is overriden if a call to
one of the event functions is called. |
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UMLNameEventListener
public UMLNameEventListener(java.awt.Container container,
java.lang.Class[] metaClasses)
- Creates a UMLChangeDispatch. eventType is overriden if a call to
one of the event functions is called.
- Parameters:
container
- user interface container to which changes are dispatched.metaClasses
- an array of classes (possibly null) whose names should
monitored. For example, passing MClassifier.class will monitor name
changes on classifiers.
propertySet
public void propertySet(ru.novosoft.uml.MElementEvent mee)
- configures this instance to dispatch a propertySet event.
- Specified by:
propertySet
in interface ru.novosoft.uml.MElementListener
- Parameters:
mee
- NSUML event
listRoleItemSet
public void listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
- configures this instance to dispatch a listRoleItemSet event.
- Specified by:
listRoleItemSet
in interface ru.novosoft.uml.MElementListener
- Parameters:
mee
- NSUML event
recovered
public void recovered(ru.novosoft.uml.MElementEvent mee)
- configures this instance to dispatch a recovered event.
- Specified by:
recovered
in interface ru.novosoft.uml.MElementListener
- Parameters:
mee
- NSUML event.
removed
public void removed(ru.novosoft.uml.MElementEvent mee)
- configures this instance to dispatch a removed event.
- Specified by:
removed
in interface ru.novosoft.uml.MElementListener
- Parameters:
mee
- NSUML event.
roleAdded
public void roleAdded(ru.novosoft.uml.MElementEvent mee)
- configures this instance to dispatch a roleAdded event.
- Specified by:
roleAdded
in interface ru.novosoft.uml.MElementListener
- Parameters:
mee
- NSUML event.
roleRemoved
public void roleRemoved(ru.novosoft.uml.MElementEvent mee)
- configures this instance to dispatch a roleRemoved event.
- Specified by:
roleRemoved
in interface ru.novosoft.uml.MElementListener
- Parameters:
mee
- NSUML event