org.argouml.uml.ui
Class UMLStimulusListModel

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

public class UMLStimulusListModel
extends UMLModelElementListModel

See Also:
Serialized Form

Fields inherited from class org.argouml.uml.ui.UMLModelElementListModel
_upper
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
UMLStimulusListModel(UMLUserInterfaceContainer container, java.lang.String property, boolean showNone, java.lang.String stimulusType)
           
 
Method Summary
 boolean buildPopup(javax.swing.JPopupMenu popup, int index)
          This method builds a context (pop-up) menu for the list.
protected  ru.novosoft.uml.foundation.core.MModelElement getModelElementAt(int index)
          This method returns the model element that corresponds to to the specific index.
 void open(int index)
          This method is called in response to selecting "Open" from a context (pop-up) menu on this list.
protected  int recalcModelElementSize()
          This method is called from getModelElementSize when the list size has been marked as invalid.
 
Methods inherited from class org.argouml.uml.ui.UMLModelElementListModel
addAtUtil, delete, elementAtUtil, formatElement, getContainer, getContextNotation, getElementAt, getModelElementSize, getProperty, getSize, getTarget, getUpperBound, listRoleItemSet, moveDownUtil, moveUpUtil, navigateTo, propertySet, recovered, removed, resetSize, roleAdded, roleRemoved, setUpperBound, targetChanged, 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

UMLStimulusListModel

public UMLStimulusListModel(UMLUserInterfaceContainer container,
                            java.lang.String property,
                            boolean showNone,
                            java.lang.String stimulusType)
Method Detail

open

public void open(int index)
Description copied from class: UMLModelElementListModel
This method is called in response to selecting "Open" from a context (pop-up) menu on this list.
Overrides:
open in class UMLModelElementListModel
Following copied from class: org.argouml.uml.ui.UMLModelElementListModel
Parameters:
index - index of item to open (zero-based).

recalcModelElementSize

protected int recalcModelElementSize()
Description copied from class: UMLModelElementListModel
This method is called from getModelElementSize when the list size has been marked as invalid.
Overrides:
recalcModelElementSize in class UMLModelElementListModel
Following copied from class: org.argouml.uml.ui.UMLModelElementListModel
Returns:
number of "actual" list entries.

getModelElementAt

protected ru.novosoft.uml.foundation.core.MModelElement getModelElementAt(int index)
Description copied from class: UMLModelElementListModel
This method returns the model element that corresponds to to the specific index. Called from getElementAt which handles entries for "none" and formatting of elements.
Overrides:
getModelElementAt in class UMLModelElementListModel
Following copied from class: org.argouml.uml.ui.UMLModelElementListModel
Parameters:
index - index of model element (zero based).
Returns:
corresponding model element

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
See Also:
UMLModelElementListModel.buildPopup(JPopupMenu, int)


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