Interface ContextAreaCommentTreeController
- All Known Implementing Classes:
DefaultContextAreaCommentTreeController
public interface ContextAreaCommentTreeController
Contract definition of controller for ContextAreaCommentTreeComponent
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteComment(ContextAreaCommentTreeModel model, CommentModel commentItemModel) Performs delete routine for the given comment instance.getCommentIcon(ContextAreaCommentTreeModel model, CommentModel comment) Returns a correspondingCommentIconcomponent for the target comment instance.getOwningCommentLayer(ContextAreaCommentTreeModel model, CommentModel commentItemModel) ReturnsCommentLayerComponentthat owns icon representing the target comment instance.booleangetUserWorkingStatus(AbstractCommentModel comment) Returns working status of the targetAbstractCommentModelinstance for the current user.booleanisCommentCurrentlySelected(ContextAreaCommentTreeModel model, AbstractCommentModel commentItemModel) Evaluates if the target comment instance is currently selected in the comment layer.booleanisCommentRecordCollapsable(AbstractCommentModel abstractComment) Evaluates if the record of the context area comment tree for the givenAbstractCommentModelshould render the collapse/expand control.booleanisCommentVisible(ContextAreaCommentTreeModel model, CommentModel comment) Evaluates if the target comment is currently visible on the comment layer.voidselectComment(ContextAreaCommentTreeModel model, CommentModel commentItemModel) Performs select routine for the given comment instance.voidsetUserWorkingStatus(AbstractCommentModel comment, boolean workingStatus) Sets working status of the targetAbstractCommentModelinstance for the current user.voidtoggleCommentVisible(ContextAreaCommentTreeModel model, CommentModel comment) Toggles visibility of the target comment instance on the comment layer component.
-
Method Details
-
isCommentCurrentlySelected
boolean isCommentCurrentlySelected(ContextAreaCommentTreeModel model, AbstractCommentModel commentItemModel) Evaluates if the target comment instance is currently selected in the comment layer.- Parameters:
model-ContextAreaCommentTreeModelcommentItemModel- - instance to check
-
isCommentVisible
Evaluates if the target comment is currently visible on the comment layer.- Parameters:
model- -ContextAreaCommentTreeModelcomment- - comment instance to check
-
selectComment
Performs select routine for the given comment instance.- Parameters:
model- -ContextAreaCommentTreeModelcommentItemModel- - comment instance to select
-
deleteComment
Performs delete routine for the given comment instance.- Parameters:
model- -ContextAreaCommentTreeModelcommentItemModel- - comment instance to select
-
toggleCommentVisible
Toggles visibility of the target comment instance on the comment layer component.- Parameters:
model- -ContextAreaCommentTreeModelcomment- - target comment instance.
-
getOwningCommentLayer
CommentLayerComponent getOwningCommentLayer(ContextAreaCommentTreeModel model, CommentModel commentItemModel) ReturnsCommentLayerComponentthat owns icon representing the target comment instance.- Parameters:
model- -ContextAreaCommentTreeModelcommentItemModel- - target comment instance
-
getUserWorkingStatus
Returns working status of the targetAbstractCommentModelinstance for the current user.- Parameters:
comment- - targetAbstractCommentModelinstance.- Returns:
trueorfalse
-
setUserWorkingStatus
Sets working status of the targetAbstractCommentModelinstance for the current user.- Parameters:
comment- - targetAbstractCommentModelinstance.workingStatus- - new working status value.
-
isCommentRecordCollapsable
Evaluates if the record of the context area comment tree for the givenAbstractCommentModelshould render the collapse/expand control. -
getCommentIcon
Returns a correspondingCommentIconcomponent for the target comment instance.- Parameters:
model- -ContextAreaCommentTreeModelcomment- - targetCommentModel- Returns:
CommentIconor null
-