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

Public Member Functions

void setContract (Contract contract)
 
void afterCompose ()
 
void updateContract ()
 
- Public Member Functions inherited from org.turro.zkoss.input.CollectionCheckbox< V >
 CollectionCheckbox ()
 
 CollectionCheckbox (Collection< V > collection)
 
void updateCollection ()
 
void updateCollection (Collection< V > collection)
 
Collection< V > getCollection ()
 
void setCollection (Collection< V > collection)
 
void setObjectValues (Collection< V > collection)
 
Collection< V > getObjectValues ()
 
void clear ()
 
- Public Member Functions inherited from org.turro.zkoss.layout.VboxH
 VboxH (int maxRows)
 
int getMaxRows ()
 
void setMaxRows (int maxRows)
 
void addComponent (Component comp)
 
List getRealChildren ()
 

Protected Member Functions

String convertToString (ContractPreference v)
 
- Protected Member Functions inherited from org.turro.zkoss.input.CollectionCheckbox< V >
void populateList ()
 
boolean equals (V value, V obj)
 
abstract String convertToString (V v)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.zkoss.input.CollectionCheckbox< V >
boolean populated = false
 

Detailed Description

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

Definition at line 30 of file ContractPreferencesCheckbox.java.

Member Function Documentation

◆ afterCompose()

void org.turro.financials.contract.ContractPreferencesCheckbox.afterCompose ( )

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

Definition at line 44 of file ContractPreferencesCheckbox.java.

44  {
45  if(contract.getContractDefinition() != null) {
46  clear();
47  setCollection(new TreeSet<ContractPreference>(contract.getContractDefinition().getContractPreferences()));
48  Iterator<ContractPreference> it = getCollection().iterator();
49  while(it.hasNext()) {
50  if(it.next().getName().contentEquals("#")) {
51  it.remove();
52  }
53  }
54  }
56  super.afterCompose();
57  }
ContractDefinition getContractDefinition()
Definition: Contract.java:125
Set< ContractPreference > getContractPreferences()
Definition: Contract.java:145
void setCollection(Collection< V > collection)
void setObjectValues(Collection< V > collection)
Here is the call graph for this function:

◆ convertToString()

String org.turro.financials.contract.ContractPreferencesCheckbox.convertToString ( ContractPreference  v)
protected

Definition at line 39 of file ContractPreferencesCheckbox.java.

39  {
40  return v.getName();
41  }
Here is the call graph for this function:

◆ setContract()

void org.turro.financials.contract.ContractPreferencesCheckbox.setContract ( Contract  contract)

Definition at line 34 of file ContractPreferencesCheckbox.java.

34  {
35  this.contract = contract;
36  }

◆ updateContract()

void org.turro.financials.contract.ContractPreferencesCheckbox.updateContract ( )

Definition at line 59 of file ContractPreferencesCheckbox.java.

59  {
60  contract.getContractPreferences().clear();
61  contract.getContractPreferences().addAll(getObjectValues());
62  }
Here is the call graph for this function:

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