Class AuthorReviewRenderingInformation

java.lang.Object
ro.sync.ecss.extensions.api.review.AuthorReviewRenderingInformation

@API(type=EXTENDABLE, src=PUBLIC) public abstract class AuthorReviewRenderingInformation extends Object
The review view entries are representations of Track Changes insert and delete highlights and review comment highlights highlights in Author mode.
Since:
17.1
  • Constructor Details

    • AuthorReviewRenderingInformation

      public AuthorReviewRenderingInformation()
  • Method Details

    • getAuthor

      public String getAuthor()
      Provides the reviewer author name that will be presented in the review view entry.
      Returns:
      the reviewer author name. Can be null if the default author must be used
    • getTimestamp

      public long getTimestamp()
      Provides the review creation or modification time.
      Returns:
      the review creation or modification time. Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT

      Can be -1 if the modification time was not set. In this case, the review view will present the default detected timestamp.

    • getTooltip

      public String getTooltip()
      Get tooltip to show when hovering over the review entry. By default this shows the review creation or modification time.
      Returns:
      the tooltip to show when hovering over the review entry.

      Can be null to use the default behavior.

    • getComment

      public String getComment(int limit)
      Provides the review comment that will be presented in the review entry. This could be a part of the real comment stored in the change or persistent highlight.
      Parameters:
      limit - the suggested text limit (in characters).
      Returns:
      the review comment. Can be null if you want the default processing to be performed.
    • getContentFromTarget

      public String getContentFromTarget(int limit)
      Provides a section from the document content that is covered by this review entry. This will be presented in the content part of the review entry. Note that it is not necessary to provide the entire content related to the review entry.
      Parameters:
      limit - the suggested text limit (in characters).
      Returns:
      the limited document content. Can be null if the content should be processed using the default behavior.
    • getColor

      public Color getColor()
      Provides color for styling the associated review entry box.
      Returns:
      The color to be used for rendering the review entry. Can be null for the default.
    • getIconPath

      public String getIconPath()
      Provides the icon URL path for styling the associated review entry box.
      Returns:
      The icon to be used for rendering the review entry. Can be null for the default.