eShopper
Class eShopperRecipe

java.lang.Object
  extended byeShopper.eShopperNode
      extended byeShopper.eShopperRecipe

public class eShopperRecipe
extends eShopperNode

eShopperRecipe has eShopperIngredients as children. It is a subclass of eShopperNode.

Author:
Jim Laing

Constructor Summary
eShopperRecipe(int nodeID, int recipeID, int listID, eShopperDB db)
           
 
Method Summary
 java.util.Vector getChildren()
          This returns the vector of the children of the recipe.
 java.lang.String getDate()
          This returns the date associated with the recipe.
 int nodeID()
          The unique ID of this recipe associated with this list
 int recipeID()
          Used to get the ID which identifies this recipe
 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

eShopperRecipe

public eShopperRecipe(int nodeID,
                      int recipeID,
                      int listID,
                      eShopperDB db)
Method Detail

getChildren

public java.util.Vector getChildren()
This returns the vector of the children of the recipe.

Specified by:
getChildren in class eShopperNode
Returns:
the children of the recipe

toString

public java.lang.String toString()
Description copied from class: eShopperNode
Gets the String which is used to represent the node in a JTree

Specified by:
toString in class eShopperNode
Returns:
a String representation of a node

nodeID

public int nodeID()
The unique ID of this recipe associated with this list

Specified by:
nodeID in class eShopperNode
Returns:
an int representing this node in the recipelist table

recipeID

public int recipeID()
Used to get the ID which identifies this recipe

Returns:
the ID of this recipe in the recipe table

getDate

public java.lang.String getDate()
This returns the date associated with the recipe.

Specified by:
getDate in class eShopperNode
Returns:
A string representation of the date, or an empty string if it is unassigned.