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

Public Member Functions

 DocumentWorkflowGrid ()
 
 DocumentWorkflowGrid (ContractDefinition contractDefinition)
 
ContractDefinition getContractDefinition ()
 
void setContractDefinition (ContractDefinition documentDefinition)
 
- 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 (DocumentWorkflow v)
 
void initiateRow (Row row, DocumentWorkflow 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 40 of file DocumentWorkflowGrid.java.

Constructor & Destructor Documentation

◆ DocumentWorkflowGrid() [1/2]

org.turro.financials.contract.DocumentWorkflowGrid.DocumentWorkflowGrid ( )

Definition at line 44 of file DocumentWorkflowGrid.java.

44  {
45  super();
46  addColumns();
47  }

◆ DocumentWorkflowGrid() [2/2]

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

Definition at line 49 of file DocumentWorkflowGrid.java.

49  {
50  super(contractDefinition.getDocumentWorkflows());
51  addColumns();
52  }
Here is the call graph for this function:

Member Function Documentation

◆ createEditor()

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

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

Definition at line 84 of file DocumentWorkflowGrid.java.

84  {
85  if(editableCell.getCellIndex() < 2) {
86  Object value = getCellValue(editableCell);
87  DocumentDefinitionCombobox cdc = new DocumentDefinitionCombobox();
88  cdc.setObjectValue((DocumentDefinition) value);
89  return cdc;
90  } else if(editableCell.getCellIndex() == 3) {
91  DocumentWorkflow dw = (DocumentWorkflow) editableCell.getRow().getValue();
92  Object value = getCellValue(editableCell);
93  LineTypeListbox ltl = new LineTypeListbox(dw == null ? null : dw.getDescendant());
94  ltl.setObjectValue((LineType) value);
95  ltl.setMold("select");
96  return ltl;
97  }
98  return super.createEditor(editableCell);
99  }
Object getCellValue(EditableCell editableCell)
Here is the call graph for this function:

◆ deleteRow()

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

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

Definition at line 79 of file DocumentWorkflowGrid.java.

79  {
80  return true;
81  }

◆ formatCell()

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

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

Definition at line 102 of file DocumentWorkflowGrid.java.

102  {
103  if(editableCell.getCellIndex() < 2) {
104  if(value instanceof DocumentDefinition) {
105  return ((DocumentDefinition) value).getName();
106  }
107  return "";
108  } else if(editableCell.getCellIndex() == 3) {
109  if(value instanceof LineType) {
110  return ((LineType) value).getName();
111  }
112  return "";
113  }
114  return super.formatCell(editableCell, value);
115  }
Here is the call graph for this function:

◆ getContractDefinition()

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

Definition at line 54 of file DocumentWorkflowGrid.java.

54  {
55  return contractDefinition;
56  }

◆ initiateRow()

void org.turro.financials.contract.DocumentWorkflowGrid.initiateRow ( Row  row,
DocumentWorkflow  value 
)
protected

Definition at line 69 of file DocumentWorkflowGrid.java.

69  {
70  if(value == null) {
71  value = new DocumentWorkflow();
72  value.setContractDefinition(contractDefinition);
73  contractDefinition.getDocumentWorkflows().add(value);
74  }
75  row.setValue(value);
76  }
Here is the call graph for this function:

◆ isValid()

boolean org.turro.financials.contract.DocumentWorkflowGrid.isValid ( DocumentWorkflow  v)
protected

Definition at line 64 of file DocumentWorkflowGrid.java.

64  {
65  return v.getAncestor() != null && v.getDescendant() != null;
66  }
Here is the call graph for this function:

◆ setContractDefinition()

void org.turro.financials.contract.DocumentWorkflowGrid.setContractDefinition ( ContractDefinition  documentDefinition)

Definition at line 58 of file DocumentWorkflowGrid.java.

58  {
59  this.contractDefinition = documentDefinition;
60  setCollection(documentDefinition.getDocumentWorkflows());
61  }
void setCollection(Collection< V > collection)
Here is the call graph for this function:

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