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

Public Member Functions

void setCategory (String category)
 
GroupIt getObjectValue ()
 
void setObjectValue (GroupIt v)
 
- Public Member Functions inherited from org.turro.zkoss.input.GenericBandbox< V >
Bandpopup getBandPopup ()
 
boolean isFilled ()
 
void afterCompose ()
 
abstract void setObjectValue (V v)
 

Protected Member Functions

void fillPopup ()
 
- Protected Member Functions inherited from org.turro.zkoss.input.GenericBandbox< V >
void setPopupComponent (Component component)
 
void setBandText (String text)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.zkoss.input.GenericBandbox< V >
value
 

Detailed Description

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

Definition at line 31 of file GroupItBandbox.java.

Member Function Documentation

◆ fillPopup()

void org.turro.zul.groupit.GroupItBandbox.fillPopup ( )
protected

Reimplemented from org.turro.zkoss.input.GenericBandbox< V >.

Definition at line 45 of file GroupItBandbox.java.

45  {
46  if(!isFilled()) {
47  getBandPopup().setHeight("350px");
48  getBandPopup().setWidth("600px");
49  setAutodrop(true);
50  tree = new GroupItTree();
51  tree.setCategory(category);
52  tree.setVflex(true);
53  tree.setHflex("1");
54  tree.addEventListener(Events.ON_SELECT, new EventListener<Event>() {
55  @Override
56  public void onEvent(Event event) {
57  getObjectValue();
58  Events.postEvent(new Event(Events.ON_CHANGE, GroupItBandbox.this));
59  GroupItBandbox.this.close();
60  }
61  });
62  setPopupComponent(tree);
63  if(value != null) {
65  }
66  }
67  }
void setPopupComponent(Component component)
void setCategory(String category)
Here is the call graph for this function:

◆ getObjectValue()

GroupIt org.turro.zul.groupit.GroupItBandbox.getObjectValue ( )

Reimplemented from org.turro.zkoss.input.GenericBandbox< V >.

Definition at line 70 of file GroupItBandbox.java.

70  {
71  if(tree == null) {
72  return value;
73  } else {
74  GroupIt v = tree.getSelectedGroup();
75  if(v != null) {
76  setBandText(v.getPathName());
77  } else {
78  setBandText("");
79  }
80  return v;
81  }
82  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCategory()

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

Definition at line 36 of file GroupItBandbox.java.

36  {
37  this.category = category;
38  if(tree != null) {
39  tree.setCategory(category);
41  }
42  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setObjectValue()

void org.turro.zul.groupit.GroupItBandbox.setObjectValue ( GroupIt  v)

Definition at line 85 of file GroupItBandbox.java.

85  {
86  if(tree == null) {
87  value = v;
88  } else {
89  tree.setSelectedGroup(v);
90  }
92  }
void setSelectedGroup(GroupIt group)
Here is the caller graph for this function:

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