net.sf.tacos.demo.tree
Class Item

java.lang.Object
  extended by net.sf.tacos.demo.tree.Item
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Folder

public class Item
extends Object
implements Serializable

Author:
phraktle
See Also:
Serialized Form

Constructor Summary
Item(Folder parent, String name)
          Creates an item with a parent
Item(String name)
          Creates an item
 
Method Summary
 String getName()
          Name of item
 Folder getParent()
          Items parent
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Item

public Item(String name)
Creates an item

Parameters:
name -

Item

public Item(Folder parent,
            String name)
Creates an item with a parent

Parameters:
parent -
name -
Method Detail

getName

public String getName()
Name of item

Returns:

getParent

public Folder getParent()
Items parent

Returns:

toString

public String toString()

Overrides:
toString in class Object