public class

ReplyHeader

extends Object
java.lang.Object
   ↳ com.pdftron.collab.ui.reply.model.ReplyHeader

Class Overview

View state model representing the content/information in the reply header.

Summary

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

Public Constructors

public ReplyHeader (Context context, Annot annot, boolean hasUnreadReplies, boolean hasAnnotList, boolean hasReviewState)

public ReplyHeader (Context context, Annot annot, boolean hasUnreadReplies, boolean hasAnnotList, boolean hasReviewState, boolean disableCommentEdit)

public ReplyHeader (Context context, AnnotationEntity annotationEntity)

public ReplyHeader (String title, String previewContent, int previewIcon, int previewIconColor, float previewIconOpacity, boolean hasUnreadReplies, boolean hasAnnotList, boolean hasReviewState, AnnotReviewState reviewState)

Public Methods

public boolean equals (Object o)

public String getId ()

public int getPageNum ()

public String getPreviewContent ()

public int getPreviewIcon ()

public int getPreviewIconColor ()

public float getPreviewIconOpacity ()

public AnnotReviewState getReviewState ()

public String getTitle ()

public static String getTitleFromAnnot (Context context, Annot annot)

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.

Parameters
context used to get string resources
annot used to determine the title
Returns
  • reply header title generated from the given Annot

public 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.

Parameters
context used to get string resources
content content of the annotation
type annotation type ID
author author name
Returns
  • reply header title generated from the given content and type

public static String getTitleFromContent (Context context, String content, int type)

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.

Parameters
context used to get string resources
content content of the annotation
type annotation type ID
Returns
  • reply header title generated from the given content and type

public boolean hasAnnotationList ()

public boolean hasReviewState ()

public boolean hasUnreadReplies ()

public int hashCode ()

public boolean isCommentEditable ()

public void setCommentEditable (boolean editable)

public void setHasAnnotList (boolean hasAnnotList)

public void setHasReviewState (boolean hasReviewState)

public void setId (String id)

public void setPageNumber (int pageNumber)

public static ReplyHeader updatePreviewContent (ReplyHeader oldReplyHeader, String previewContent)

public static ReplyHeader updateReviewState (ReplyHeader oldReplyHeader, AnnotReviewState reviewState)

public static ReplyHeader updateUnreadReplies (ReplyHeader oldReplyHeader, boolean hasUnreadReplies)