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

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 VariablesGrid.java.

Member Function Documentation

◆ addColumns()

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

Definition at line 114 of file VariablesGrid.java.

114  {
115  Columns cols = new Columns();
116  cols.setSizable(true);
117  appendChild(cols);
118 
119  Column col = new Column();
120  col.setLabel("");
121  col.setWidth("50px");
122  cols.appendChild(col);
123 
124  col = new Column();
125  col.setLabel(I_.get("Variable"));
126  col.setHflex("1");
127  cols.appendChild(col);
128 
129  col = new Column();
130  col.setLabel(I_.get("Structure margin"));
131  col.setWidth("120px");
132  cols.appendChild(col);
133 
134  col = new Column();
135  col.setLabel(I_.get("Profit margin"));
136  col.setWidth("120px");
137  cols.appendChild(col);
138  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addRows()

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

Definition at line 47 of file VariablesGrid.java.

47  {
48  Rows rows = getRows(true);
49  rows.getChildren().clear();
50 
51  TreeSet<Variable> vars = new TreeSet<Variable>(new VariableOrderComparator());
52  vars.addAll(model.getVariables());
53 
54  for(Variable var : vars) {
55  processVariable(var);
56  }
57 
58  setRowCount(rows.getChildren().size());
59  }
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.VariablesGrid.setValuationModel ( ValuationModel  model)

Definition at line 41 of file VariablesGrid.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.VariablesGrid.currencyFormat = "#0.00"
protected

Definition at line 38 of file VariablesGrid.java.

◆ model

ValuationModel org.turro.valuation.VariablesGrid.model
protected

Definition at line 37 of file VariablesGrid.java.


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