|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.ui.PerspectiveSupport
org.argouml.ui.TreeModelSupport
public class TreeModelSupport
Helper class for tree models that provides tree event handling.
| Constructor Summary | |
|---|---|
TreeModelSupport(java.lang.String name)
The constructor. |
|
| Method Summary | |
|---|---|
void |
addTreeModelListener(javax.swing.event.TreeModelListener l)
Add a TreeModelListener to the list of listeners. |
protected void |
fireTreeNodesChanged(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
Notify all listeners that a node (or a set of siblings) has changed in some way. |
protected void |
fireTreeNodesInserted(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
Notify all listeners a node has been inserted. |
protected void |
fireTreeNodesRemoved(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
Notify all listeners that nodes have been removed from the tree. |
protected void |
fireTreeStructureChanged(java.lang.Object[] path)
Notify all listeners that the tree has drastically changed structure from a given node down. |
protected void |
fireTreeStructureChanged(java.lang.Object source,
java.lang.Object[] path)
Notify all listeners that the tree has drastically changed structure from a given node down. |
void |
fireTreeStructureChanged(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
Notify all listeners that the tree has drastically changed structure from a given node down. |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l)
Remove a TreeModelListener from the list of listeners.. |
| Methods inherited from class org.argouml.ui.PerspectiveSupport |
|---|
addSubTreeModel, getGoRuleList, getGoRules, getName, getSubTreeModelList, getSubTreeModels, registerRule, removeSubTreeModel, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TreeModelSupport(java.lang.String name)
name - the name that will be localized| Method Detail |
|---|
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
l - the listener to be addedpublic void removeTreeModelListener(javax.swing.event.TreeModelListener l)
l - the listener to be removed
protected void fireTreeNodesChanged(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
To indicate the root has changed, childIndices and children will be null.
NOTE: This is a Swing method which must be invoked on the Swing/AWT event thread.
source - the Object responsible for generating the event (typically
the creator of the event object passes this for its value)path - an array of Object identifying the path to the parent of the
modified item(s), where the first element of the array is
the Object stored at the root node and the last element is
the Object stored at the parent nodechildIndices - an array of int that specifies the index values of
the removed items. The indices must be in sorted order,
from lowest to highestchildren - an array of Object containing the inserted, removed, or
changed objectsTreeModelListener.treeNodesChanged(TreeModelEvent)
protected void fireTreeNodesInserted(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
NOTE: This is a Swing method which must be invoked on the Swing/AWT event thread.
source - the Object responsible for generating the event (typically
the creator of the event object passes this for its value)path - an array of Object identifying the path to the parent of the
modified item(s), where the first element of the array is
the Object stored at the root node and the last element is
the Object stored at the parent nodechildIndices - an array of int that specifies the index values of
the removed items. The indices must be in sorted order,
from lowest to highestchildren - an array of Object containing the inserted, removed, or
changed objectsTreeModelListener.treeNodesChanged(TreeModelEvent)
protected void fireTreeNodesRemoved(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
NOTE: This is a Swing method which must be invoked on the Swing/AWT event thread.
source - the Object responsible for generating the event (typically
the creator of the event object passes this for its value)path - an array of Object identifying the path to the parent of the
modified item(s), where the first element of the array is
the Object stored at the root node and the last element is
the Object stored at the parent nodechildIndices - an array of int that specifies the index values of
the removed items. The indices must be in sorted order,
from lowest to highestchildren - an array of Object containing the inserted, removed, or
changed objectsTreeModelListener.treeNodesChanged(TreeModelEvent),
EventListenerListprotected void fireTreeStructureChanged(java.lang.Object[] path)
NOTE: This is a Swing method which must be invoked on the Swing/AWT event thread.
path - an array of Object identifying the path to the parent of the
modified item(s), where the first element of the array is
the Object stored at the root node and the last element is
the Object stored at the parent nodeTreeModelListener.treeStructureChanged(TreeModelEvent)
protected void fireTreeStructureChanged(java.lang.Object source,
java.lang.Object[] path)
NOTE: This is a Swing method which must be invoked on the Swing/AWT event thread.
source - the Object responsible for generating the event (typically
the creator of the event object passes this for its value)path - an array of Object identifying the path to the parent of the
modified item(s), where the first element of the array is
the Object stored at the root node and the last element is
the Object stored at the parent nodeTreeModelListener.treeStructureChanged(TreeModelEvent)
public void fireTreeStructureChanged(java.lang.Object source,
java.lang.Object[] path,
int[] childIndices,
java.lang.Object[] children)
NOTE: This is a Swing method which must be invoked on the Swing/AWT event thread.
source - the Object responsible for generating the event (typically
the creator of the event object passes this for its value)path - an array of Object identifying the path to the parent of the
modified item(s), where the first element of the array is
the Object stored at the root node and the last element is
the Object stored at the parent nodechildIndices - an array of int that specifies the index values of
the removed items. The indices must be in sorted order,
from lowest to highestchildren - an array of Object containing the inserted, removed, or
changed objectsTreeModelListener.treeStructureChanged(TreeModelEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Cookbook |