|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.ds.fw.types.FwSimpleObject
|
+--com.ds.fw.dv.FwCatTree
| Field Summary | |
long |
cat
The category id |
java.lang.String |
fi_cat
|
java.lang.String |
fi_cat1
|
java.lang.String |
fi_id
|
java.lang.String |
fi_id1
|
java.lang.String |
fi_name
|
java.lang.String |
fi_name1
|
java.lang.String |
img_nd0
|
java.lang.String |
img_nd1
|
java.lang.String |
img_nm1
|
java.lang.String |
img_np0
|
int |
max_view_items
The maximum number of the items that can be viewed in the tree. |
int |
maxLevel
The maximum number of levels that the category tree can contain |
java.lang.String |
nextLine
A string containing the html code for getting at the next line in an html file |
java.lang.String |
otmest
The offset - the space from a category to its subcategory in the tree |
int |
page
The maximum number of the items that can be viewed in the tree. |
java.lang.String |
path_images
The url to the image , that are shown before the name of the node |
long |
rootcat
The root id |
java.lang.String |
sCat
|
java.lang.String |
sFile
|
java.lang.String |
sOP
|
java.lang.String |
SQL
|
| Constructor Summary | |
FwCatTree()
The constructor for this class |
|
| Method Summary | |
com.ds.fw.beans.FwBaseBean |
getCat(long id)
Gets a category |
com.ds.fw.beans.FwBaseBean |
getCatElements(long id)
Gets the category's elements |
java.lang.String |
getOtmest(int level)
Gets the offset(the space between a category and the root) |
java.lang.String |
getTreeList()
Generate the html code for the visualization of the category's tree. |
java.lang.String |
getTreeList(int level,
java.util.Vector vec,
java.lang.String s)
Generate the html code for the visualization of the category's tree. |
java.util.Vector |
getTreePath(long iCat,
java.util.Vector vec)
Gets the path from the root to a given node of the tree. |
int |
haveCatInCat(long id)
Check if a category has a subcategory |
void |
initParameters()
Initsialize the fields . |
| Methods inherited from class com.ds.fw.types.FwSimpleObject |
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, postCopy, printStackTrace, toString, toStringValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public long rootcat
public long cat
public int max_view_items
public int page
public java.lang.String otmest
public java.lang.String nextLine
public int maxLevel
public java.lang.String path_images
public java.lang.String img_nm1
public java.lang.String img_nd1
public java.lang.String img_np0
public java.lang.String img_nd0
public java.lang.String SQL
public java.lang.String sOP
public java.lang.String sFile
public java.lang.String sCat
public java.lang.String fi_id
public java.lang.String fi_id1
public java.lang.String fi_name
public java.lang.String fi_name1
public java.lang.String fi_cat
public java.lang.String fi_cat1
| Constructor Detail |
public FwCatTree()
| Method Detail |
public void initParameters()
public java.util.Vector getTreePath(long iCat,
java.util.Vector vec)
iCat - the category id , which path we want to receivevec -
public int haveCatInCat(long id)
id - the category's id
public com.ds.fw.beans.FwBaseBean getCatElements(long id)
id - the category's id
public com.ds.fw.beans.FwBaseBean getCat(long id)
id - the category id
public java.lang.String getOtmest(int level)
level - the category's level
public java.lang.String getTreeList()
getTreeList(int, Vector, String)
public java.lang.String getTreeList(int level,
java.util.Vector vec,
java.lang.String s)
level - the category's levelvec - s - string , containing some html code, the code for the visualization of the category's
tree is appended at its end.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||