BrightSide Workbench Full Report + Source Code
org.turro.erp.humanres.AptitudeListbox Class Reference
Inheritance diagram for org.turro.erp.humanres.AptitudeListbox:
Collaboration diagram for org.turro.erp.humanres.AptitudeListbox:

Public Member Functions

HumanResource getHumanResource ()
 
void setHumanResource (HumanResource humanResource)
 
void afterCompose ()
 
- Public Member Functions inherited from org.turro.zkoss.input.CollectionListbox< V >
 CollectionListbox ()
 
 CollectionListbox (Collection< V > collection)
 
void updateCollection ()
 
void updateCollection (Collection< V > collection)
 
boolean isAllowNull ()
 
void setAllowNull (boolean allowNull)
 
Collection< V > getCollection ()
 
void setCollection (Collection< V > collection)
 
boolean isNullAtBottom ()
 
void setNullAtBottom (boolean nullAtBottom)
 
String getNullLabel ()
 
void setNullLabel (String nullLabel)
 
- Public Member Functions inherited from org.turro.zkoss.input.GenericListbox< V >
 GenericListbox ()
 
void setDisabled (boolean value)
 
void clearItems ()
 
void setObjectValue (V value)
 
void setObjectValues (Collection< V > collection)
 
getObjectValue ()
 
Collection< V > getObjectValues ()
 
Collection< V > getDeselectedObjectValues ()
 
boolean isSelectFirst ()
 
void setSelectFirst (boolean selectFirst)
 
Set getDeselectedItems ()
 
void sort ()
 
Object getRelatedEntity ()
 
void setRelatedEntity (Object relatedEntity)
 

Protected Member Functions

String convertToString (OwnedAptitude v)
 
- Protected Member Functions inherited from org.turro.zkoss.input.CollectionListbox< V >
void populateList ()
 
boolean equals (V value, V obj)
 
abstract String convertToString (V v)
 
void beforeAppend (Listitem li)
 

Additional Inherited Members

- Static Public Attributes inherited from org.turro.zkoss.input.CollectionListbox< V >
static final String ITEM_SEPARATOR = "|||"
 
- Protected Attributes inherited from org.turro.zkoss.input.GenericListbox< V >
boolean populated = false
 

Detailed Description

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

Definition at line 38 of file AptitudeListbox.java.

Member Function Documentation

◆ afterCompose()

void org.turro.erp.humanres.AptitudeListbox.afterCompose ( )

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

Definition at line 61 of file AptitudeListbox.java.

61  {
62  addHeaders();
63  super.afterCompose();
64  for(Object o : getChildren()) {
65  if(o instanceof Listitem) {
66  Listitem li = (Listitem) o;
67  OwnedAptitude oa = (OwnedAptitude) li.getValue();
68  if(oa.isDefaultDegree()) {
69  setSelectedItem(li);
70  break;
71  }
72  }
73  }
74  }
Here is the call graph for this function:

◆ convertToString()

String org.turro.erp.humanres.AptitudeListbox.convertToString ( OwnedAptitude  v)
protected

Definition at line 52 of file AptitudeListbox.java.

52  {
53  return (v.getInitialDate() != null ? DateFormats.format(v.getInitialDate(), true) : "") + ITEM_SEPARATOR +
54  (v.getFinalDate() != null ? DateFormats.format(v.getFinalDate(), true) : "") + ITEM_SEPARATOR +
55  v.getAptitudeDegree().getFullName() + ITEM_SEPARATOR +
56  DecimalFormats.format(v.getAptitudeDegree().getCost()) + ITEM_SEPARATOR +
57  DecimalFormats.format(v.getAptitudeDegree().getPrice());
58  }
Here is the call graph for this function:

◆ getHumanResource()

HumanResource org.turro.erp.humanres.AptitudeListbox.getHumanResource ( )

Definition at line 42 of file AptitudeListbox.java.

42  {
43  return humanResource;
44  }

◆ setHumanResource()

void org.turro.erp.humanres.AptitudeListbox.setHumanResource ( HumanResource  humanResource)

Definition at line 46 of file AptitudeListbox.java.

46  {
47  this.humanResource = humanResource;
48  setCollection(humanResource.getOwnedAptitudes());
49  }
List< OwnedAptitude > getOwnedAptitudes()
void setCollection(Collection< V > collection)
Here is the call graph for this function:

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