|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakart.app.Category
public class Category
Category class
Constructor Summary | |
---|---|
Category()
Constructor |
|
Category(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
Instantiates the attributes of the Category object from a Record object |
Method Summary | |
---|---|
void |
calculateNumberOfProducts()
Recursively parses through the children of this category and adds the total amount of products contained by the category to the number of products that this category may already have. |
java.lang.Object |
clone()
Clones the current object and all of it's children. |
CategoryIf |
findCategory(int categoryId)
Searches all of the children, grandchildren etc of this object and returns the category object with the given id . |
void |
getAllChildrenIds(java.util.List<java.lang.Integer> childList)
Adds all of the ids of the children, grandchildren etc of this object to the given childList. |
CategoryIf[] |
getChildren()
|
java.lang.String |
getCustom1()
|
java.lang.String |
getCustom2()
|
java.lang.String |
getCustom3()
|
java.lang.String |
getDescription()
|
int |
getId()
|
java.lang.String |
getImage()
|
int |
getLevel()
Top level = 0. |
MiscItemIf[] |
getMiscItems()
Returns the array of Miscellaneous Items associated with this category. |
java.lang.String |
getName()
|
int |
getNumberOfProducts()
|
CategoryIf |
getParent()
|
int |
getParentId()
|
int |
getSortOrder()
|
boolean |
isInvisible()
When invisible, a category is not returned in the category tree. |
boolean |
isSelected()
|
void |
setChildren(CategoryIf[] children)
|
void |
setCustom1(java.lang.String custom1)
|
void |
setCustom2(java.lang.String custom2)
|
void |
setCustom3(java.lang.String custom3)
|
void |
setDescription(java.lang.String description)
|
void |
setId(int id)
|
void |
setImage(java.lang.String image)
|
void |
setInvisible(boolean invisible)
When invisible, a category is not returned in the category tree. |
void |
setLevel(int level)
Top level = 0. |
void |
setMiscItems(MiscItemIf[] miscItems)
|
void |
setName(java.lang.String name)
|
void |
setNumberOfProducts(int numberOfProducts)
|
void |
setParent(CategoryIf parent)
|
void |
setParentId(int parentId)
|
void |
setSelected(boolean selected)
|
void |
setSortOrder(int sortOrder)
|
java.lang.String |
toString()
|
java.lang.String |
toStringBrief()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Category()
public Category(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column names
com.workingdogs.village.DataSetException
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void calculateNumberOfProducts()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringBrief()
public void getAllChildrenIds(java.util.List<java.lang.Integer> childList)
childList
- public CategoryIf findCategory(int categoryId)
categoryId
-
public CategoryIf[] getChildren()
getChildren
in interface CategoryIf
public void setChildren(CategoryIf[] children)
setChildren
in interface CategoryIf
children
- The children to set.public int getId()
getId
in interface CategoryIf
public void setId(int id)
setId
in interface CategoryIf
id
- The id to set.public java.lang.String getImage()
getImage
in interface CategoryIf
public void setImage(java.lang.String image)
setImage
in interface CategoryIf
image
- The image to set.public java.lang.String getName()
getName
in interface CategoryIf
public void setName(java.lang.String name)
setName
in interface CategoryIf
name
- The name to set.public int getNumberOfProducts()
getNumberOfProducts
in interface CategoryIf
public void setNumberOfProducts(int numberOfProducts)
setNumberOfProducts
in interface CategoryIf
numberOfProducts
- The numberOfProducts to set.public int getParentId()
getParentId
in interface CategoryIf
public void setParentId(int parentId)
setParentId
in interface CategoryIf
parentId
- The parentId to set.public int getSortOrder()
getSortOrder
in interface CategoryIf
public void setSortOrder(int sortOrder)
setSortOrder
in interface CategoryIf
sortOrder
- The sortOrder to set.public CategoryIf getParent()
getParent
in interface CategoryIf
public void setParent(CategoryIf parent)
setParent
in interface CategoryIf
parent
- The parent to set.public boolean isSelected()
isSelected
in interface CategoryIf
public void setSelected(boolean selected)
setSelected
in interface CategoryIf
selected
- The selected to set.public int getLevel()
CategoryIf
getLevel
in interface CategoryIf
public void setLevel(int level)
CategoryIf
setLevel
in interface CategoryIf
level
- The level to set.public java.lang.String getCustom1()
getCustom1
in interface CategoryIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface CategoryIf
custom1
- The custom1 to set.public java.lang.String getCustom2()
getCustom2
in interface CategoryIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface CategoryIf
custom2
- The custom2 to set.public java.lang.String getCustom3()
getCustom3
in interface CategoryIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface CategoryIf
custom3
- The custom3 to set.public boolean isInvisible()
CategoryIf
isInvisible
in interface CategoryIf
public void setInvisible(boolean invisible)
CategoryIf
setInvisible
in interface CategoryIf
invisible
- the invisible to setpublic java.lang.String getDescription()
getDescription
in interface CategoryIf
public void setDescription(java.lang.String description)
setDescription
in interface CategoryIf
description
- the description to setpublic MiscItemIf[] getMiscItems()
getMiscItems
in interface CategoryIf
public void setMiscItems(MiscItemIf[] miscItems)
setMiscItems
in interface CategoryIf
miscItems
- the miscItems to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |