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

Public Member Functions

 DocumentRegisterView (Document document)
 
Document getDocument ()
 
void setDocument (Document document)
 
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, Register value)
 
boolean deleteRow (Row row)
 
boolean isValid (Register v)
 
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 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 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 41 of file DocumentRegisterView.java.

Constructor & Destructor Documentation

◆ DocumentRegisterView()

org.turro.financials.document.DocumentRegisterView.DocumentRegisterView ( Document  document)

Definition at line 45 of file DocumentRegisterView.java.

45  {
46  super();
47  setDocument(document);
48  setReadOnly(true);
49  setAllowDeletions(false);
50  setAllowInsertions(false);
51  }
void setAllowDeletions(boolean allowDeletions)
void setAllowInsertions(boolean allowInsertions)
void setReadOnly(boolean readOnly)
Here is the call graph for this function:

Member Function Documentation

◆ afterCompose()

void org.turro.financials.document.DocumentRegisterView.afterCompose ( )

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

Definition at line 101 of file DocumentRegisterView.java.

101  {
102  setReadOnly(true);
103  if(document != null && document.getDocumentDefinition() != null) {
104  try {
105  addColumns();
106  } catch (ClassNotFoundException ex) {
107  Logger.getLogger(DocumentRegisterView.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
108  }
109  }
110  super.afterCompose();
111  }
DocumentDefinition getDocumentDefinition()
Definition: Document.java:167
Here is the call graph for this function:

◆ deleteRow()

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

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

Definition at line 74 of file DocumentRegisterView.java.

74  {
75  throw new UnsupportedOperationException("Not supported yet.");
76  }

◆ formatCell()

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

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

Definition at line 84 of file DocumentRegisterView.java.

84  {
85  if(editableCell.getCellIndex() == 1) {
86  if(value instanceof Long) {
87  if(((Long) value) == 0) {
88  return "<auto>";
89  }
90  }
91  } else if(editableCell.getCellIndex() == 3) {
92  if(value instanceof RegisterView) {
93  return ((RegisterView) value).getName();
94  }
95  return "";
96  }
97  return super.formatCell(editableCell, value);
98  }
Here is the call graph for this function:

◆ getDocument()

Document org.turro.financials.document.DocumentRegisterView.getDocument ( )

Definition at line 53 of file DocumentRegisterView.java.

53  {
54  return document;
55  }

◆ initiateRow()

void org.turro.financials.document.DocumentRegisterView.initiateRow ( Row  row,
Register  value 
)
protected

Definition at line 68 of file DocumentRegisterView.java.

68  {
69  row.setValue(value);
70  addDetail(row);
71  }

◆ isValid()

boolean org.turro.financials.document.DocumentRegisterView.isValid ( Register  v)
protected

Definition at line 79 of file DocumentRegisterView.java.

79  {
80  return true;
81  }

◆ setDocument()

void org.turro.financials.document.DocumentRegisterView.setDocument ( Document  document)

Definition at line 57 of file DocumentRegisterView.java.

57  {
58  this.document = document;
59  if(getCollection() == null) {
60  setCollection(new HashSet<Register>());
61  }
62  if(document != null && document.getContract() != null) {
63  getCollection().addAll(document.getRegisters());
64  }
65  }
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: