|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractListModel
org.argouml.uml.ui.UMLComboBoxModel
org.argouml.uml.ui.UMLClassifierComboBoxModel
Field Summary | |
protected static org.apache.log4j.Category |
cat
Deprecated. |
Fields inherited from class org.argouml.uml.ui.UMLComboBoxModel |
_addElementsFromProfileModel, _allowVoid, _container, _filter, _getMethod, _property, _selectedItem, _set, _setMethod |
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)
Deprecated. This method creates a UMLComboBoxModel |
Method Summary | |
void |
propertySet(ru.novosoft.uml.MElementEvent e)
Deprecated. Invoked if a listened to NSUML object has an entry without multiplicity set (or an entry with multiplicity completely reset. |
void |
roleAdded(ru.novosoft.uml.MElementEvent event)
Deprecated. Invoked if a listened to NSUML element has an entry added to a component with multiplicity. |
void |
targetChanged()
Deprecated. Invoked when the target associated with the container is changed. |
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, getListDataListeners, 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 |
Field Detail |
protected static org.apache.log4j.Category cat
Constructor Detail |
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)
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 valueallowVoid
- allows an entry in the listelementType
- base type for all elementsMethod Detail |
public void roleAdded(ru.novosoft.uml.MElementEvent event)
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.
roleAdded
in interface ru.novosoft.uml.MElementListener
roleAdded
in class UMLComboBoxModel
public void targetChanged()
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.
targetChanged
in interface UMLUserInterfaceComponent
targetChanged
in class UMLComboBoxModel
public void propertySet(ru.novosoft.uml.MElementEvent e)
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.
propertySet
in interface ru.novosoft.uml.MElementListener
propertySet
in class UMLComboBoxModel
e
- The event which triggered this method.MElementListener.propertySet(MElementEvent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040125) | ArgoUML Project Home | ArgoUML Cookbook |