The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Newsbot
Development
Roadmap
Module Owners
Blue Sky
Projects
Status
Tools
Products
Source Code
Binaries
Documentation
License Terms
Bug Reports
Quality
Search
Feedback
Class grendel.widgets.TreePath
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

Copyright © 1998-1999 The Mozilla Organization.