org.pentaho.reporting.engine.classic.core.modules.gui.base.internal
Class CategoryTreeItem

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.gui.base.internal.CategoryTreeItem
All Implemented Interfaces:
Comparable

public class CategoryTreeItem
extends Object
implements Comparable

Creation-Date: 01.12.2006, 20:01:32

Author:
Thomas Morgner

Constructor Summary
CategoryTreeItem(ActionCategory category)
           
 
Method Summary
 void add(CategoryTreeItem item)
           
 int compareTo(Object o)
          Compares this object with the specified object for order.
 boolean equals(Object o)
           
 ActionCategory getCategory()
           
 CategoryTreeItem[] getChilds()
           
 String getName()
           
 CategoryTreeItem getParent()
           
 int hashCode()
           
 void setParent(CategoryTreeItem parent)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CategoryTreeItem

public CategoryTreeItem(ActionCategory category)
Method Detail

getName

public String getName()

getParent

public CategoryTreeItem getParent()

setParent

public void setParent(CategoryTreeItem parent)

getCategory

public ActionCategory getCategory()

add

public void add(CategoryTreeItem item)

getChilds

public CategoryTreeItem[] getChilds()

compareTo

public int compareTo(Object o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Specified by:
compareTo in interface Comparable
Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
ClassCastException - if the specified object's type prevents it from being compared to this Object.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object