org.norther.tammi.root.rt.util
Class TreeProperty

java.lang.Object
  extended by org.norther.tammi.root.rt.util.TreeProperty
All Implemented Interfaces:
Serializable

public class TreeProperty
extends Object
implements Serializable

A attribute property for node variables of a tree.

Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
TreeProperty(int l, boolean b)
          Constructs a new tree property.
 
Method Summary
 int getLevel()
          Gets the level of the tree node.
 boolean isBranch()
          Checks whether the tree node is a brach.
 boolean isDisabled()
          Checks whether the tree node is disabled.
 boolean isExpanded()
          Checks whether the tree node is expanded.
 void setDisabled(boolean b)
          Sets whether the tree node is disabled.
 void setExpanded(boolean b)
          Sets whether the tree node is expanded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeProperty

public TreeProperty(int l,
                    boolean b)
Constructs a new tree property.

Parameters:
l - the tree level.
b - the branch option.
Method Detail

getLevel

public int getLevel()
Gets the level of the tree node.

Returns:
the level.

isBranch

public boolean isBranch()
Checks whether the tree node is a brach.

Returns:
true for a branch, false otherwise.

isExpanded

public boolean isExpanded()
Checks whether the tree node is expanded.

Returns:
true if expanded, false otherwise.

setExpanded

public void setExpanded(boolean b)
Sets whether the tree node is expanded.

Parameters:
b - true if expanded, false otherwise.

isDisabled

public boolean isDisabled()
Checks whether the tree node is disabled.

Returns:
true if disabled, false otherwise.

setDisabled

public void setDisabled(boolean b)
Sets whether the tree node is disabled.

Parameters:
b - true if disabled, false otherwise.


Copyright © 2004 The Norther Organization. All rights reserved.