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

Public Member Functions

 EntityTree ()
 
void setLoadOnDemand (boolean loadOnDemand)
 
void setRoot (IElephantEntity category)
 
EntityTreeItem addCategory (IElephantEntity category, boolean loadOnDemand)
 
IElephantEntity getSelectedCategory ()
 
void reloadContents ()
 

Detailed Description

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

Definition at line 28 of file EntityTree.java.

Constructor & Destructor Documentation

◆ EntityTree()

org.turro.entities.EntityTree.EntityTree ( )

Definition at line 33 of file EntityTree.java.

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

Member Function Documentation

◆ addCategory()

EntityTreeItem org.turro.entities.EntityTree.addCategory ( IElephantEntity  category,
boolean  loadOnDemand 
)

Definition at line 49 of file EntityTree.java.

49  {
50  EntityTreeItem cat = new EntityTreeItem(category, loadOnDemand);
51  children.appendChild(cat);
52  cat.afterCompose();
53  return cat;
54  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSelectedCategory()

IElephantEntity org.turro.entities.EntityTree.getSelectedCategory ( )

Definition at line 56 of file EntityTree.java.

56  {
57  if(getSelectedItem() instanceof EntityTreeItem ) {
58  return (IElephantEntity) ((EntityTreeItem) getSelectedItem()).getCategory();
59  }
60  return null;
61  }

◆ reloadContents()

void org.turro.entities.EntityTree.reloadContents ( )

Definition at line 68 of file EntityTree.java.

68  {
69  for(Object o : children.getChildren()) {
70  if(o instanceof EntityTreeItem) {
71  ((EntityTreeItem) o).reloadContents();
72  }
73  }
74  }

◆ setLoadOnDemand()

void org.turro.entities.EntityTree.setLoadOnDemand ( boolean  loadOnDemand)

Definition at line 38 of file EntityTree.java.

38  {
39  this.loadOnDemand = loadOnDemand;
40  }

◆ setRoot()

void org.turro.entities.EntityTree.setRoot ( IElephantEntity  category)

Definition at line 42 of file EntityTree.java.

42  {
43  children.getChildren().clear();
44  if(category != null) {
45  addCategory(category, loadOnDemand);
46  }
47  }
EntityTreeItem addCategory(IElephantEntity category, boolean loadOnDemand)
Definition: EntityTree.java:49
Here is the call graph for this function:

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