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

Public Member Functions

 EntriesGrid ()
 
 EntriesGrid (RegisterWrapper wrapper)
 
RegisterWrapper getWrapper ()
 
void setWrapper (RegisterWrapper wrapper)
 
void afterCompose ()
 
- 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)
 
- 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 initiateRow (Row row, EntryWrapper value)
 
boolean deleteRow (Row row)
 
boolean isValid (EntryWrapper v)
 
HtmlBasedComponent createRenderer (EditableCell editableCell)
 
- 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)
 
String formatCell (EditableCell editableCell, Object value)
 
HtmlBasedComponent createEditor (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

Constructor & Destructor Documentation

◆ EntriesGrid() [1/2]

org.turro.financials.register.EntriesGrid.EntriesGrid ( )

Definition at line 44 of file bsfinancials-www/src/main/java/org/turro/financials/register/EntriesGrid.java.

44  {
45  super();
46  }

◆ EntriesGrid() [2/2]

org.turro.financials.register.EntriesGrid.EntriesGrid ( RegisterWrapper  wrapper)

Definition at line 48 of file bsfinancials-www/src/main/java/org/turro/financials/register/EntriesGrid.java.

48  {
49  super();
50  setWrapper(wrapper);
51  }
Here is the call graph for this function:

Member Function Documentation

◆ afterCompose()

void org.turro.financials.register.EntriesGrid.afterCompose ( )

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

Definition at line 95 of file bsfinancials-www/src/main/java/org/turro/financials/register/EntriesGrid.java.

95  {
96  setReadOnly(true);
97  if(wrapper.getRegister().getDocument().getDocumentDefinition() != null) {
98  try {
99  addColumns();
100  } catch (ClassNotFoundException ex) {
101  Logger.getLogger(EntriesGrid.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
102  }
103  }
104  super.afterCompose();
105  }
DocumentDefinition getDocumentDefinition()
Definition: Document.java:167
void setReadOnly(boolean readOnly)
Here is the call graph for this function:

◆ createRenderer()

HtmlBasedComponent org.turro.financials.register.EntriesGrid.createRenderer ( EditableCell  editableCell)
protected

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

Definition at line 78 of file bsfinancials-www/src/main/java/org/turro/financials/register/EntriesGrid.java.

78  {
79  if(editableCell.getCellIndex() == 1) {
80  final EntryWrapper se = (EntryWrapper) editableCell.getRow().getValue();
81  A b = new A(se.getEntry().getAccount().getDescription());
82  b.setImage("/_zul/images/statement.png");
83  b.addEventListener(Events.ON_CLICK, new EventListener() {
84  @Override
85  public void onEvent(Event event) throws Exception {
86  FinancialsMenu.showStatement(se.getEntry().getAccount().getId() + "*");
87  }
88  });
89  return b;
90  }
91  return super.createRenderer(editableCell);
92  }
Here is the call graph for this function:

◆ deleteRow()

boolean org.turro.financials.register.EntriesGrid.deleteRow ( Row  row)
protected

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

Definition at line 68 of file bsfinancials-www/src/main/java/org/turro/financials/register/EntriesGrid.java.

68  {
69  throw new UnsupportedOperationException("Not supported yet.");
70  }

◆ getWrapper()

RegisterWrapper org.turro.financials.register.EntriesGrid.getWrapper ( )

Definition at line 53 of file bsfinancials-www/src/main/java/org/turro/financials/register/EntriesGrid.java.

53  {
54  return wrapper;
55  }

◆ initiateRow()

void org.turro.financials.register.EntriesGrid.initiateRow ( Row  row,
EntryWrapper  value 
)
protected

Definition at line 63 of file bsfinancials-www/src/main/java/org/turro/financials/register/EntriesGrid.java.

63  {
64  row.setValue(value);
65  }

◆ isValid()

boolean org.turro.financials.register.EntriesGrid.isValid ( EntryWrapper  v)
protected

Definition at line 73 of file bsfinancials-www/src/main/java/org/turro/financials/register/EntriesGrid.java.

73  {
74  return true;
75  }

◆ setWrapper()

void org.turro.financials.register.EntriesGrid.setWrapper ( RegisterWrapper  wrapper)

Definition at line 57 of file bsfinancials-www/src/main/java/org/turro/financials/register/EntriesGrid.java.

57  {
58  this.wrapper = wrapper;
59  setCollection(wrapper.getEntries());
60  }
void setCollection(Collection< V > collection)
Here is the call graph for this function:
Here is the caller graph for this function:

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