BrightSide Workbench Full Report + Source Code
org.turro.valuation.ResourcesGrid Class Reference
Inheritance diagram for org.turro.valuation.ResourcesGrid:
Collaboration diagram for org.turro.valuation.ResourcesGrid:

Public Member Functions

void setValuationModel (ValuationModel model)
 
- 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 clearColumns ()
 
void clearRows ()
 
void clearEmptyGroups ()
 
Columns getColumns (boolean create)
 
Rows getRows (boolean create)
 
Foot getFoot (boolean create)
 
Foot createFoot ()
 
void exportToPdf ()
 

Protected Member Functions

void addRows ()
 
void addColumns ()
 

Protected Attributes

ValuationModel model
 
String currencyFormat = "#0.00"
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 35 of file ResourcesGrid.java.

Member Function Documentation

◆ addColumns()

void org.turro.valuation.ResourcesGrid.addColumns ( )
protected

Definition at line 89 of file ResourcesGrid.java.

89  {
90  Auxhead ah = new Auxhead();
91  appendChild(ah);
92 
93  Auxheader ahr = new Auxheader();
94  ah.appendChild(ahr);
95 
96  ahr = new Auxheader(I_.get("Units"));
97  ahr.setAlign("center");
98  ahr.setColspan(2);
99  ah.appendChild(ahr);
100 
101  ahr = new Auxheader(I_.get("Price"));
102  ahr.setAlign("center");
103  ahr.setColspan(2);
104  ah.appendChild(ahr);
105 
106  Columns cols = new Columns();
107  cols.setSizable(true);
108  appendChild(cols);
109 
110  Column col = new Column();
111  col.setLabel(I_.get("Resource"));
112  col.setHflex("1");
113  cols.appendChild(col);
114 
115  col = new Column();
116  col.setLabel(I_.get("Estimated"));
117  col.setHflex("min");
118  cols.appendChild(col);
119 
120  col = new Column();
121  col.setLabel(I_.get("Real"));
122  col.setHflex("min");
123  cols.appendChild(col);
124 
125  col = new Column();
126  col.setLabel(I_.get("Market"));
127  col.setHflex("min");
128  cols.appendChild(col);
129 
130  col = new Column();
131  col.setLabel(I_.get("Final"));
132  col.setHflex("min");
133  cols.appendChild(col);
134  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addRows()

void org.turro.valuation.ResourcesGrid.addRows ( )
protected

Definition at line 47 of file ResourcesGrid.java.

47  {
48  Rows rows = getRows(true);
49  rows.getChildren().clear();
50 
51  for(ResourceRef resRef : model.getResources()) {
52  processResource(resRef);
53  }
54 
55  setRowCount(rows.getChildren().size());
56  }
Rows getRows(boolean create)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setValuationModel()

void org.turro.valuation.ResourcesGrid.setValuationModel ( ValuationModel  model)

Definition at line 41 of file ResourcesGrid.java.

41  {
42  this.model = model;
43  addColumns();
44  addRows();
45  }
Here is the call graph for this function:

Member Data Documentation

◆ currencyFormat

String org.turro.valuation.ResourcesGrid.currencyFormat = "#0.00"
protected

Definition at line 38 of file ResourcesGrid.java.

◆ model

ValuationModel org.turro.valuation.ResourcesGrid.model
protected

Definition at line 37 of file ResourcesGrid.java.


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