BrightSide Workbench Full Report + Source Code
org.turro.financials.view.ViewBandbox Class Reference
Inheritance diagram for org.turro.financials.view.ViewBandbox:
Collaboration diagram for org.turro.financials.view.ViewBandbox:

Public Member Functions

ViewSets getObjectValue ()
 
void setObjectValue (ViewSets 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 32 of file ViewBandbox.java.

Member Function Documentation

◆ fillPopup()

void org.turro.financials.view.ViewBandbox.fillPopup ( )
protected

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

Definition at line 38 of file ViewBandbox.java.

38  {
39  if(!isFilled()) {
40  viewA = new ViewListbox();
41  viewA.setHflex("1");
42  viewA.setSelectFirst(false);
43  viewA.setMultiple(true);
44  viewA.setCheckmark(true);
45  viewA.addEventListener(Events.ON_SELECT, new EventListener() {
46  @Override
47  public void onEvent(Event event) throws Exception {
48  updateSets();
49  }
50  });
51  viewB = new ViewListbox();
52  viewB.setHflex("1");
53  viewB.setSelectFirst(false);
54  viewB.setMultiple(true);
55  viewB.setCheckmark(true);
56  viewB.addEventListener(Events.ON_SELECT, new EventListener() {
57  @Override
58  public void onEvent(Event event) throws Exception {
59  updateSets();
60  }
61  });
62  Hbox hbox = new Hbox();
63  hbox.setWidth("100%");
64  hbox.appendChild(viewA);
65  hbox.appendChild(viewB);
66  setPopupComponent(hbox);
67  viewA.afterCompose();
68  viewB.afterCompose();
69  viewA.setObjectValues(sets.getGroupA());
70  viewB.setObjectValues(sets.getGroupB());
71  }
72  }
Set< RegisterView > getGroupA()
Definition: ViewSets.java:40
Set< RegisterView > getGroupB()
Definition: ViewSets.java:49
void setPopupComponent(Component component)
void setObjectValues(Collection< V > collection)
void setSelectFirst(boolean selectFirst)
Here is the call graph for this function:

◆ getObjectValue()

ViewSets org.turro.financials.view.ViewBandbox.getObjectValue ( )

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

Definition at line 75 of file ViewBandbox.java.

75  {
77  return sets;
78  }
Here is the call graph for this function:

◆ setObjectValue()

void org.turro.financials.view.ViewBandbox.setObjectValue ( ViewSets  v)

Definition at line 81 of file ViewBandbox.java.

81  {
82  sets = v;
84  }
Here is the call graph for this function:

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