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

Public Member Functions

 GroupItTree ()
 
String getCategory ()
 
void setCategory (String category)
 
String getEntityPath ()
 
void setEntityPath (String entityPath)
 
GroupItItem addGroup (GroupIt group, boolean loadOnDemand)
 
GroupIt getSelectedGroup ()
 
void setSelectedGroup (GroupIt group)
 
void changeSelectedGroup (GroupIt group)
 
void reloadContents ()
 
void afterCompose ()
 

Detailed Description

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

Definition at line 31 of file GroupItTree.java.

Constructor & Destructor Documentation

◆ GroupItTree()

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

Definition at line 36 of file GroupItTree.java.

36  {
37  super();
38  addChildrenSpace();
39  }

Member Function Documentation

◆ addGroup()

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

Definition at line 59 of file GroupItTree.java.

59  {
60  GroupItItem grp = new GroupItItem(group, loadOnDemand, entityPath);
61  children.appendChild(grp);
62  grp.afterCompose();
63  return grp;
64  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ afterCompose()

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

Definition at line 111 of file GroupItTree.java.

111  {
112  GroupItItem gpr = addGroup(null, false);
113  gpr.showContents();
114  }
GroupItItem addGroup(GroupIt group, boolean loadOnDemand)
Here is the call graph for this function:

◆ changeSelectedGroup()

void org.turro.zul.groupit.GroupItTree.changeSelectedGroup ( GroupIt  group)

Definition at line 89 of file GroupItTree.java.

89  {
90  if(getSelectedItem() instanceof GroupItItem ) {
91  GroupItItem gi = (GroupItItem) getSelectedItem();
92  gi.setValue(group);
93  gi.setLabel(group.getName());
94  }
95  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCategory()

String org.turro.zul.groupit.GroupItTree.getCategory ( )

Definition at line 41 of file GroupItTree.java.

41  {
42  return category;
43  }
Here is the caller graph for this function:

◆ getEntityPath()

String org.turro.zul.groupit.GroupItTree.getEntityPath ( )

Definition at line 51 of file GroupItTree.java.

51  {
52  return entityPath;
53  }

◆ getSelectedGroup()

GroupIt org.turro.zul.groupit.GroupItTree.getSelectedGroup ( )

Definition at line 66 of file GroupItTree.java.

66  {
67  if(getSelectedItem() instanceof GroupItItem ) {
68  return (GroupIt) ((GroupItItem) getSelectedItem()).getGroup();
69  }
70  return null;
71  }
Here is the caller graph for this function:

◆ reloadContents()

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

Definition at line 102 of file GroupItTree.java.

102  {
103  for(Object o : children.getChildren()) {
104  if(o instanceof GroupItItem) {
105  ((GroupItItem) o).reloadContents();
106  }
107  }
108  }

◆ setCategory()

void org.turro.zul.groupit.GroupItTree.setCategory ( String  category)

Definition at line 45 of file GroupItTree.java.

45  {
46  this.category = category;
47  children.getChildren().clear();
48  addGroup(null, false);
49  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setEntityPath()

void org.turro.zul.groupit.GroupItTree.setEntityPath ( String  entityPath)

Definition at line 55 of file GroupItTree.java.

55  {
56  this.entityPath = entityPath;
57  }

◆ setSelectedGroup()

void org.turro.zul.groupit.GroupItTree.setSelectedGroup ( GroupIt  group)

Definition at line 73 of file GroupItTree.java.

73  {
74  if(group == null) {
75  setSelectedItem(null);
76  } else {
77  for(Treeitem ti : getItems()) {
78  if(ti.getValue() instanceof GroupIt) {
79  if(((GroupIt) ti.getValue()).getId().equals(group.getId())) {
80  setSelectedItem(ti);
81  return;
82  }
83  }
84  }
85  setSelectedItem(null);
86  }
87  }
Here is the call graph for this function:

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