org.argouml.uml.ui
Class UMLAttributesClassifierRoleListModel

java.lang.Object
  |
  +--javax.swing.AbstractListModel
        |
        +--org.argouml.uml.ui.UMLModelElementListModel
              |
              +--org.argouml.uml.ui.UMLModelElementCachedListModel
                    |
                    +--org.argouml.uml.ui.UMLAttributesListModel
                          |
                          +--org.argouml.uml.ui.UMLAttributesClassifierRoleListModel
All Implemented Interfaces:
java.util.EventListener, javax.swing.ListModel, ru.novosoft.uml.MElementListener, NotationContext, java.io.Serializable, UMLUserInterfaceComponent

public class UMLAttributesClassifierRoleListModel
extends UMLAttributesListModel

See Also:
Serialized Form

Fields inherited from class org.argouml.uml.ui.UMLModelElementListModel
_upper
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
UMLAttributesClassifierRoleListModel(UMLUserInterfaceContainer container, java.lang.String property, boolean showNone)
          Constructor for UMLAttributesClassifierRoleListModel.
 
Method Summary
 void add(int index)
          Adds a new attribute, updating both the cache and underlying collection and navigating to new attribute.
 boolean buildPopup(javax.swing.JPopupMenu popup, int index)
          This method builds a context (pop-up) menu for the list.
protected  java.util.List getChoices()
           
 
Methods inherited from class org.argouml.uml.ui.UMLAttributesListModel
delete, getCache, getRawCollection, isProperClass, moveDown, moveUp, 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
 

Constructor Detail

UMLAttributesClassifierRoleListModel

public UMLAttributesClassifierRoleListModel(UMLUserInterfaceContainer container,
                                            java.lang.String property,
                                            boolean showNone)
Constructor for UMLAttributesClassifierRoleListModel.
Parameters:
container -  
property -  
showNone -  
Method Detail

add

public void add(int index)
Description copied from class: UMLAttributesListModel
Adds a new attribute, updating both the cache and underlying collection and navigating to new attribute. Called by "Add" popup menu item.
Overrides:
add in class UMLAttributesListModel
See Also:
UMLAttributesListModel.add(int)

buildPopup

public boolean buildPopup(javax.swing.JPopupMenu popup,
                          int index)
Description copied from class: UMLAttributesListModel
This method builds a context (pop-up) menu for the list.
Overrides:
buildPopup in class UMLAttributesListModel
See Also:
UMLModelElementListModel.buildPopup(JPopupMenu, int)

getChoices

protected java.util.List getChoices()


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook