java.lang.Object | |
↳ | com.pdftron.collab.ui.reply.model.ReplyHeader |
View state model representing the content/information in the reply header.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ReplyHeader(Context context, Annot annot, boolean hasUnreadReplies, boolean hasAnnotList, boolean hasReviewState) | |||||||||||
ReplyHeader(Context context, Annot annot, boolean hasUnreadReplies, boolean hasAnnotList, boolean hasReviewState, boolean disableCommentEdit) | |||||||||||
ReplyHeader(Context context, AnnotationEntity annotationEntity) | |||||||||||
ReplyHeader(String title, String previewContent, int previewIcon, int previewIconColor, float previewIconOpacity, boolean hasUnreadReplies, boolean hasAnnotList, boolean hasReviewState, AnnotReviewState reviewState) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
String | getId() | ||||||||||
int | getPageNum() | ||||||||||
String | getPreviewContent() | ||||||||||
int | getPreviewIcon() | ||||||||||
int | getPreviewIconColor() | ||||||||||
float | getPreviewIconOpacity() | ||||||||||
AnnotReviewState | getReviewState() | ||||||||||
String | getTitle() | ||||||||||
static String |
getTitleFromAnnot(Context context, Annot annot)
Helper method to get a reply header title from a given
Annot . | ||||||||||
static String |
getTitleFromContent(Context context, String content, int type, String author)
Returns string from
getTitleFromContent(Context, String, int) with the author
name appended to the beginning of the string. | ||||||||||
static String |
getTitleFromContent(Context context, String content, int type)
Helper method to get a reply header title from a given annotation content and type.
| ||||||||||
boolean | hasAnnotationList() | ||||||||||
boolean | hasReviewState() | ||||||||||
boolean | hasUnreadReplies() | ||||||||||
int | hashCode() | ||||||||||
boolean | isCommentEditable() | ||||||||||
void | setCommentEditable(boolean editable) | ||||||||||
void | setHasAnnotList(boolean hasAnnotList) | ||||||||||
void | setHasReviewState(boolean hasReviewState) | ||||||||||
void | setId(String id) | ||||||||||
void | setPageNumber(int pageNumber) | ||||||||||
static ReplyHeader | updatePreviewContent(ReplyHeader oldReplyHeader, String previewContent) | ||||||||||
static ReplyHeader | updateReviewState(ReplyHeader oldReplyHeader, AnnotReviewState reviewState) | ||||||||||
static ReplyHeader | updateUnreadReplies(ReplyHeader oldReplyHeader, boolean hasUnreadReplies) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Helper method to get a reply header title from a given Annot
. It will use the
annotation content and if that is unavailable it will use the annotation type name.
context | used to get string resources |
---|---|
annot | used to determine the title |
Annot
Returns string from getTitleFromContent(Context, String, int)
with the author
name appended to the beginning of the string.
context | used to get string resources |
---|---|
content | content of the annotation |
type | annotation type ID |
author | author name |
Helper method to get a reply header title from a given annotation content and type. It will use the annotation contents and if that is unavailable it will use the annotation type name.
context | used to get string resources |
---|---|
content | content of the annotation |
type | annotation type ID |