BrightSide Workbench Full Report + Source Code
org.turro.zkoss.grid.CollectionGrid< V > Class Template Referenceabstract
Inheritance diagram for org.turro.zkoss.grid.CollectionGrid< V >:
Collaboration diagram for org.turro.zkoss.grid.CollectionGrid< V >:

Public Member Functions

 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

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)
 
String formatCell (EditableCell editableCell, Object value)
 
HtmlBasedComponent createEditor (EditableCell editableCell)
 
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 deleteRow (Row row)
 
abstract boolean isValid (V v)
 

Protected Attributes

Row dependingRow
 
- Protected Attributes inherited from org.turro.zkoss.grid.EditableGrid< V >
EditableCell currentCell
 
String ctrlKeys
 
Row lastRow
 

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
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Parameters
<V>

Definition at line 30 of file CollectionGrid.java.

Constructor & Destructor Documentation

◆ CollectionGrid() [1/2]

Definition at line 35 of file CollectionGrid.java.

35  {
36  super();
37  }

◆ CollectionGrid() [2/2]

org.turro.zkoss.grid.CollectionGrid< V >.CollectionGrid ( Collection< V >  collection)

Definition at line 39 of file CollectionGrid.java.

39  {
40  super();
41  this.collection = collection;
42  }

Member Function Documentation

◆ afterCompose()

◆ cellChanged()

void org.turro.zkoss.grid.CollectionGrid< V >.cellChanged ( EditableCell  editableCell,
Object  value 
)
protected

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

Reimplemented in org.turro.financials.register.MultiRegisterGrid, org.turro.financials.product.ProductContractorGrid, org.turro.financials.payroll.PayrollExpiriesGrid, org.turro.financials.document.DocumentLinesGrid, org.turro.financials.document.DocumentExpiriesGrid, and org.turro.erp.purchase.HoursGrid.

Definition at line 81 of file CollectionGrid.java.

81  {
82  super.cellChanged(editableCell, value);
83  if(editableCell.getColumn() instanceof EditableColumn) {
84  ChangeValueCallback cmd = ((EditableColumn) editableCell.getColumn()).getOnCheckDuplicate();
85  if(cmd != null) {
86  V current = editableCell.getRow().getValue();
87  for(V v : collection) {
88  if(value != null && v != null && !v.equals(current) && cmd.check(value, v)) break;
89  }
90  }
91  }
92  }
Here is the call graph for this function:

◆ clearTable()

void org.turro.zkoss.grid.CollectionGrid< V >.clearTable ( )

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

Definition at line 67 of file CollectionGrid.java.

67  {
68  super.clearTable();
69  if(collection != null) {
70  collection.clear();
71  }
72  }
Here is the caller graph for this function:

◆ deleteSelectedRow()

void org.turro.zkoss.grid.CollectionGrid< V >.deleteSelectedRow ( Row  row)

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

Definition at line 75 of file CollectionGrid.java.

75  {
76  super.deleteSelectedRow(row);
77  processDependingRow();
78  }

◆ filterValue()

boolean org.turro.zkoss.grid.CollectionGrid< V >.filterValue ( v)
protected

Definition at line 105 of file CollectionGrid.java.

105  {
106  return true;
107  }

◆ getCollection()

Collection<V> org.turro.zkoss.grid.CollectionGrid< V >.getCollection ( )

Definition at line 44 of file CollectionGrid.java.

44  {
45  return collection;
46  }
Here is the caller graph for this function:

◆ getDependingRow()

Row org.turro.zkoss.grid.CollectionGrid< V >.getDependingRow ( )

Definition at line 58 of file CollectionGrid.java.

58  {
59  return dependingRow;
60  }
Here is the caller graph for this function:

◆ rowChanged()

void org.turro.zkoss.grid.CollectionGrid< V >.rowChanged ( Row  row)
protected

◆ setCollection()

void org.turro.zkoss.grid.CollectionGrid< V >.setCollection ( Collection< V >  collection)

Definition at line 48 of file CollectionGrid.java.

48  {
49  this.collection = collection;
50  }
Here is the caller graph for this function:

◆ setDependingRow()

void org.turro.zkoss.grid.CollectionGrid< V >.setDependingRow ( Row  dependingRow)

Definition at line 62 of file CollectionGrid.java.

62  {
64  }

◆ updateCollection()

void org.turro.zkoss.grid.CollectionGrid< V >.updateCollection ( Collection< V >  collection)

Definition at line 52 of file CollectionGrid.java.

52  {
53  clearRows();
54  setCollection(collection);
55  afterCompose();
56  }
void setCollection(Collection< V > collection)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ dependingRow

Row org.turro.zkoss.grid.CollectionGrid< V >.dependingRow
protected

Definition at line 33 of file CollectionGrid.java.


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