BrightSide Workbench Full Report + Source Code
org.turro.zkoss.input.MonthBandbox Class Reference
Inheritance diagram for org.turro.zkoss.input.MonthBandbox:
Collaboration diagram for org.turro.zkoss.input.MonthBandbox:

Public Member Functions

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

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

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

Definition at line 30 of file MonthBandbox.java.

Member Function Documentation

◆ fillPopup()

void org.turro.zkoss.input.MonthBandbox.fillPopup ( )
protected

Definition at line 36 of file MonthBandbox.java.

36  {
37  if(!isFilled()) {
38  getBandPopup().setHeight("300px");
39  getBandPopup().setWidth("200px");
40  setAutodrop(true);
41  monthListbox.setVflex(true);
42  addEventListener(Events.ON_CHANGE, new EventListener() {
43  @Override
44  public void onEvent(Event event) throws Exception {
45  try {
46  typing = true;
47  monthListbox.selectItemByText(MonthBandbox.this.getValue());
48  } finally {
49  typing = false;
50  }
51  }
52  });
53  monthListbox.afterCompose();
54  monthListbox.addEventListener(Events.ON_SELECT, new EventListener() {
55  @Override
56  public void onEvent(Event event) {
57  if(!typing && getObjectValue() != null) {
58  Events.postEvent(new Event(Events.ON_CHANGE, MonthBandbox.this));
59  }
60  }
61  });
62  setPopupComponent(monthListbox);
63  }
64  }
Collection< Integer > getObjectValue()
Here is the call graph for this function:

◆ getObjectValue()

Collection<Integer> org.turro.zkoss.input.MonthBandbox.getObjectValue ( )

Definition at line 67 of file MonthBandbox.java.

67  {
68  setBandText(monthListbox.getStringValues());
69  return monthListbox.getObjectValues();
70  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setObjectValue()

void org.turro.zkoss.input.MonthBandbox.setObjectValue ( Collection< Integer >  v)

Definition at line 73 of file MonthBandbox.java.

73  {
74  monthListbox.setObjectValues(v);
75  setBandText(monthListbox.getStringValues());
76  }
Here is the call graph for this function:
Here is the caller graph for this function:

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