public abstract class RatingComponentController
extends java.lang.Object
Constructor and Description |
---|
RatingComponentController(java.util.List<org.tencompetence.generated.model.LevelValue> levels,
org.tencompetence.generated.model.LevelValue assignedLevel,
long requiredLevelId,
boolean editable,
boolean large,
boolean showPopup)
Instantiates a new rating component controller.
|
Modifier and Type | Method and Description |
---|---|
void |
clickLink(javax.faces.event.ActionEvent event)
Click link.
|
org.tencompetence.generated.model.LevelValue |
getAssignedLevel()
Gets the assigned level.
|
java.util.List<RatingComponentValue> |
getLevelValues()
Gets the level values.
|
int |
getTotalWidth()
Gets the Total Width.
|
boolean |
isEditable()
Checks if is editable.
|
boolean |
isShowNullLevelIcon()
Checks if we need to the Null Level icon.
|
boolean |
isShowPopup()
Checks if we need to show the popup.
|
boolean |
isShowRequiredLevelIcon()
Checks if we need to show the Required Level Icon.
|
abstract void |
ratingComponentClicked()
Rating component clicked.
|
void |
setAssignedLevel(org.tencompetence.generated.model.LevelValue level)
Sets the assigned level.
|
public RatingComponentController(java.util.List<org.tencompetence.generated.model.LevelValue> levels, org.tencompetence.generated.model.LevelValue assignedLevel, long requiredLevelId, boolean editable, boolean large, boolean showPopup)
levels
- The levels which must be used to showrequiredLevelId
- Minimum level a user should accomplish.editable
- To indicate if the ratingcomponent is editable.assignedLevel
- the assigned levellarge
- Should the size of rating component be small or largeshowPopup
- the show popuppublic java.util.List<RatingComponentValue> getLevelValues()
public void clickLink(javax.faces.event.ActionEvent event)
event
- the action eventpublic abstract void ratingComponentClicked()
public org.tencompetence.generated.model.LevelValue getAssignedLevel()
public void setAssignedLevel(org.tencompetence.generated.model.LevelValue level)
level
- The level to be assignedpublic boolean isEditable()
public boolean isShowRequiredLevelIcon()
public boolean isShowNullLevelIcon()
public int getTotalWidth()
public boolean isShowPopup()