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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides the reviewer author name that will be presented in the review view entry.getColor()
Provides color for styling the associated review entry box.getComment
(int limit) Provides the review comment that will be presented in the review entry.getContentFromTarget
(int limit) Provides a section from the document content that is covered by this review entry.Provides the icon URL path for styling the associated review entry box.long
Provides the review creation or modification time.Get tooltip to show when hovering over the review entry.
-
Constructor Details
-
AuthorReviewRenderingInformation
public AuthorReviewRenderingInformation()
-
-
Method Details
-
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
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
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
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
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
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.
-