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

Public Member Functions

 PubCategoryTree ()
 
PubCategoryItem addCategory (PublicationCategory category)
 
PublicationCategory getSelectedCategory ()
 
void reloadContents ()
 
void afterCompose ()
 

Detailed Description

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

Definition at line 30 of file PubCategoryTree.java.

Constructor & Destructor Documentation

◆ PubCategoryTree()

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

Definition at line 34 of file PubCategoryTree.java.

34  {
35  super();
36  addChildrenSpace();
37  }

Member Function Documentation

◆ addCategory()

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

Definition at line 39 of file PubCategoryTree.java.

39  {
40  PubCategoryItem cat = new PubCategoryItem(category);
41  children.appendChild(cat);
42  cat.afterCompose();
43  return cat;
44  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ afterCompose()

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

Definition at line 67 of file PubCategoryTree.java.

67  {
68  PubCategoryItem cat = addCategory(null);
69  cat.showContents();
70  }
PubCategoryItem addCategory(PublicationCategory category)
Here is the call graph for this function:

◆ getSelectedCategory()

PublicationCategory org.turro.publication.zul.tree.PubCategoryTree.getSelectedCategory ( )

Definition at line 46 of file PubCategoryTree.java.

46  {
47  if(getSelectedItem() instanceof PubCategoryItem ) {
48  return (PublicationCategory) ((PubCategoryItem) getSelectedItem()).getCategory();
49  }
50  return null;
51  }

◆ reloadContents()

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

Definition at line 58 of file PubCategoryTree.java.

58  {
59  for(Object o : children.getChildren()) {
60  if(o instanceof PubCategoryItem) {
61  ((PubCategoryItem) o).reloadContents();
62  }
63  }
64  }

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