public class PdpSelectAction.LeafController extends ElementController
Constructor and Description |
---|
PdpSelectAction.LeafController(org.tencompetence.business.model.learningpath.ILPElement element,
boolean selectable)
Instantiates a new leaf element controller.
|
Modifier and Type | Method and Description |
---|---|
void |
commandLinkListener(javax.faces.event.ActionEvent e)
Method should be called when the command link represented by this controller is clicked.
|
java.lang.String |
getIcon()
Gets the icon for this element.
|
java.lang.String |
handleClickEvent(org.tencompetence.business.model.learningpath.ILPElement element)
Abstract method to handle the click event of the action button.
|
boolean |
isCompleted()
Checks if is completed.
|
boolean |
isElementList()
Return true if a list of child elements should be rendered.
|
boolean |
isLeaf()
Return true if this element is a leaf.
|
boolean |
isSelectable()
Returns true if the element represented by this controller may be selected by the user.
|
doClick, doToggleDescription, doToggleMetadata, getButtonCaption, getDateCompleted, getDateSubscribed, getDescription, getElement, getImageUrl, getImageUrl16, getImageUrl32, getImageUrl48, getLegenda, getMetadata, getTitle, getToggleDescriptionText, getToggleMetadataDescription, isButtonRequired, isLongDescription, isMetadataExpanded, isPortfolioView, isShowImage, setInput
public PdpSelectAction.LeafController(org.tencompetence.business.model.learningpath.ILPElement element, boolean selectable)
element
- the element controlled by this controllerselectable
- indicator which determines whether the user can selected this elementpublic java.lang.String handleClickEvent(org.tencompetence.business.model.learningpath.ILPElement element)
implementing classes should implement this method to do the actual handling of the event.
handleClickEvent
in class ElementController
element
- the element of this controllerpublic void commandLinkListener(javax.faces.event.ActionEvent e)
e
- the event datapublic boolean isSelectable()
public boolean isElementList()
public boolean isLeaf()
public boolean isCompleted()
public java.lang.String getIcon()