public class ViewScreenController
extends java.lang.Object
It provides the view data of the current active Learning Path
Modifier and Type | Class and Description |
---|---|
class |
ViewScreenController.PathEntry
The Class PathEntry represents a ILearningPath from the ILearningPlan.
|
Constructor and Description |
---|
ViewScreenController(GoalTitleController goal,
org.tencompetence.business.model.learningpath.ILearningPlan plan,
int attained,
int planned,
int notPlanned)
Instantiates a new view screen controller.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttained()
Gets the percentage of attained competence levels for the current goal.
|
PathDetailsController |
getDetailsController()
Gets the element controller.
|
GoalTitleController |
getGoal()
Gets the goal controller.
|
java.lang.String |
getNotPlanned()
Gets the percentage of not yet planned competence levels for the current goal.
|
java.util.List<ViewScreenController.PathEntry> |
getPaths()
Gets the list of learning paths that are part of the plan.
|
java.lang.String |
getPlanned()
Gets the percentage of planned competence levels for the current goal.
|
boolean |
isElementSelected()
Returns true if an element is selected.
|
boolean |
isPlanAvailable()
Checks if a plan is available by checking if it has any associated paths.
|
void |
onSelection(com.icesoft.faces.component.ext.RowSelectorEvent event)
Selection listener called when the selection in the path list changes.
|
public ViewScreenController(GoalTitleController goal, org.tencompetence.business.model.learningpath.ILearningPlan plan, int attained, int planned, int notPlanned)
goal
- the goal title controller for providing the title and levelplan
- the current learning plan for achieving the goalattained
- the percentage of competences the user has already attainedplanned
- the percentage of competences for which the user has a plannotPlanned
- the percentage of competences for which the user has no planpublic GoalTitleController getGoal()
public java.util.List<ViewScreenController.PathEntry> getPaths()
public boolean isPlanAvailable()
public java.lang.String getAttained()
public java.lang.String getPlanned()
public java.lang.String getNotPlanned()
public boolean isElementSelected()
public PathDetailsController getDetailsController()
public void onSelection(com.icesoft.faces.component.ext.RowSelectorEvent event)
event
- the event describing the selection