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

Public Member Functions

 RelatedColumnGrid ()
 
 RelatedColumnGrid (DocumentDefinition documentDefinition)
 
DocumentDefinition getDocumentDefinition ()
 
void setDocumentDefinition (DocumentDefinition 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 (RelatedColumn v)
 
void initiateRow (Row row, RelatedColumn 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 37 of file RelatedColumnGrid.java.

Constructor & Destructor Documentation

◆ RelatedColumnGrid() [1/2]

org.turro.financials.document.RelatedColumnGrid.RelatedColumnGrid ( )

Definition at line 41 of file RelatedColumnGrid.java.

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

◆ RelatedColumnGrid() [2/2]

org.turro.financials.document.RelatedColumnGrid.RelatedColumnGrid ( DocumentDefinition  documentDefinition)

Definition at line 46 of file RelatedColumnGrid.java.

46  {
47  super(documentDefinition.getDocumentColumns());
48  addColumns();
49  }
Here is the call graph for this function:

Member Function Documentation

◆ createEditor()

HtmlBasedComponent org.turro.financials.document.RelatedColumnGrid.createEditor ( EditableCell  editableCell)
protected

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

Definition at line 81 of file RelatedColumnGrid.java.

81  {
82  if(editableCell.getCellIndex() == 0) {
83  Object value = getCellValue(editableCell);
84  DocumentColumnListbox dcl = new DocumentColumnListbox();
85  dcl.setMold("select");
86  dcl.setObjectValue((DocumentColumn) value);
87  return dcl;
88  }
89  return super.createEditor(editableCell);
90  }
Object getCellValue(EditableCell editableCell)
Here is the call graph for this function:

◆ deleteRow()

boolean org.turro.financials.document.RelatedColumnGrid.deleteRow ( Row  row)
protected

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

Definition at line 76 of file RelatedColumnGrid.java.

76  {
77  return true;
78  }

◆ formatCell()

String org.turro.financials.document.RelatedColumnGrid.formatCell ( EditableCell  editableCell,
Object  value 
)
protected

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

Definition at line 93 of file RelatedColumnGrid.java.

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

◆ getDocumentDefinition()

DocumentDefinition org.turro.financials.document.RelatedColumnGrid.getDocumentDefinition ( )

Definition at line 51 of file RelatedColumnGrid.java.

51  {
52  return documentDefinition;
53  }

◆ initiateRow()

void org.turro.financials.document.RelatedColumnGrid.initiateRow ( Row  row,
RelatedColumn  value 
)
protected

Definition at line 66 of file RelatedColumnGrid.java.

66  {
67  if(value == null) {
68  value = new RelatedColumn();
69  value.setDocumentDefinition(documentDefinition);
70  documentDefinition.getDocumentColumns().add(value);
71  }
72  row.setValue(value);
73  }
Here is the call graph for this function:

◆ isValid()

boolean org.turro.financials.document.RelatedColumnGrid.isValid ( RelatedColumn  v)
protected

Definition at line 61 of file RelatedColumnGrid.java.

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

◆ setDocumentDefinition()

void org.turro.financials.document.RelatedColumnGrid.setDocumentDefinition ( DocumentDefinition  documentDefinition)

Definition at line 55 of file RelatedColumnGrid.java.

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

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