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

Public Member Functions

 DocumentLinesListbox ()
 
 DocumentLinesListbox (Collection< DocumentLine > collection)
 
boolean isShowContract ()
 
void setShowContract (boolean showContract)
 
boolean isShowTotalAmount ()
 
void setShowTotalAmount (boolean showTotalAmount)
 
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 (DocumentLine v)
 
void populateList ()
 
- Protected Member Functions inherited from org.turro.zkoss.input.CollectionListbox< V >
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 DocumentLinesListbox.java.

Constructor & Destructor Documentation

◆ DocumentLinesListbox() [1/2]

org.turro.financials.document.DocumentLinesListbox.DocumentLinesListbox ( )

Definition at line 44 of file DocumentLinesListbox.java.

44  {
45  }

◆ DocumentLinesListbox() [2/2]

org.turro.financials.document.DocumentLinesListbox.DocumentLinesListbox ( Collection< DocumentLine collection)

Definition at line 47 of file DocumentLinesListbox.java.

47  {
48  super(collection);
49  }

Member Function Documentation

◆ afterCompose()

void org.turro.financials.document.DocumentLinesListbox.afterCompose ( )

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

Definition at line 84 of file DocumentLinesListbox.java.

84  {
85  dam = new DocumentActionMenu();
86  getParent().appendChild(dam);
87  addHeaders();
88  super.afterCompose();
89  if(showTotalAmount) {
90  addFooters();
91  }
92  }

◆ convertToString()

String org.turro.financials.document.DocumentLinesListbox.convertToString ( DocumentLine  v)
protected

Definition at line 68 of file DocumentLinesListbox.java.

68  {
69  if(v == null) return null;
70 
71  return (showContract ? v.getDocument().getContract().getFullDescription() + SUBITEM_SEPARATOR : "") +
72  v.getDocument().getDocumentDefinition().getName() + ITEM_SEPARATOR +
73  DateFormats.format(v.getDocument().getDocumentDate(), true) + SUBITEM_SEPARATOR +
74  DateFormats.format(v.getDocument().getReceiptDate(), true) + ITEM_SEPARATOR +
75  v.getDocument().getDocumentNumber() + ITEM_SEPARATOR +
76  (v.getProduct() != null ? v.getProduct().getDescription() + SUBITEM_SEPARATOR : "") +
77  (v.getProductByContractor() != null ? v.getProductByContractor().getProduct().getDescription() + SUBITEM_SEPARATOR : "") +
78  (v.getConcept() != null ? v.getConcept() + SUBITEM_SEPARATOR : "") +
79  v.getStore().getPartialDescription() + ITEM_SEPARATOR +
80  DecimalFormats.format(v.getTaxable());
81  }
Here is the call graph for this function:

◆ isShowContract()

boolean org.turro.financials.document.DocumentLinesListbox.isShowContract ( )

Definition at line 51 of file DocumentLinesListbox.java.

51  {
52  return showContract;
53  }

◆ isShowTotalAmount()

boolean org.turro.financials.document.DocumentLinesListbox.isShowTotalAmount ( )

Definition at line 59 of file DocumentLinesListbox.java.

59  {
60  return showTotalAmount;
61  }

◆ populateList()

void org.turro.financials.document.DocumentLinesListbox.populateList ( )
protected

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

Definition at line 95 of file DocumentLinesListbox.java.

95  {
96  super.populateList();
97  for(Listitem li : (List<Listitem>) getItems()) {
98  li.setContext(dam);
99  li.setAttribute("document", ((DocumentLine) li.getValue()).getDocument());
100  }
101  }

◆ setShowContract()

void org.turro.financials.document.DocumentLinesListbox.setShowContract ( boolean  showContract)

Definition at line 55 of file DocumentLinesListbox.java.

55  {
56  this.showContract = showContract;
57  }
Here is the caller graph for this function:

◆ setShowTotalAmount()

void org.turro.financials.document.DocumentLinesListbox.setShowTotalAmount ( boolean  showTotalAmount)

Definition at line 63 of file DocumentLinesListbox.java.

63  {
64  this.showTotalAmount = showTotalAmount;
65  }

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