SmartFrog 3.10.000

org.smartfrog.services.trace
Class BrowseTreeModelSF

java.lang.Object
  extended by org.smartfrog.services.trace.BrowseTreeModelSF
All Implemented Interfaces:
javax.swing.tree.TreeModel

public class BrowseTreeModelSF
extends java.lang.Object
implements javax.swing.tree.TreeModel

Tree model to show a graphical reprsentation of Tracing information generated by SFTRace


Field Summary
protected  java.util.Vector listeners
          A vector of TreeModelListeners.
 
Constructor Summary
BrowseTreeModelSF()
          Constructor for the BrowseTreeModelSF object.
BrowseTreeModelSF(java.lang.String DN)
          Constructor for the BrowseTreeModelSF object.
 
Method Summary
 void add(java.lang.String node)
          Adds a new node.
 void addTreeModelListener(javax.swing.event.TreeModelListener l)
          Implements addTreeModelListener () method defined in java swing TreeModel.
 java.lang.Object getChild(java.lang.Object parent, int index)
          Implements getChild () method defined in java swing TreeModel.
 int getChildCount(java.lang.Object parent)
          Gets the childCount attribute of the BrowseTreeModelSF object.
 int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
          Gets the indexOfChild attribute of the BrowseTreeModelSF object.
 java.lang.Object getRoot()
          Gets the root attribute of the BrowseTreeModelSF object.
 boolean isLeaf(java.lang.Object node)
          Gets the leaf attribute of the BrowseTreeModelSF object.
 void removeTreeModelListener(javax.swing.event.TreeModelListener l)
          Implements removeTreeModelListener () method defined in java swing TreeModel.
 java.lang.String toString()
          Return a textual representation of the File object.
 void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
          Changes the value of the path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

listeners

protected java.util.Vector listeners
A vector of TreeModelListeners.

Constructor Detail

BrowseTreeModelSF

public BrowseTreeModelSF()
Constructor for the BrowseTreeModelSF object.


BrowseTreeModelSF

public BrowseTreeModelSF(java.lang.String DN)
Constructor for the BrowseTreeModelSF object.

Parameters:
DN - dN attribute
Method Detail

getRoot

public java.lang.Object getRoot()
Gets the root attribute of the BrowseTreeModelSF object.

Specified by:
getRoot in interface javax.swing.tree.TreeModel
Returns:
The root value

getChild

public java.lang.Object getChild(java.lang.Object parent,
                                 int index)
Implements getChild () method defined in java swing TreeModel.

Specified by:
getChild in interface javax.swing.tree.TreeModel
Parameters:
parent - parent
index - index
Returns:
The child value

getChildCount

public int getChildCount(java.lang.Object parent)
Gets the childCount attribute of the BrowseTreeModelSF object.

Specified by:
getChildCount in interface javax.swing.tree.TreeModel
Parameters:
parent - parent
Returns:
The childCount value

isLeaf

public boolean isLeaf(java.lang.Object node)
Gets the leaf attribute of the BrowseTreeModelSF object.

Specified by:
isLeaf in interface javax.swing.tree.TreeModel
Parameters:
node - the node whose leaf attribute is returned
Returns:
The leaf value

valueForPathChanged

public void valueForPathChanged(javax.swing.tree.TreePath path,
                                java.lang.Object newValue)
Changes the value of the path.

Specified by:
valueForPathChanged in interface javax.swing.tree.TreeModel
Parameters:
path - the path
newValue - new value

getIndexOfChild

public int getIndexOfChild(java.lang.Object parent,
                           java.lang.Object child)
Gets the indexOfChild attribute of the BrowseTreeModelSF object.

Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel
Parameters:
parent - parent
child - child
Returns:
The indexOfChild value

addTreeModelListener

public void addTreeModelListener(javax.swing.event.TreeModelListener l)
Implements addTreeModelListener () method defined in java swing TreeModel.

Specified by:
addTreeModelListener in interface javax.swing.tree.TreeModel
Parameters:
l - The feature to be added to the TreeModelListener attribute
See Also:
removeTreeModelListener(javax.swing.event.TreeModelListener)

removeTreeModelListener

public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
Implements removeTreeModelListener () method defined in java swing TreeModel.

Specified by:
removeTreeModelListener in interface javax.swing.tree.TreeModel
Parameters:
l - TreeModelListener object
See Also:
addTreeModelListener(javax.swing.event.TreeModelListener)

add

public void add(java.lang.String node)
Adds a new node.

Parameters:
node - node to be added

toString

public java.lang.String toString()
Return a textual representation of the File object.

Overrides:
toString in class java.lang.Object
Returns:
textual representation of the File object

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP