BrightSide Workbench Full Report + Source Code
org.turro.dossier.dossier.CategoryTree Class Reference
Inheritance diagram for org.turro.dossier.dossier.CategoryTree:
Collaboration diagram for org.turro.dossier.dossier.CategoryTree:

Public Member Functions

 CategoryTree ()
 
void setLoadOnDemand (boolean loadOnDemand)
 
CategoryItem addCategory (Category category, boolean loadOnDemand)
 
Category 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 29 of file dossier/CategoryTree.java.

Constructor & Destructor Documentation

◆ CategoryTree()

org.turro.dossier.dossier.CategoryTree.CategoryTree ( )

Definition at line 34 of file dossier/CategoryTree.java.

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

Member Function Documentation

◆ addCategory()

CategoryItem org.turro.dossier.dossier.CategoryTree.addCategory ( Category  category,
boolean  loadOnDemand 
)

Definition at line 43 of file dossier/CategoryTree.java.

43  {
44  CategoryItem cat = new CategoryItem(category, loadOnDemand);
45  children.appendChild(cat);
46  cat.afterCompose();
47  return cat;
48  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ afterCompose()

void org.turro.dossier.dossier.CategoryTree.afterCompose ( )

Definition at line 71 of file dossier/CategoryTree.java.

71  {
72  CategoryItem cat = addCategory(null, loadOnDemand);
73  cat.showContents();
74  }
CategoryItem addCategory(Category category, boolean loadOnDemand)
Here is the call graph for this function:

◆ getSelectedCategory()

Category org.turro.dossier.dossier.CategoryTree.getSelectedCategory ( )

Definition at line 50 of file dossier/CategoryTree.java.

50  {
51  if(getSelectedItem() instanceof CategoryItem ) {
52  return (Category) ((CategoryItem) getSelectedItem()).getCategory();
53  }
54  return null;
55  }

◆ reloadContents()

void org.turro.dossier.dossier.CategoryTree.reloadContents ( )

Definition at line 62 of file dossier/CategoryTree.java.

62  {
63  for(Object o : children.getChildren()) {
64  if(o instanceof CategoryItem) {
65  ((CategoryItem) o).reloadContents();
66  }
67  }
68  }

◆ setLoadOnDemand()

void org.turro.dossier.dossier.CategoryTree.setLoadOnDemand ( boolean  loadOnDemand)

Definition at line 39 of file dossier/CategoryTree.java.

39  {
40  this.loadOnDemand = loadOnDemand;
41  }

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