org.openswing.swing.pivottable.java
Class GlobalColGenericNode

java.lang.Object
  extended byorg.openswing.swing.pivottable.java.GlobalColGenericNode
All Implemented Interfaces:
java.io.Serializable

public class GlobalColGenericNode
extends java.lang.Object
implements java.io.Serializable

Title: OpenSwing Framework

Description: Column field node: contains its children nodes; used in pivot table.

Copyright: Copyright (C) 2006 Mauro Carniel

This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it

See Also:
Serialized Form

Constructor Summary
GlobalColGenericNode()
           
GlobalColGenericNode(GenericNodeKey vpath)
           
 
Method Summary
 void add(GlobalColGenericNode childNode)
          Add a child node to this.
 boolean equals(java.lang.Object obj)
           
 GlobalColGenericNode getChildren(int index)
           
 int getChildrenCount()
           
 int getLevel()
           
 java.lang.Object getValue()
           
 int hashCode()
           
 boolean isNodeExpanded()
           
 boolean isRootNode()
           
 void remove(GlobalColGenericNode childNode)
          Add a child node to this.
 void setLevel(int level)
          Set the depth level.
 void setNodeExpanded(boolean nodeExpanded)
          Define if current node is expanded.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalColGenericNode

public GlobalColGenericNode()

GlobalColGenericNode

public GlobalColGenericNode(GenericNodeKey vpath)
Method Detail

add

public final void add(GlobalColGenericNode childNode)
Add a child node to this.

Parameters:
childNode - GenericNode to add

remove

public final void remove(GlobalColGenericNode childNode)
Add a child node to this.

Parameters:
childNode - GenericNode to add

getChildrenCount

public final int getChildrenCount()
Returns:
children number

getChildren

public final GlobalColGenericNode getChildren(int index)
Parameters:
index - children index
Returns:
children

isNodeExpanded

public final boolean isNodeExpanded()
Returns:
define if current node is expanded

setNodeExpanded

public final void setNodeExpanded(boolean nodeExpanded)
Define if current node is expanded.

Parameters:
nodeExpanded - define if current node is expanded

equals

public final boolean equals(java.lang.Object obj)

hashCode

public final int hashCode()

getValue

public final java.lang.Object getValue()
Returns:
node value

isRootNode

public final boolean isRootNode()
Returns:
true if this is a root node

getLevel

public final int getLevel()
Returns:
depth level

setLevel

public final void setLevel(int level)
Set the depth level.

Parameters:
level - depth level