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

Public Member Functions

 RelatedDocumentGrid ()
 
 RelatedDocumentGrid (ContractDefinition contractDefinition)
 
ContractDefinition getContractDefinition ()
 
void setContractDefinition (ContractDefinition contractDefinition)
 
- Public Member Functions inherited from org.turro.zkoss.grid.CollectionGrid< V >
 CollectionGrid ()
 
 CollectionGrid (Collection< V > collection)
 
Collection< V > getCollection ()
 
void setCollection (Collection< V > collection)
 
void updateCollection (Collection< V > collection)
 
Row getDependingRow ()
 
void setDependingRow (Row dependingRow)
 
void clearTable ()
 
void deleteSelectedRow (Row row)
 
void afterCompose ()
 
- Public Member Functions inherited from org.turro.zkoss.grid.EditableGrid< V >
 EditableGrid ()
 
boolean isAllowDeletions ()
 
void setAllowDeletions (boolean allowDeletions)
 
boolean isAllowInsertions ()
 
void setAllowInsertions (boolean allowInsertions)
 
EditableCell getCurrentCell ()
 
Row getLastRow ()
 
boolean isReadOnly ()
 
void setReadOnly (boolean readOnly)
 
boolean isSelectInput ()
 
void setSelectInput (boolean selectInput)
 
boolean isShowZeros ()
 
void setShowZeros (boolean showZeros)
 
void clearFoot ()
 
void clearRows ()
 
void clearValidRows ()
 
void clearColumns ()
 
List< V > getValues ()
 
List< V > getAllValues ()
 
EventListener getEditListener ()
 
EventListener getNextListener ()
 
EventListener getKeyListener ()
 
EventListener getBlurListener ()
 
EventListener getCancelListener ()
 
void processEdition (EditableCell editableCell)
 
void cancelEdition ()
 
HtmlBasedComponent getEditor (EditableCell editableCell)
 
Row appendValue ()
 
Row addNewRow ()
 
void insertInSelectedRow (Row row)
 
Column getEditableColumn (int cellIndex)
 
void updateRow (Row row)
 
void updateRows ()
 
EditableColumn addColumn (String label, Class javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly)
 
EditableColumn addColumn (String label, String javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly) throws ClassNotFoundException
 
EditableColumn addColumn (String image, String tooltip, Class javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly)
 
EditableColumn addColumn (String image, String tooltip, String javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly) throws ClassNotFoundException
 
- Public Member Functions inherited from org.turro.zkoss.grid.PagingGrid
void setColumns (int columns)
 
void setColumns (String hflexs)
 
void refine ()
 
boolean isDefaultBehavior ()
 
void setDefaultBehavior (boolean defaultBehavior)
 
String getRefineValue ()
 
void setRefineValue (String value)
 
int getMaxResults ()
 
void setMaxResults (int maxResults)
 
String getPagingMold ()
 
void setPagingMold (String pagingMold)
 
int getRowCount ()
 
void setRowCount (int rows)
 
void setHeadersVisible (boolean value)
 
boolean isHeadersVisible ()
 
String getVarColumns ()
 
void setVarColumns (String varColumns)
 
Collection< String > getVarColumnsList (String defaultCols)
 
void addDetailColumn ()
 
void addDetailColumn (HtmlBasedComponent caption)
 
void openDetails ()
 
boolean isEmpty ()
 
void clearEmptyGroups ()
 
Columns getColumns (boolean create)
 
Rows getRows (boolean create)
 
Foot getFoot (boolean create)
 
Foot createFoot ()
 
void exportToPdf ()
 

Protected Member Functions

boolean isValid (RelatedDocument v)
 
void initiateRow (Row row, RelatedDocument value)
 
boolean deleteRow (Row row)
 
HtmlBasedComponent createEditor (EditableCell editableCell)
 
String formatCell (EditableCell editableCell, Object value)
 
- Protected Member Functions inherited from org.turro.zkoss.grid.CollectionGrid< V >
void cellChanged (EditableCell editableCell, Object value)
 
void rowChanged (Row row)
 
boolean filterValue (V v)
 
- Protected Member Functions inherited from org.turro.zkoss.grid.EditableGrid< V >
Object getCellValue (EditableCell editableCell)
 
Object getEditorValue (EditableCell editableCell)
 
void setCellValue (EditableCell editableCell, Object value)
 
HtmlBasedComponent createRenderer (EditableCell editableCell)
 
boolean isCellValid (EditableCell editableCell, Object value)
 
boolean canDeleteRow (Row row)
 
boolean canEditRow (Row row)
 
abstract void initiateRow (Row row, V value)
 
abstract boolean isValid (V v)
 

Additional Inherited Members

- Public Attributes inherited from org.turro.zkoss.grid.EditableGrid< V >
EditEventListener editListener
 
NextEventListener nextListener
 
KeyEventListener keyListener
 
CancelEventListener cancelListener
 
BlurEventListener blurListener
 
boolean allowInsertions
 
- Protected Attributes inherited from org.turro.zkoss.grid.CollectionGrid< V >
Row dependingRow
 
- Protected Attributes inherited from org.turro.zkoss.grid.EditableGrid< V >
EditableCell currentCell
 
String ctrlKeys
 
Row lastRow
 

Detailed Description

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

Definition at line 38 of file RelatedDocumentGrid.java.

Constructor & Destructor Documentation

◆ RelatedDocumentGrid() [1/2]

org.turro.financials.contract.RelatedDocumentGrid.RelatedDocumentGrid ( )

Definition at line 42 of file RelatedDocumentGrid.java.

42  {
43  super();
44  addColumns();
45  }

◆ RelatedDocumentGrid() [2/2]

org.turro.financials.contract.RelatedDocumentGrid.RelatedDocumentGrid ( ContractDefinition  contractDefinition)

Definition at line 47 of file RelatedDocumentGrid.java.

47  {
48  super(contractDefinition.getRelatedDocuments());
49  addColumns();
50  }
Here is the call graph for this function:

Member Function Documentation

◆ createEditor()

HtmlBasedComponent org.turro.financials.contract.RelatedDocumentGrid.createEditor ( EditableCell  editableCell)
protected

Reimplemented from org.turro.zkoss.grid.EditableGrid< V >.

Definition at line 82 of file RelatedDocumentGrid.java.

82  {
83  if(editableCell.getCellIndex() == 0) {
84  Object value = getCellValue(editableCell);
85  DocumentDefinitionCombobox cdc = new DocumentDefinitionCombobox();
86  cdc.setObjectValue((DocumentDefinition) value);
87  return cdc;
88  }
89  return super.createEditor(editableCell);
90  }
Object getCellValue(EditableCell editableCell)
Here is the call graph for this function:

◆ deleteRow()

boolean org.turro.financials.contract.RelatedDocumentGrid.deleteRow ( Row  row)
protected

Reimplemented from org.turro.zkoss.grid.EditableGrid< V >.

Definition at line 77 of file RelatedDocumentGrid.java.

77  {
78  return true;
79  }

◆ formatCell()

String org.turro.financials.contract.RelatedDocumentGrid.formatCell ( EditableCell  editableCell,
Object  value 
)
protected

Reimplemented from org.turro.zkoss.grid.EditableGrid< V >.

Definition at line 93 of file RelatedDocumentGrid.java.

93  {
94  if(editableCell.getCellIndex() == 0) {
95  if(value instanceof DocumentDefinition) {
96  return ((DocumentDefinition) value).getName();
97  }
98  return "";
99  }
100  return super.formatCell(editableCell, value);
101  }
Here is the call graph for this function:

◆ getContractDefinition()

ContractDefinition org.turro.financials.contract.RelatedDocumentGrid.getContractDefinition ( )

Definition at line 52 of file RelatedDocumentGrid.java.

52  {
53  return contractDefinition;
54  }

◆ initiateRow()

void org.turro.financials.contract.RelatedDocumentGrid.initiateRow ( Row  row,
RelatedDocument  value 
)
protected

Definition at line 67 of file RelatedDocumentGrid.java.

67  {
68  if(value == null) {
69  value = new RelatedDocument();
70  value.setContractDefinition(contractDefinition);
71  contractDefinition.getRelatedDocuments().add(value);
72  }
73  row.setValue(value);
74  }
Here is the call graph for this function:

◆ isValid()

boolean org.turro.financials.contract.RelatedDocumentGrid.isValid ( RelatedDocument  v)
protected

Definition at line 62 of file RelatedDocumentGrid.java.

62  {
63  return v.getDocumentDefinition() != null;
64  }
Here is the call graph for this function:

◆ setContractDefinition()

void org.turro.financials.contract.RelatedDocumentGrid.setContractDefinition ( ContractDefinition  contractDefinition)

Definition at line 56 of file RelatedDocumentGrid.java.

56  {
57  this.contractDefinition = contractDefinition;
58  setCollection(contractDefinition.getRelatedDocuments());
59  }
void setCollection(Collection< V > collection)
Here is the call graph for this function:

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