|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.control.DefaultController
org.olat.core.gui.control.controller.BasicController
org.olat.core.commons.services.commentAndRating.impl.ui.UserCommentsAndRatingsController
public class UserCommentsAndRatingsController
Description:
The user comments and rating controller displays a minimized view of the
comments and rating with the option to expand to full view. Use this
controller whenever you want a resource to be commented.
Events fired by this controller:
Initial Date: 30.11.2009
| Field Summary | |
|---|---|
static Event |
EVENT_COMMENT_LINK_CLICKED
|
static Event |
EVENT_RATING_CHANGED
|
| Constructor Summary | |
|---|---|
UserCommentsAndRatingsController(UserRequest ureq,
WindowControl wControl,
OLATResourceable ores,
java.lang.String oresSubPath,
CommentAndRatingSecurityCallback securityCallback,
boolean enableComments,
boolean enableRatings,
boolean canExpandToFullView)
Constructor for a user combined user comments and ratings controller. |
|
| Method Summary | |
|---|---|
void |
addUserObject(java.lang.Object userObject)
Store a user object in this controller that can be retrieved in a later stage when a workflow is done |
void |
collapseComments(UserRequest ureq)
Method to manually collapse the comments view |
void |
event(Event event)
|
void |
expandComments(UserRequest ureq)
Method to manually expand the comments view |
java.lang.Object |
getUserObject()
Get the user object associated with this controller |
| Methods inherited from class org.olat.core.gui.control.DefaultController |
|---|
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, dispose, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Event EVENT_COMMENT_LINK_CLICKED
public static final Event EVENT_RATING_CHANGED
| Constructor Detail |
|---|
public UserCommentsAndRatingsController(UserRequest ureq,
WindowControl wControl,
OLATResourceable ores,
java.lang.String oresSubPath,
CommentAndRatingSecurityCallback securityCallback,
boolean enableComments,
boolean enableRatings,
boolean canExpandToFullView)
ureq - wControl - ores - oresSubPath - securityCallback - enableComments - enableRatings - canExpandToFullView - | Method Detail |
|---|
public void expandComments(UserRequest ureq)
ureq - public void collapseComments(UserRequest ureq)
ureq - public void addUserObject(java.lang.Object userObject)
userObject - public java.lang.Object getUserObject()
public void event(Event event)
event in interface GenericEventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||