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

Public Member Functions

 ProductReferenceListbox (OrderReference orderReference)
 
void setObjectValue (OrderReference value)
 
OrderReference getObjectValue ()
 
- 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 afterCompose ()
 
void clearItems ()
 
void setObjectValue (V value)
 
void setObjectValues (Collection< V > collection)
 
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 (OrderReference 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 36 of file ProductReferenceListbox.java.

Constructor & Destructor Documentation

◆ ProductReferenceListbox()

org.turro.erp.reference.ProductReferenceListbox.ProductReferenceListbox ( OrderReference  orderReference)

Definition at line 40 of file ProductReferenceListbox.java.

40  {
41  this.orderReference = orderReference;
42  setAllowNull(true);
43  fillCollection();
44  }
Here is the call graph for this function:

Member Function Documentation

◆ convertToString()

String org.turro.erp.reference.ProductReferenceListbox.convertToString ( OrderReference  v)
protected

Definition at line 47 of file ProductReferenceListbox.java.

47  {
48  return v.getQuantity() + ": " + v.getSomeDescription();
49  }
Here is the call graph for this function:

◆ getObjectValue()

OrderReference org.turro.erp.reference.ProductReferenceListbox.getObjectValue ( )

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

Definition at line 69 of file ProductReferenceListbox.java.

69  {
70  OrderReference or = super.getObjectValue();
71 // if(or != null && or.getId() != idRef) {
72 // Collection c = Listeners.cancelListener(this, Events.ON_BLUR);
73 // HashMap<String, Object> map = new HashMap<String, Object>();
74 // // pending: clone from or changing values
75 // map.put("orderReference", or);
76 // ErpMenu.showModalZulFile("lProductOrder", "/WEB-INF/_zul/erp/reference/referenceClone.zul", map);
77 // Listeners.activateListeners(this, Events.ON_BLUR, c);
78 // }
79  return or;
80  }

◆ setObjectValue()

void org.turro.erp.reference.ProductReferenceListbox.setObjectValue ( OrderReference  value)

Definition at line 63 of file ProductReferenceListbox.java.

63  {
64  super.setObjectValue(value);
65  idRef = value != null ? value.getId() : 0L;
66  }
Here is the call graph for this function:

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