|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractListModel | +--org.argouml.uml.ui.UMLComboBoxModel | +--org.argouml.uml.ui.UMLClassifierComboBoxModel
Field Summary | |
---|---|
protected static Logger |
cat
Deprecated. by Linus Tolke as of 0.15.4. Use your own logger in your class. This will be removed. |
private static Logger |
LOG
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 | |
---|---|
private void |
makeSelection(java.lang.Object model,
java.lang.Object selClass)
Deprecated. |
void |
propertySet(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(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 Logger cat
private static final Logger LOG
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 valuesetMethod
- name of method on container to set valueallowVoid
- allows an entry in the listelementType
- base type for all elementsMethod Detail |
private void makeSelection(java.lang.Object model, java.lang.Object selClass)
public void roleAdded(MElementEvent event)
UMLComboBoxModel
We are only interested in the "ownedElement" event name, which indicates an object has been added to a namespace.
Provided for compliance with the
ru.novosoft.uml.MElementListener
interface.
roleAdded
in class UMLComboBoxModel
event
- The event which triggered this method.public void targetChanged()
UMLComboBoxModel
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(MElementEvent e)
UMLComboBoxModel
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.
propertySet
in class UMLComboBoxModel
e
- The event which triggered this method.ru.novosoft.uml.MElementListener#propertySet(MElementEvent)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |