org.argouml.uml.ui
Class UMLClassifierComboBoxModel
java.lang.Object
|
+--javax.swing.AbstractListModel
|
+--org.argouml.uml.ui.UMLComboBoxModel
|
+--org.argouml.uml.ui.UMLClassifierComboBoxModel
- All Implemented Interfaces:
- java.awt.event.ActionListener, javax.swing.ComboBoxModel, java.util.EventListener, javax.swing.ListModel, ru.novosoft.uml.MElementListener, java.io.Serializable, UMLUserInterfaceComponent
- public class UMLClassifierComboBoxModel
- extends UMLComboBoxModel
- See Also:
- Serialized Form
Field Summary |
protected static org.apache.log4j.Category |
cat
|
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary |
UMLClassifierComboBoxModel(UMLUserInterfaceContainer container,
java.lang.String filter,
java.lang.String property,
java.lang.String getMethod,
java.lang.String setMethod,
boolean allowVoid,
java.lang.Class elementType,
boolean addElementsFromProfileModel)
This method creates a UMLComboBoxModel |
Method Summary |
void |
propertySet(ru.novosoft.uml.MElementEvent e)
Invoked if a listened to NSUML object has an entry without
multiplicity set (or an entry with multiplicity completely reset.
We are interested in changes to "name" fields, since they may appear
in our set.
Warning. |
void |
roleAdded(ru.novosoft.uml.MElementEvent event)
Invoked if a listened to NSUML element has an entry added to a
component with multiplicity.
We are only interested in the "ownedElement" event name, which
indicates an object has been added to a namespace.
Provided for compliance with the MElementListener
interface. |
void |
targetChanged()
Invoked when the target associated with the container is changed.
Recompute the membership of the drop down and its selected
component.
Provided to comply with the UMLUserInterfaceComponent
interface. |
Methods inherited from class org.argouml.uml.ui.UMLComboBoxModel |
actionPerformed, addElementsFromProfileModel, allowVoid, collectElements, deleteElement, getContainer, getElementAt, getGetMethod, getSelectedItem, getSet, getSetMethod, getSize, listRoleItemSet, recovered, removed, roleRemoved, setSelectedItem, targetReasserted, updateElement |
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.ListModel |
addListDataListener, removeListDataListener |
cat
protected static org.apache.log4j.Category cat
UMLClassifierComboBoxModel
public UMLClassifierComboBoxModel(UMLUserInterfaceContainer container,
java.lang.String filter,
java.lang.String property,
java.lang.String getMethod,
java.lang.String setMethod,
boolean allowVoid,
java.lang.Class elementType,
boolean addElementsFromProfileModel)
- This method creates a UMLComboBoxModel
- Parameters:
container
- container that provides access to target, formatting etcfilter
- name of method on container that takes a MModelElement
true if element should be in list, may be nullproperty
- name of event that would indicate that the value has changedgetMethod
- name of method on container to get valueputMethod
- name of method on container to set valueallowVoid
- allows an entry in the listelementType
- base type for all elements
roleAdded
public void roleAdded(ru.novosoft.uml.MElementEvent event)
- Description copied from class:
UMLComboBoxModel
Invoked if a listened to NSUML element has an entry added to a
component with multiplicity.
We are only interested in the "ownedElement" event name, which
indicates an object has been added to a namespace.
Provided for compliance with the MElementListener
interface.
- Overrides:
roleAdded
in class UMLComboBoxModel
- Following copied from class:
org.argouml.uml.ui.UMLComboBoxModel
- Parameters:
p1
- The event which triggered this method.
targetChanged
public void targetChanged()
- Description copied from class:
UMLComboBoxModel
Invoked when the target associated with the container is changed.
Recompute the membership of the drop down and its selected
component.
Provided to comply with the UMLUserInterfaceComponent
interface.
- Overrides:
targetChanged
in class UMLComboBoxModel
propertySet
public void propertySet(ru.novosoft.uml.MElementEvent e)
- Description copied from class:
UMLComboBoxModel
Invoked if a listened to NSUML object has an entry without
multiplicity set (or an entry with multiplicity completely reset.
We are interested in changes to "name" fields, since they may appear
in our set.
Warning. This only works if setNameEventListener is enabled
to listen for name changes on NSUML elements other than the
target.
Provided for compliance with the MElementListener
interface.
- Overrides:
propertySet
in class UMLComboBoxModel
- See Also:
MElementListener.propertySet(MElementEvent)