org.argouml.uml.ui
Class UMLOwnedElementRootNode
java.lang.Object
|
+--org.argouml.uml.ui.UMLTreeRootNode
|
+--org.argouml.uml.ui.UMLOwnedElementRootNode
- All Implemented Interfaces:
- java.util.EventListener, ru.novosoft.uml.MElementListener, javax.swing.tree.TreeNode, UMLUserInterfaceComponent
- public class UMLOwnedElementRootNode
- extends UMLTreeRootNode
This class is implements a tree model for ownedElements of a MNamespace
Method Summary |
boolean |
buildPopup(javax.swing.tree.TreeModel model,
javax.swing.JPopupMenu menu,
javax.swing.tree.TreePath path)
|
java.util.Enumeration |
children()
|
javax.swing.tree.TreeNode |
getChildAt(int childIndex)
|
int |
getChildCount()
|
int |
getIndex(javax.swing.tree.TreeNode node)
|
void |
listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
|
void |
propertySet(ru.novosoft.uml.MElementEvent mee)
|
void |
recovered(ru.novosoft.uml.MElementEvent mee)
|
void |
removed(ru.novosoft.uml.MElementEvent mee)
|
void |
roleAdded(ru.novosoft.uml.MElementEvent mee)
|
void |
roleRemoved(ru.novosoft.uml.MElementEvent mee)
|
void |
targetChanged()
This method is called when the target of a UMLUserInterfaceContainer
has been changed. |
void |
targetReasserted()
This method is called when the navigation history has been changed
(and navigation buttons may need to be updated). targetChanged
implies navigationHistoryChanged, so this method will not
be called after a targetChange. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UMLOwnedElementRootNode
public UMLOwnedElementRootNode(UMLUserInterfaceContainer container,
java.lang.String property,
boolean forClass)
- Creates a new tree model
- Parameters:
container
- the container (typically a PropPanelClass or PropPanelInterface)
that provides access to the target classifier.property
- a string that specifies the name of an event that should force a refresh
of the list model. A null value will cause all events to trigger a refresh.showNone
- if true, an element labelled "none" will be shown where there are
no actual entries in the list.
getChildAt
public javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildCount
public int getChildCount()
getIndex
public int getIndex(javax.swing.tree.TreeNode node)
children
public java.util.Enumeration children()
propertySet
public void propertySet(ru.novosoft.uml.MElementEvent mee)
listRoleItemSet
public void listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
recovered
public void recovered(ru.novosoft.uml.MElementEvent mee)
removed
public void removed(ru.novosoft.uml.MElementEvent mee)
roleAdded
public void roleAdded(ru.novosoft.uml.MElementEvent mee)
roleRemoved
public void roleRemoved(ru.novosoft.uml.MElementEvent mee)
targetChanged
public void targetChanged()
- Description copied from interface:
UMLUserInterfaceComponent
- This method is called when the target of a UMLUserInterfaceContainer
has been changed.
targetReasserted
public void targetReasserted()
- Description copied from interface:
UMLUserInterfaceComponent
- This method is called when the navigation history has been changed
(and navigation buttons may need to be updated). targetChanged
implies navigationHistoryChanged, so this method will not
be called after a targetChange.
- Overrides:
targetReasserted
in class UMLTreeRootNode
buildPopup
public boolean buildPopup(javax.swing.tree.TreeModel model,
javax.swing.JPopupMenu menu,
javax.swing.tree.TreePath path)
- Overrides:
buildPopup
in class UMLTreeRootNode