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

Public Member Functions

 EntityTreeItem (IElephantEntity entity, boolean loadOnDemand)
 
EntityTree getTree ()
 
IElephantEntity getCategory ()
 
void showContents ()
 
void reloadContents ()
 
boolean isLeaf ()
 
EntityTreeItem addCategory (IElephantEntity category, boolean loadOnDemand)
 
boolean isLoadOnDemand ()
 
void setLoadOnDemand (boolean loadOnDemand)
 
void afterCompose ()
 

Detailed Description

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

Definition at line 34 of file EntityTreeItem.java.

Constructor & Destructor Documentation

◆ EntityTreeItem()

org.turro.entities.EntityTreeItem.EntityTreeItem ( IElephantEntity  entity,
boolean  loadOnDemand 
)

Definition at line 39 of file EntityTreeItem.java.

39  {
40  super();
41  this.loadOnDemand = loadOnDemand;
42  setValue(entity);
43  setLabel(entity.getName());
44  setTooltiptext(getLabel());
45  }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ addCategory()

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

Definition at line 88 of file EntityTreeItem.java.

88  {
89  EntityTreeItem cat = new EntityTreeItem(category, loadOnDemand);
90  children.appendChild(cat);
91  cat.afterCompose();
92  return cat;
93  }
EntityTreeItem(IElephantEntity entity, boolean loadOnDemand)
Here is the call graph for this function:

◆ afterCompose()

void org.turro.entities.EntityTreeItem.afterCompose ( )

Definition at line 123 of file EntityTreeItem.java.

123  {
124  initLoadOnDemand();
125  addChildrenSpace();
126  }
Here is the caller graph for this function:

◆ getCategory()

IElephantEntity org.turro.entities.EntityTreeItem.getCategory ( )

Definition at line 52 of file EntityTreeItem.java.

52  {
53  return (IElephantEntity) getValue();
54  }

◆ getTree()

EntityTree org.turro.entities.EntityTreeItem.getTree ( )

Definition at line 48 of file EntityTreeItem.java.

48  {
49  return (EntityTree) super.getTree();
50  }

◆ isLeaf()

boolean org.turro.entities.EntityTreeItem.isLeaf ( )

Definition at line 68 of file EntityTreeItem.java.

68  {
69  return getEntityChildren().isEmpty();
70  }

◆ isLoadOnDemand()

boolean org.turro.entities.EntityTreeItem.isLoadOnDemand ( )

Definition at line 114 of file EntityTreeItem.java.

114  {
115  return loadOnDemand;
116  }

◆ reloadContents()

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

Definition at line 61 of file EntityTreeItem.java.

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

◆ setLoadOnDemand()

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

Definition at line 118 of file EntityTreeItem.java.

118  {
119  this.loadOnDemand = loadOnDemand;
120  }

◆ showContents()

void org.turro.entities.EntityTreeItem.showContents ( )

Definition at line 56 of file EntityTreeItem.java.

56  {
57  fillCategory();
58  setOpen(true);
59  }
Here is the caller graph for this function:

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