org.argouml.uml.ui.behavior.common_behavior
Class UMLReceptionSignalComboBoxModel
java.lang.Object
javax.swing.AbstractListModel
org.argouml.uml.ui.UMLComboBoxModel2
org.argouml.uml.ui.behavior.common_behavior.UMLReceptionSignalComboBoxModel
- All Implemented Interfaces:
- ComboBoxModel, EventListener, ListModel, PropertyChangeListener, Serializable, TargetListener
- public class UMLReceptionSignalComboBoxModel
- extends UMLComboBoxModel2
The model for the signal combobox on the reception proppanel.
- See Also:
- Serialized Form
| Methods inherited from class org.argouml.uml.ui.UMLComboBoxModel2 |
addAll, addElement, addOtherModelEventListeners, contains, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getChangedElement, getElementAt, getIndexOf, getName, getPropertySetName, getSelectedItem, getSize, getTarget, isClearable, isFireListEvents, isValidEvent, removeAll, removeAllElements, removeElement, removeOtherModelEventListeners, setElements, setFireListEvents, setSelectedItem, setTarget, targetAdded, targetRemoved, targetSet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UMLReceptionSignalComboBoxModel
public UMLReceptionSignalComboBoxModel()
- Constructor for UMLReceptionSignalComboBoxModel.
buildModelList
protected void buildModelList()
- Description copied from class:
UMLComboBoxModel2
- Builds the list of elements and sets the selectedIndex to the currently
selected item if there is one. Called from targetChanged every time the
target of the proppanel is changed.
- Specified by:
buildModelList in class UMLComboBoxModel2
- See Also:
UMLComboBoxModel2.buildModelList()
isValidElement
protected boolean isValidElement(Object m)
- Description copied from class:
UMLComboBoxModel2
- Returns true if the given element is valid.
It is valid if it may be added to the list of elements.
- Specified by:
isValidElement in class UMLComboBoxModel2
- Parameters:
m - the given element
- Returns:
- true if the given element is valid
- See Also:
UMLComboBoxModel2.isValidElement(Object)
getSelectedModelElement
protected Object getSelectedModelElement()
- Description copied from class:
UMLComboBoxModel2
- Gets the modelelement that is selected in the UML model. For
example, say that this ComboBoxmodel contains all namespaces
(as in UMLNamespaceComboBoxmodel) , this method should return
the namespace that owns the target then.
- Specified by:
getSelectedModelElement in class UMLComboBoxModel2
- Returns:
- Object
- See Also:
UMLComboBoxModel2.getSelectedModelElement()
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Override UMLComboBoxModel2's default handling of RemoveAssociation. We
get this from MDR for the previous signal when a different signal is
selected. Don't let that remove it from the combo box. Only remove it if
the signal was removed from the namespace.
- Specified by:
propertyChange in interface PropertyChangeListener- Overrides:
propertyChange in class UMLComboBoxModel2
- See Also:
UMLComboBoxModel2.propertyChange(java.beans.PropertyChangeEvent)