org.argouml.uml.ui
Class UMLClassifierListModel
java.lang.Object
|
+--javax.swing.AbstractListModel
|
+--org.argouml.uml.ui.UMLModelElementListModel
|
+--org.argouml.uml.ui.UMLModelElementCachedListModel
|
+--org.argouml.uml.ui.UMLClassifierListModel
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.ListModel, ru.novosoft.uml.MElementListener, NotationContext, java.io.Serializable, UMLUserInterfaceComponent
- public class UMLClassifierListModel
- extends UMLModelElementCachedListModel
- See Also:
- Serialized Form
Field Summary |
protected static org.apache.log4j.Category |
cat
|
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Method Summary |
void |
add(int index)
|
boolean |
buildPopup(javax.swing.JPopupMenu popup,
int index)
This method builds a context (pop-up) menu for the list. |
void |
delete(int index)
Standard delete method. |
protected java.util.List |
getCache()
|
java.util.Collection |
getRawCollection()
|
boolean |
isProperClass(java.lang.Object obj)
|
protected void |
resetCache()
|
Methods inherited from class org.argouml.uml.ui.UMLModelElementCachedListModel |
addElement, buildCache, getModelElementAt, listRoleItemSet, propertySet, recalcModelElementSize, recovered, removed, roleAdded, roleRemoved, swap, targetChanged |
Methods inherited from class org.argouml.uml.ui.UMLModelElementListModel |
addAtUtil, elementAtUtil, formatElement, getContainer, getContextNotation, getElementAt, getModelElementSize, getProperty, getSize, getTarget, getUpperBound, moveDownUtil, moveUpUtil, navigateTo, open, resetSize, setUpperBound, targetReasserted |
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 |
cat
protected static org.apache.log4j.Category cat
UMLClassifierListModel
public UMLClassifierListModel(UMLUserInterfaceContainer container,
java.lang.String property,
boolean showNone,
java.lang.Class classifierType,
java.lang.Class implClass)
resetCache
protected void resetCache()
- Overrides:
resetCache
in class UMLModelElementCachedListModel
isProperClass
public boolean isProperClass(java.lang.Object obj)
- Overrides:
isProperClass
in class UMLModelElementCachedListModel
getRawCollection
public java.util.Collection getRawCollection()
getCache
protected java.util.List getCache()
- Overrides:
getCache
in class UMLModelElementCachedListModel
add
public void add(int index)
delete
public void delete(int index)
- Description copied from class:
UMLModelElementListModel
- Standard delete method.
- Overrides:
delete
in class UMLModelElementListModel
- Following copied from class:
org.argouml.uml.ui.UMLModelElementListModel
- Parameters:
index
-
buildPopup
public boolean buildPopup(javax.swing.JPopupMenu popup,
int index)
- Description copied from class:
UMLModelElementListModel
- This method builds a context (pop-up) menu for the list. This method
may be overriden for lists that have additional menu items or when
the default list of actions is inappropriate.
- Overrides:
buildPopup
in class UMLModelElementListModel
- Following copied from class:
org.argouml.uml.ui.UMLModelElementListModel
- Parameters:
popup
- popup menuindex
- index of selected list item- Returns:
- "true" if popup menu should be displayed