Interface ContextAreaCommentTreeController
-
- All Known Implementing Classes:
DefaultContextAreaCommentTreeController
public interface ContextAreaCommentTreeControllerContract definition of controller for ContextAreaCommentTreeComponent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteComment(ContextAreaCommentTreeModel model, CommentModel commentItemModel)Performs delete routine for the given comment instance.CommentIcongetCommentIcon(ContextAreaCommentTreeModel model, CommentModel comment)Returns a correspondingCommentIconcomponent for the target comment instance.CommentLayerComponentgetOwningCommentLayer(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 Detail
-
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
boolean isCommentVisible(ContextAreaCommentTreeModel model, CommentModel comment)
Evaluates if the target comment is currently visible on the comment layer.- Parameters:
model- -ContextAreaCommentTreeModelcomment- - comment instance to check
-
selectComment
void selectComment(ContextAreaCommentTreeModel model, CommentModel commentItemModel)
Performs select routine for the given comment instance.- Parameters:
model- -ContextAreaCommentTreeModelcommentItemModel- - comment instance to select
-
deleteComment
void deleteComment(ContextAreaCommentTreeModel model, CommentModel commentItemModel)
Performs delete routine for the given comment instance.- Parameters:
model- -ContextAreaCommentTreeModelcommentItemModel- - comment instance to select
-
toggleCommentVisible
void toggleCommentVisible(ContextAreaCommentTreeModel model, CommentModel comment)
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
boolean getUserWorkingStatus(AbstractCommentModel comment)
Returns working status of the targetAbstractCommentModelinstance for the current user.- Parameters:
comment- - targetAbstractCommentModelinstance.- Returns:
trueorfalse
-
setUserWorkingStatus
void setUserWorkingStatus(AbstractCommentModel comment, boolean workingStatus)
Sets working status of the targetAbstractCommentModelinstance for the current user.- Parameters:
comment- - targetAbstractCommentModelinstance.workingStatus- - new working status value.
-
isCommentRecordCollapsable
boolean isCommentRecordCollapsable(AbstractCommentModel abstractComment)
Evaluates if the record of the context area comment tree for the givenAbstractCommentModelshould render the collapse/expand control.
-
getCommentIcon
CommentIcon getCommentIcon(ContextAreaCommentTreeModel model, CommentModel comment)
Returns a correspondingCommentIconcomponent for the target comment instance.- Parameters:
model- -ContextAreaCommentTreeModelcomment- - targetCommentModel- Returns:
CommentIconor null
-
-