org.argouml.uml.ui
Class UMLTreeRootNode

java.lang.Object
  |
  +--org.argouml.uml.ui.UMLTreeRootNode
All Implemented Interfaces:
java.util.EventListener, ru.novosoft.uml.MElementListener, javax.swing.tree.TreeNode, UMLUserInterfaceComponent
Direct Known Subclasses:
UMLOwnedElementRootNode

public abstract class UMLTreeRootNode
extends java.lang.Object
implements javax.swing.tree.TreeNode, UMLUserInterfaceComponent

This class is implements a tree model for ownedElements of a MNamespace


Field Summary
protected  UMLUserInterfaceContainer _container
           
protected  UMLTreeModel _model
           
protected  java.lang.String _property
           
 
Constructor Summary
UMLTreeRootNode(UMLUserInterfaceContainer container, java.lang.String property)
          Creates a new tree model
 
Method Summary
abstract  boolean buildPopup(javax.swing.tree.TreeModel model, javax.swing.JPopupMenu menu, javax.swing.tree.TreePath path)
           
 boolean getAllowsChildren()
           
 UMLUserInterfaceContainer getContainer()
           
 UMLTreeModel getModel()
           
 javax.swing.tree.TreeNode getParent()
           
 java.lang.String getProperty()
           
 boolean isLeaf()
           
 void setModel(UMLTreeModel model)
           
 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
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getChildAt, getChildCount, getIndex
 
Methods inherited from interface org.argouml.uml.ui.UMLUserInterfaceComponent
targetChanged
 
Methods inherited from interface ru.novosoft.uml.MElementListener
listRoleItemSet, propertySet, recovered, removed, roleAdded, roleRemoved
 

Field Detail

_container

protected UMLUserInterfaceContainer _container

_property

protected java.lang.String _property

_model

protected UMLTreeModel _model
Constructor Detail

UMLTreeRootNode

public UMLTreeRootNode(UMLUserInterfaceContainer container,
                       java.lang.String property)
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.
Method Detail

setModel

public void setModel(UMLTreeModel model)

getModel

public final UMLTreeModel getModel()

getParent

public javax.swing.tree.TreeNode getParent()
Specified by:
getParent in interface javax.swing.tree.TreeNode

getAllowsChildren

public boolean getAllowsChildren()
Specified by:
getAllowsChildren in interface javax.swing.tree.TreeNode

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface javax.swing.tree.TreeNode

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.
Specified by:
targetReasserted in interface UMLUserInterfaceComponent

buildPopup

public abstract boolean buildPopup(javax.swing.tree.TreeModel model,
                                   javax.swing.JPopupMenu menu,
                                   javax.swing.tree.TreePath path)

getContainer

public final UMLUserInterfaceContainer getContainer()

getProperty

public final java.lang.String getProperty()


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