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

Public Member Functions

ContractDefinition getObjectValue ()
 
void setObjectValue (ContractDefinition 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 ContractDefinitionBandbox.java.

Member Function Documentation

◆ fillPopup()

void org.turro.financials.contract.ContractDefinitionBandbox.fillPopup ( )
protected

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

Definition at line 37 of file ContractDefinitionBandbox.java.

37  {
38  if(!isFilled()) {
39  getBandPopup().setHeight("300px");
40  setAutodrop(true);
41  tree.setVflex(true);
42  addEventListener(Events.ON_CHANGING, new EventListener() {
43  @Override
44  public void onEvent(Event event) throws Exception {
45  try {
46  typing = true;
47  tree.selectItemByText(((InputEvent) event).getValue());
48  } finally {
49  typing = false;
50  }
51  }
52  });
53  tree.afterCompose();
54  tree.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, ContractDefinitionBandbox.this));
59  ContractDefinitionBandbox.this.close();
60  }
61  }
62  });
63  setPopupComponent(tree);
64  }
65  }
void setPopupComponent(Component component)
void selectItemByText(String text)
Here is the call graph for this function:

◆ getObjectValue()

ContractDefinition org.turro.financials.contract.ContractDefinitionBandbox.getObjectValue ( )

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

Definition at line 68 of file ContractDefinitionBandbox.java.

68  {
69  ContractDefinition v = tree.getObjectValue();
70  if(v != null) {
71  setBandText(v.getName());
72  } else {
73  setBandText("");
74  }
75  return v;
76  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setObjectValue()

void org.turro.financials.contract.ContractDefinitionBandbox.setObjectValue ( ContractDefinition  v)

Definition at line 79 of file ContractDefinitionBandbox.java.

79  {
80  tree.setObjectValue(v);
81  if(v != null) {
82  setBandText(v.getName());
83  } else {
84  setBandText("");
85  }
86  }
Here is the call graph for this function:

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