|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eShopper.eShopperNode eShopper.eShopperRoot
This class takes care of all the view stuff and is consequently the most messy. Other than that, it is fairly straightforward.
Constructor Summary | |
eShopperRoot(int view,
int listID,
eShopperDB db)
constructor |
Method Summary | |
boolean |
doCombine()
Queries database and sees whether combining is configured |
java.util.Vector |
getChildren()
Gets all of the immediate children of the root node |
java.lang.String |
getDate()
There is never a date associated with a root node |
java.util.Vector |
getDateViewVector()
Gets the children of the root node when the view is set to DATE |
java.util.Vector |
getItemViewVector()
Gets the children of the root node when the view is set to ITEM based upon the value of "combine" in the configure table |
java.util.Vector |
getRecipeViewVector()
Gets the children of the root node when the view is set to RECIPE |
int |
getView()
Gets the current view |
int |
nodeID()
A root node is uniquely IDed as a node value of -1 |
void |
setView(int view)
Sets the current view |
java.lang.String |
toString()
Gets the name of the list as set in the database and uses it as the name of the root node |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public eShopperRoot(int view, int listID, eShopperDB db)
Method Detail |
public java.util.Vector getChildren()
getChildren
in class eShopperNode
public java.lang.String toString()
toString
in class eShopperNode
public java.lang.String getDate()
getDate
in class eShopperNode
public int getView()
public void setView(int view)
view
- an int corresponding to one of the static
view values (DATE, RECIPE, or ITEM)public int nodeID()
nodeID
in class eShopperNode
public java.util.Vector getDateViewVector()
public java.util.Vector getRecipeViewVector()
public java.util.Vector getItemViewVector()
public boolean doCombine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |