eShopper
Class eShopperNode

java.lang.Object
  extended byeShopper.eShopperNode
Direct Known Subclasses:
eShopperDate, eShopperIngredient, eShopperMisc, eShopperRecipe, eShopperRoot

public abstract class eShopperNode
extends java.lang.Object

An abstract class to specify the functions and attributes common to all of the nodes on our eShopperList. Subclassed by eShopperRoot, eShopperDate, eShopperRecipe, and eShopperIngredient.

Author:
Jim Laing

Constructor Summary
eShopperNode()
           
 
Method Summary
abstract  java.util.Vector getChildren()
          Gets a vector of children
abstract  java.lang.String getDate()
          Returns any date associated with this node (i.e.
abstract  int nodeID()
          Used to get the unique ID of list items
abstract  java.lang.String toString()
          Gets the String which is used to represent the node in a JTree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

eShopperNode

public eShopperNode()
Method Detail

getChildren

public abstract java.util.Vector getChildren()
Gets a vector of children

Returns:
the children of a node

toString

public abstract java.lang.String toString()
Gets the String which is used to represent the node in a JTree

Returns:
a String representation of a node

getDate

public abstract java.lang.String getDate()
Returns any date associated with this node (i.e. any date ancestor)

Returns:
a string representation of the date

nodeID

public abstract int nodeID()
Used to get the unique ID of list items

Returns:
an int, the database of the node if it is a recipe or ingredient, otherwise 0