BrightSide Workbench Full Report + Source Code
org.turro.zul.groupit.GroupItItem Class Reference
Inheritance diagram for org.turro.zul.groupit.GroupItItem:
Collaboration diagram for org.turro.zul.groupit.GroupItItem:

Public Member Functions

 GroupItItem (GroupIt group, boolean loadOnDemand, String entityPath)
 
GroupItTree getTree ()
 
GroupIt getGroup ()
 
void showContents ()
 
void reloadContents ()
 
boolean isLeaf ()
 
GroupItItem addGroup (GroupIt group, 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 35 of file GroupItItem.java.

Constructor & Destructor Documentation

◆ GroupItItem()

org.turro.zul.groupit.GroupItItem.GroupItItem ( GroupIt  group,
boolean  loadOnDemand,
String  entityPath 
)

Definition at line 41 of file GroupItItem.java.

41  {
42  super();
43  this.loadOnDemand = loadOnDemand;
44  this.entityPath = entityPath;
45  setValue(group);
46  setLabel(group == null ? I_.get("All") : group.getName());
47  setTooltiptext(getLabel());
48  }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ addGroup()

GroupItItem org.turro.zul.groupit.GroupItItem.addGroup ( GroupIt  group,
boolean  loadOnDemand 
)

Definition at line 104 of file GroupItItem.java.

104  {
105  GroupItItem cat = new GroupItItem(group, loadOnDemand, entityPath);
106  children.appendChild(cat);
107  cat.afterCompose();
108  return cat;
109  }
GroupItItem(GroupIt group, boolean loadOnDemand, String entityPath)
Here is the call graph for this function:

◆ afterCompose()

void org.turro.zul.groupit.GroupItItem.afterCompose ( )

Definition at line 150 of file GroupItItem.java.

150  {
151  initLoadOnDemand();
152  addChildrenSpace();
153  }
Here is the caller graph for this function:

◆ getGroup()

GroupIt org.turro.zul.groupit.GroupItItem.getGroup ( )

Definition at line 55 of file GroupItItem.java.

55  {
56  return (GroupIt) getValue();
57  }
Here is the caller graph for this function:

◆ getTree()

GroupItTree org.turro.zul.groupit.GroupItItem.getTree ( )

Definition at line 51 of file GroupItItem.java.

51  {
52  return (GroupItTree) super.getTree();
53  }
Here is the caller graph for this function:

◆ isLeaf()

boolean org.turro.zul.groupit.GroupItItem.isLeaf ( )

Definition at line 75 of file GroupItItem.java.

75  {
76  GroupIt group = getGroup();
77  if(Strings.isBlank(entityPath)) {
78  return group == null ?
79  GroupIt.roots(getTree().getCategory()).isEmpty() :
80  group.children().isEmpty();
81  } else {
82  return group == null ?
83  GroupIt.roots(getTree().getCategory(), entityPath).isEmpty() :
84  group.children(entityPath).isEmpty();
85  }
86  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isLoadOnDemand()

boolean org.turro.zul.groupit.GroupItItem.isLoadOnDemand ( )

Definition at line 141 of file GroupItItem.java.

141  {
142  return loadOnDemand;
143  }

◆ reloadContents()

void org.turro.zul.groupit.GroupItItem.reloadContents ( )

Definition at line 64 of file GroupItItem.java.

64  {
65  if(!isLeaf() && children == null) {
66  children = new Treechildren();
67  appendChild(children);
68  }
69  if(children != null) {
70  children.getChildren().clear();
71  showContents();
72  }
73  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLoadOnDemand()

void org.turro.zul.groupit.GroupItItem.setLoadOnDemand ( boolean  loadOnDemand)

Definition at line 145 of file GroupItItem.java.

145  {
146  this.loadOnDemand = loadOnDemand;
147  }

◆ showContents()

void org.turro.zul.groupit.GroupItItem.showContents ( )

Definition at line 59 of file GroupItItem.java.

59  {
60  fillGroup();
61  setOpen(true);
62  }
Here is the caller graph for this function:

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