BrightSide Workbench Full Report + Source Code
org.turro.publication.zul.tree.PubCategoryItem Class Reference
Inheritance diagram for org.turro.publication.zul.tree.PubCategoryItem:
Collaboration diagram for org.turro.publication.zul.tree.PubCategoryItem:

Public Member Functions

 PubCategoryItem (PublicationCategory category)
 
PubCategoryTree getTree ()
 
PublicationCategory getCategory ()
 
void showContents ()
 
void reloadContents ()
 
boolean isLeaf ()
 
PubCategoryItem addCategory (PublicationCategory category)
 
Collection< PublicationCategorygetCategoryChildren ()
 
void afterCompose ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file PubCategoryItem.java.

Constructor & Destructor Documentation

◆ PubCategoryItem()

org.turro.publication.zul.tree.PubCategoryItem.PubCategoryItem ( PublicationCategory  category)

Definition at line 37 of file PubCategoryItem.java.

37  {
38  super();
39  setValue(category);
40  setLabel(category == null ? I_.get("All") : category.getName());
41  setTooltiptext(getLabel());
42  }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ addCategory()

PubCategoryItem org.turro.publication.zul.tree.PubCategoryItem.addCategory ( PublicationCategory  category)

Definition at line 69 of file PubCategoryItem.java.

69  {
70  PubCategoryItem cat = new PubCategoryItem(category);
71  children.appendChild(cat);
72  cat.afterCompose();
73  return cat;
74  }
PubCategoryItem(PublicationCategory category)
Here is the call graph for this function:

◆ afterCompose()

void org.turro.publication.zul.tree.PubCategoryItem.afterCompose ( )

Definition at line 98 of file PubCategoryItem.java.

98  {
99  addChildrenSpace();
100  }
Here is the caller graph for this function:

◆ getCategory()

PublicationCategory org.turro.publication.zul.tree.PubCategoryItem.getCategory ( )

Definition at line 49 of file PubCategoryItem.java.

49  {
50  return (PublicationCategory) getValue();
51  }
Here is the caller graph for this function:

◆ getCategoryChildren()

Collection<PublicationCategory> org.turro.publication.zul.tree.PubCategoryItem.getCategoryChildren ( )

Definition at line 93 of file PubCategoryItem.java.

93  {
94  return PublicationCategories.getPublicationCategories();
95  }
Here is the call graph for this function:

◆ getTree()

PubCategoryTree org.turro.publication.zul.tree.PubCategoryItem.getTree ( )

Definition at line 45 of file PubCategoryItem.java.

45  {
46  return (PubCategoryTree) super.getTree();
47  }

◆ isLeaf()

boolean org.turro.publication.zul.tree.PubCategoryItem.isLeaf ( )

Definition at line 65 of file PubCategoryItem.java.

65  {
66  return getCategory() != null;
67  }
Here is the call graph for this function:

◆ reloadContents()

void org.turro.publication.zul.tree.PubCategoryItem.reloadContents ( )

Definition at line 58 of file PubCategoryItem.java.

58  {
59  if(children != null) {
60  children.getChildren().clear();
61  showContents();
62  }
63  }
Here is the call graph for this function:

◆ showContents()

void org.turro.publication.zul.tree.PubCategoryItem.showContents ( )

Definition at line 53 of file PubCategoryItem.java.

53  {
54  fillCategory();
55  setOpen(true);
56  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: