org.argouml.uml.ui.foundation.core
Class UMLModelElementStereotypeListModel
java.lang.Object
javax.swing.AbstractListModel
javax.swing.DefaultListModel
org.argouml.uml.ui.UMLModelElementListModel2
org.argouml.uml.ui.foundation.core.UMLModelElementStereotypeListModel
- All Implemented Interfaces:
- EventListener, ListModel, PropertyChangeListener, Serializable, TargetListener
- public class UMLModelElementStereotypeListModel
- extends UMLModelElementListModel2
The swing List Model for displaying stereotypes.
- Since:
- Oct 24, 2005
- See Also:
- Serialized Form
| Methods inherited from class org.argouml.uml.ui.UMLModelElementListModel2 |
addAll, addElement, addOtherModelEventListeners, contains, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getChangedElement, getTarget, isValidEvent, propertyChange, removeOtherModelEventListeners, setAllElements, setBuildingModel, setEventName, setListTarget, setTarget, targetAdded, targetRemoved, targetSet |
| Methods inherited from class javax.swing.DefaultListModel |
add, capacity, clear, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize |
UMLModelElementStereotypeListModel
public UMLModelElementStereotypeListModel()
- Constructor for UMLModelElementNamespaceListModel.
buildModelList
protected void buildModelList()
- Description copied from class:
UMLModelElementListModel2
- Builds the list of elements. Called from targetChanged every time the
target of the proppanel is changed. Usually the method setAllElements is
called with the result.
- Specified by:
buildModelList in class UMLModelElementListModel2
- See Also:
UMLModelElementListModel2.buildModelList()
isValidElement
protected boolean isValidElement(Object element)
- Description copied from class:
UMLModelElementListModel2
- Returns true if the given element is valid, i.e. it may be added to the
list of elements.
- Specified by:
isValidElement in class UMLModelElementListModel2
- Parameters:
element - the element to be tested
- Returns:
- true if valid
- See Also:
UMLModelElementListModel2.isValidElement(Object)
buildPopup
public boolean buildPopup(JPopupMenu popup,
int index)
- Description copied from class:
UMLModelElementListModel2
- Override this if you want a popup menu.
See for an example UMLModelElementOrderedListModel2.
- Overrides:
buildPopup in class UMLModelElementListModel2
- Parameters:
popup - the popup menuindex - the selected item in the list at the moment
the mouse was clicked
- Returns:
- true if a popup menu is created, and needs to be shown
- See Also:
UMLModelElementListModel2.buildPopup(javax.swing.JPopupMenu, int)