public class DefaultContextAreaCommentTreeController extends Object implements ContextAreaCommentTreeController
| Constructor and Description |
|---|
DefaultContextAreaCommentTreeController() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteComment(ContextAreaCommentTreeModel model,
CommentModel commentItemModel)
Performs delete routine for the given comment instance.
|
CommentIcon |
getCommentIcon(ContextAreaCommentTreeModel model,
CommentModel comment)
Returns a corresponding
CommentIcon component for the target comment instance. |
CommentLayerComponent |
getOwningCommentLayer(ContextAreaCommentTreeModel model,
CommentModel commentItemModel)
Returns
CommentLayerComponent that owns icon representing the target comment instance. |
boolean |
getUserWorkingStatus(AbstractCommentModel comment)
Returns working status of the target
AbstractCommentModel instance for the current user. |
boolean |
isCommentCurrentlySelected(ContextAreaCommentTreeModel model,
AbstractCommentModel commentItemModel)
Evaluates if the target comment instance is currently selected in the comment layer.
|
boolean |
isCommentRecordCollapsable(AbstractCommentModel abstractComment)
Evaluates if the record of the context area comment tree for the given
AbstractCommentModel should render
the collapse/expand control. |
boolean |
isCommentVisible(ContextAreaCommentTreeModel model,
CommentModel comment)
Evaluates if the target comment is currently visible on the comment layer.
|
void |
selectComment(ContextAreaCommentTreeModel model,
CommentModel commentItemModel)
Performs select routine for the given comment instance.
|
void |
setCommentLayerComponentController(CommentLayerComponentController commentLayerComponentController) |
void |
setCommentService(CommentService commentService) |
void |
setModelHelper(ModelHelper modelHelper) |
void |
setUserWorkingStatus(AbstractCommentModel comment,
boolean status)
Sets working status of the target
AbstractCommentModel instance for the current user. |
void |
toggleCommentVisible(ContextAreaCommentTreeModel model,
CommentModel comment)
Toggles visibility of the target comment instance on the comment layer component.
|
public DefaultContextAreaCommentTreeController()
public boolean isCommentCurrentlySelected(ContextAreaCommentTreeModel model, AbstractCommentModel commentItemModel)
ContextAreaCommentTreeControllerisCommentCurrentlySelected in interface ContextAreaCommentTreeControllermodel - ContextAreaCommentTreeModelcommentItemModel - - instance to checkpublic void selectComment(ContextAreaCommentTreeModel model, CommentModel commentItemModel)
ContextAreaCommentTreeControllerselectComment in interface ContextAreaCommentTreeControllermodel - - ContextAreaCommentTreeModelcommentItemModel - - comment instance to selectpublic void toggleCommentVisible(ContextAreaCommentTreeModel model, CommentModel comment)
ContextAreaCommentTreeControllertoggleCommentVisible in interface ContextAreaCommentTreeControllermodel - - ContextAreaCommentTreeModelcomment - - target comment instance.public boolean isCommentVisible(ContextAreaCommentTreeModel model, CommentModel comment)
ContextAreaCommentTreeControllerisCommentVisible in interface ContextAreaCommentTreeControllermodel - - ContextAreaCommentTreeModelcomment - - comment instance to checkpublic void setCommentLayerComponentController(CommentLayerComponentController commentLayerComponentController)
public CommentLayerComponent getOwningCommentLayer(ContextAreaCommentTreeModel model, CommentModel commentItemModel)
ContextAreaCommentTreeControllerCommentLayerComponent that owns icon representing the target comment instance.getOwningCommentLayer in interface ContextAreaCommentTreeControllermodel - - ContextAreaCommentTreeModelcommentItemModel - - target comment instancepublic boolean getUserWorkingStatus(AbstractCommentModel comment)
ContextAreaCommentTreeControllerAbstractCommentModel instance for the current user.getUserWorkingStatus in interface ContextAreaCommentTreeControllercomment - - target AbstractCommentModel instance.true or falsepublic void setUserWorkingStatus(AbstractCommentModel comment, boolean status)
ContextAreaCommentTreeControllerAbstractCommentModel instance for the current user.setUserWorkingStatus in interface ContextAreaCommentTreeControllercomment - - target AbstractCommentModel instance.status - - new working status value.public void setCommentService(CommentService commentService)
public void setModelHelper(ModelHelper modelHelper)
public void deleteComment(ContextAreaCommentTreeModel model, CommentModel commentItemModel)
ContextAreaCommentTreeControllerdeleteComment in interface ContextAreaCommentTreeControllermodel - - ContextAreaCommentTreeModelcommentItemModel - - comment instance to selectpublic boolean isCommentRecordCollapsable(AbstractCommentModel abstractComment)
ContextAreaCommentTreeControllerAbstractCommentModel should render
the collapse/expand control.isCommentRecordCollapsable in interface ContextAreaCommentTreeControllerpublic CommentIcon getCommentIcon(ContextAreaCommentTreeModel model, CommentModel comment)
ContextAreaCommentTreeControllerCommentIcon component for the target comment instance.getCommentIcon in interface ContextAreaCommentTreeControllermodel - - ContextAreaCommentTreeModelcomment - - target CommentModelCommentIcon or nullCopyright © 2017 SAP SE. All Rights Reserved.