public class GoalSmallView extends PermissionsBean implements com.icesoft.faces.async.render.Renderable
Constructor and Description |
---|
GoalSmallView()
Instantiates a new goal small view.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose callback called due to a view closing or session invalidation/timeout.
|
java.lang.String |
doCollapse()
Handle the collapse hyperlink by toggling between the collapse modes.
|
void |
doLevelSelected(javax.faces.event.ValueChangeEvent event)
Handle the selection event from the profile level list.
|
java.lang.String |
doSave()
Saves the motivation of the goal.
|
java.lang.String |
doSelectGoal()
Handle the select goal button click.
|
java.lang.String |
getCollapseText()
Gets the internationalized collapse text.
|
ProfileEntryController |
getCtrl()
Gets the ctrl.
|
java.lang.String |
getIconUrl()
Create an icon.
|
java.util.List<javax.faces.model.SelectItem> |
getLevels()
Gets the profile levels for the active profile.
|
java.lang.String |
getMotivation()
Gets the motivation.
|
java.util.List<ProfileEntry> |
getProfileList()
Gets the profile list.
|
java.lang.String |
getSelectedLevel()
Gets the selected level.
|
com.icesoft.faces.webapp.xmlhttp.PersistentFacesState |
getState() |
java.lang.String |
getTitle()
Gets the title.
|
boolean |
isActiveAvailable()
Checks if there is an active profile selected.
|
boolean |
isActiveSelected()
Checks if is active goal is selected in the list.
|
boolean |
isAddGoalAllowed()
Check if user is allowed to add a Goal.
|
boolean |
isCollapsed()
Checks if the goal selection box is collapsed.
|
boolean |
isElementSelected()
Checks if a profile is selected in the list.
|
boolean |
isMultiLevel()
Checks if the active profile has multiple (>1) profile levels.
|
boolean |
isProfilesAvailable()
Checks if there are any profiles available.
|
boolean |
isSelectGoalAllowed()
Check if user is allowed to select a Goal.
|
boolean |
isSignedIn()
Checks if user is signed in.
|
void |
removeListener(javax.faces.event.ActionEvent event)
Logout.
|
void |
renderingException(com.icesoft.faces.webapp.xmlhttp.RenderingException e) |
void |
selectionListener(com.icesoft.faces.component.ext.RowSelectorEvent event)
Selection listener called when the selection in the profile level list changes.
|
void |
setGoalManager(GoalManager goalManager)
Sets the goal manager.
|
void |
setMotivation(java.lang.String value)
Sets the motivation.
|
void |
setSelectedLevel(java.lang.String level)
Sets the selected profile level as the target of the goal.
|
checkModelPermission, checkModelPermission, checkPortletPermission, checkPortletPermission, getToggleText, isExpanded, toggle
public java.lang.String getTitle()
public java.lang.String getIconUrl()
public java.util.List<ProfileEntry> getProfileList()
public boolean isSignedIn()
public ProfileEntryController getCtrl()
public com.icesoft.faces.webapp.xmlhttp.PersistentFacesState getState()
getState
in interface com.icesoft.faces.async.render.Renderable
public java.util.List<javax.faces.model.SelectItem> getLevels()
public java.lang.String getSelectedLevel()
public java.lang.String getMotivation()
public java.lang.String getCollapseText()
public void setGoalManager(GoalManager goalManager)
goalManager
- the new goal managerpublic void setSelectedLevel(java.lang.String level)
level
- the new selected levelpublic void setMotivation(java.lang.String value)
value
- the new motivationpublic boolean isAddGoalAllowed()
public boolean isSelectGoalAllowed()
public boolean isProfilesAvailable()
public boolean isElementSelected()
public boolean isActiveSelected()
public boolean isMultiLevel()
public boolean isActiveAvailable()
public boolean isCollapsed()
public java.lang.String doSelectGoal()
public java.lang.String doCollapse()
public void doLevelSelected(javax.faces.event.ValueChangeEvent event)
event
- the selection eventpublic java.lang.String doSave()
public void selectionListener(com.icesoft.faces.component.ext.RowSelectorEvent event)
event
- the event describing the selectionpublic void renderingException(com.icesoft.faces.webapp.xmlhttp.RenderingException e)
renderingException
in interface com.icesoft.faces.async.render.Renderable
public void removeListener(javax.faces.event.ActionEvent event)
event
- the eventpublic void dispose() throws java.lang.Exception
java.lang.Exception
- the exception