org.zaval.data
Class Item

java.lang.Object
  |
  +--org.zaval.data.Item

public class Item
extends java.lang.Object

This class is used to represent tree model items. Actually this is very simple stubb that stores a value.


Constructor Summary
Item()
          Constructs a new item.
Item(Item item)
          Constructs a new item as a copy of the given item.
Item(java.lang.Object value)
          Constructs a new item with the given initial value.
 
Method Summary
 java.lang.Object getValue()
          Gets the value of this item.
protected  void setValue(java.lang.Object v)
          Sets the specified value for this item.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Item

public Item()
Constructs a new item. The item value is set to null.

Item

public Item(java.lang.Object value)
Constructs a new item with the given initial value.
Parameters:
value - the initial value of the item value.

Item

public Item(Item item)
Constructs a new item as a copy of the given item.
Parameters:
item - the given item.
Method Detail

getValue

public java.lang.Object getValue()
Gets the value of this item.
Returns:
an item value. The value can be null.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setValue

protected void setValue(java.lang.Object v)
Sets the specified value for this item.
Parameters:
v - the specified value.


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org