Package io.keikai.model.impl
Class ThreadedCommentImpl
java.lang.Object
io.keikai.model.impl.ThreadedCommentImpl
- All Implemented Interfaces:
SThreadedComment,Serializable
Default implementation of
SThreadedComment.- Since:
- 7.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThreadedCommentImpl(String id, String text, SThreadedCommentAuthor author, Date createdDate, String parentId, int row, int col) Creates a new threaded comment. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReply(SThreadedComment reply) Adds a reply to this comment.booleanReturns the author of this comment.intgetCol()Returns the column index of the cell this comment is attached to.Returns the date and time when this comment was created.getId()Returns the unique identifier (GUID) of this comment.Returns the parent comment's ID, or null if this is a root comment.Returns the list of direct replies to this comment.intgetRow()Returns the row index of the cell this comment is attached to.getText()Returns the text content of this comment.inthashCode()booleanReturns whether this comment thread is resolved.voidsetResolved(boolean resolved) Sets the resolved state of this comment thread.voidSets the text content of this comment.toString()
-
Constructor Details
-
ThreadedCommentImpl
public ThreadedCommentImpl(String id, String text, SThreadedCommentAuthor author, Date createdDate, String parentId, int row, int col) Creates a new threaded comment.- Parameters:
id- the unique GUIDtext- the comment textauthor- the authorcreatedDate- the creation dateparentId- the parent comment ID, or null for root commentsrow- the row index (0-based)col- the column index (0-based)
-
-
Method Details
-
getId
Description copied from interface:SThreadedCommentReturns the unique identifier (GUID) of this comment.- Specified by:
getIdin interfaceSThreadedComment- Returns:
- the comment GUID
-
getText
Description copied from interface:SThreadedCommentReturns the text content of this comment.- Specified by:
getTextin interfaceSThreadedComment- Returns:
- the comment text
-
setText
Description copied from interface:SThreadedCommentSets the text content of this comment.- Specified by:
setTextin interfaceSThreadedComment- Parameters:
text- the new text
-
getAuthor
Description copied from interface:SThreadedCommentReturns the author of this comment.- Specified by:
getAuthorin interfaceSThreadedComment- Returns:
- the author
-
getCreatedDate
Description copied from interface:SThreadedCommentReturns the date and time when this comment was created.- Specified by:
getCreatedDatein interfaceSThreadedComment- Returns:
- the created date
-
getParentId
Description copied from interface:SThreadedCommentReturns the parent comment's ID, or null if this is a root comment.- Specified by:
getParentIdin interfaceSThreadedComment- Returns:
- the parent ID, or null
-
getReplies
Description copied from interface:SThreadedCommentReturns the list of direct replies to this comment.- Specified by:
getRepliesin interfaceSThreadedComment- Returns:
- an unmodifiable list of replies
-
addReply
Adds a reply to this comment. Package-private for use by SheetImpl.- Parameters:
reply- the reply comment
-
isResolved
public boolean isResolved()Description copied from interface:SThreadedCommentReturns whether this comment thread is resolved.- Specified by:
isResolvedin interfaceSThreadedComment- Returns:
- true if resolved
-
setResolved
public void setResolved(boolean resolved) Description copied from interface:SThreadedCommentSets the resolved state of this comment thread.- Specified by:
setResolvedin interfaceSThreadedComment- Parameters:
resolved- true to mark as resolved
-
getRow
public int getRow()Description copied from interface:SThreadedCommentReturns the row index of the cell this comment is attached to.- Specified by:
getRowin interfaceSThreadedComment- Returns:
- the row index (0-based)
-
getCol
public int getCol()Description copied from interface:SThreadedCommentReturns the column index of the cell this comment is attached to.- Specified by:
getColin interfaceSThreadedComment- Returns:
- the column index (0-based)
-
equals
-
hashCode
public int hashCode() -
toString
-