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

Public Member Functions

void onRanking ()
 
void onOrderBy ()
 
void onVariable ()
 
void onExecute ()
 
 RankingControl ()
 

Detailed Description

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

Definition at line 45 of file RankingControl.java.

Constructor & Destructor Documentation

◆ RankingControl()

org.turro.ranking.RankingControl.RankingControl ( )

Definition at line 137 of file RankingControl.java.

137  {
138  Executions.createComponents("/WEB-INF/_zul/bs/comps/ranking/rankingControl.zul", this, null);
139  Selectors.wireComponents(this, this, false);
140  Selectors.wireEventListeners(this, this);
141  }

Member Function Documentation

◆ onExecute()

void org.turro.ranking.RankingControl.onExecute ( )

Definition at line 86 of file RankingControl.java.

86  {
87  if(!Strings.isBlank(ranking.getObjectValue())) {
88  Formulas.load().setFormula(Reflections.of(ranking.getObjectValue()).simpleName(), formula.getValue());
89  executeFor(ranking.getObjectValue());
90  updateControls();
91  SystemLogger.getInstance().doLog(SystemLogType.LOG_INFO, "/ranking", Reflections.of(ranking.getObjectValue()).simpleName(), formula.getValue());
92  }
93  }
Here is the call graph for this function:

◆ onOrderBy()

void org.turro.ranking.RankingControl.onOrderBy ( )

Definition at line 74 of file RankingControl.java.

74  {
75  updateControls();
76  }

◆ onRanking()

void org.turro.ranking.RankingControl.onRanking ( )

Definition at line 63 of file RankingControl.java.

63  {
64  for(ProcessRanking process : Instances.cached().byAnnotation(ElephantRanking.class, ProcessRanking.class)) {
65  if(process.instanceClass().getName().equals(ranking.getObjectValue())) {
66  variables.setModel(new ListModelList(Indicators.getRankingVariables(process.indicatorsRoot())));
67  orderBy.setModel(new ListModelList(Indicators.getRankingVariablesFinal(process.indicatorsRoot())));
68  }
69  }
70  updateControls();
71  }
Here is the call graph for this function:

◆ onVariable()

void org.turro.ranking.RankingControl.onVariable ( )

Definition at line 79 of file RankingControl.java.

79  {
80  if(variables.getObjectValue() != null) {
81  formula.setValue(formula.getValue() + " " + variables.getObjectValue().getName());
82  }
83  }
Here is the call graph for this function:

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