org.argouml.ui
Class TreeModelSupport

java.lang.Object
  extended byorg.argouml.ui.PerspectiveSupport
      extended byorg.argouml.ui.TreeModelSupport
Direct Known Subclasses:
TreeModelComposite

public class TreeModelSupport
extends PerspectiveSupport

Helper class for tree models that provides tree event handling.

Since:
0.13.5, Created on 15 April 2003

Field Summary
private  EventListenerList listenerList
          tree model listener list.
 
Fields inherited from class org.argouml.ui.PerspectiveSupport
 
Constructor Summary
TreeModelSupport(String name)
          The constructor.
 
Method Summary
 void addTreeModelListener(TreeModelListener l)
          Listener management.
protected  void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children)
          Notify all listeners that have registered interest for notification on this event type.
protected  void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children)
          Notify all listeners that have registered interest for notification on this event type.
protected  void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)
          Notify all listeners that have registered interest for notification on this event type.
 void fireTreeStructureChanged()
           
protected  void fireTreeStructureChanged(Object[] path)
          Notify all listeners that have registered interest for notification on this event type.
protected  void fireTreeStructureChanged(Object source, Object[] path)
           
 void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)
          Notify all listeners that have registered interest for notification on this event type.
 void fireTreeStructureChanged(TreePath path)
           
 void removeTreeModelListener(TreeModelListener l)
          Listener management.
 
Methods inherited from class org.argouml.ui.PerspectiveSupport
addSubTreeModel, getGoRules, getName, getSubTreeModels, registerRule, removeSubTreeModel, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

listenerList

private EventListenerList listenerList
tree model listener list.

Constructor Detail

TreeModelSupport

public TreeModelSupport(String name)
The constructor.

Parameters:
name - the name that will be localized
Method Detail

addTreeModelListener

public void addTreeModelListener(TreeModelListener l)
Listener management.

Parameters:
l - the listener to be added

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener l)
Listener management.

Parameters:
l - the listener to be removed

fireTreeNodesChanged

protected void fireTreeNodesChanged(Object source,
                                    Object[] path,
                                    int[] childIndices,
                                    Object[] children)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

See Also:
EventListenerList

fireTreeNodesInserted

protected void fireTreeNodesInserted(Object source,
                                     Object[] path,
                                     int[] childIndices,
                                     Object[] children)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

See Also:
EventListenerList

fireTreeNodesRemoved

protected void fireTreeNodesRemoved(Object source,
                                    Object[] path,
                                    int[] childIndices,
                                    Object[] children)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

See Also:
EventListenerList

fireTreeStructureChanged

public void fireTreeStructureChanged()
See Also:
fireTreeStructureChanged(Object, Object[], int[], Object[])

fireTreeStructureChanged

public void fireTreeStructureChanged(TreePath path)
Parameters:
path -
See Also:
fireTreeStructureChanged(Object, Object[], int[], Object[])

fireTreeStructureChanged

protected void fireTreeStructureChanged(Object[] path)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

See Also:
EventListenerList

fireTreeStructureChanged

protected void fireTreeStructureChanged(Object source,
                                        Object[] path)
See Also:
fireTreeStructureChanged(Object, Object[], int[], Object[])

fireTreeStructureChanged

public void fireTreeStructureChanged(Object source,
                                     Object[] path,
                                     int[] childIndices,
                                     Object[] children)
Notify all listeners that have registered interest for notification on this event type. The event instance is lazily created using the parameters passed into the fire method.

See Also:
EventListenerList


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook