You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.widgets.TreePath

java.lang.Object
   |
   +----grendel.widgets.TreePath

Object that represents the path through a tree to a node. Provides equals and hash methods to ensure expected behaviors.


public class  TreePath
     extends java.lang.Object
{
          // Fields 1
     Object[] fPath;

          // Constructors 2
     public TreePath(Object[]);
     public TreePath(Vector);

          // Methods 5
     public boolean equals(Object);
     public int getLength();
     public Object[] getPath();
     public Object getTip();
     public int hashCode();
}



Fields


fPath

   Object[] fPath



Constructors


TreePath

   public TreePath(Object[] aPath) 

Constructs a TreePath from an array of nodes



TreePath

   public TreePath(Vector aPath) 

Constructs a TreePath from a Vector of nodes




Methods


getPath

   public Object[] getPath() 

Returns the tree path associated with this object.



getTip

   public Object getTip() 

Returns the last node in the path



getLength

   public int getLength() 

Returns the length of the path



equals

   public boolean equals(Object aObject) 

Overloaded so that different objects with same contents are considered equal.

Overrides:
equals in class Object


hashCode

   public int hashCode() 

Overloaded so different objects with the same contents hash to the same value

Overrides:
hashCode in class Object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4