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)
ReplyHeader(String title, String previewContent, int previewIcon, int previewIconColor, float previewIconOpacity, boolean hasUnreadReplies, AnnotReviewState reviewState)
Public Methods
boolean equals(Object o)
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)
Helper method to get a reply header title from a given annotation content and type.
boolean hasUnreadReplies()
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

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

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

Public Methods

public boolean equals (Object o)

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)

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 hasUnreadReplies ()

public int hashCode ()