@API(type=EXTENDABLE,
src=PUBLIC)
public abstract class CalloutsRenderingInformationProvider
extends java.lang.Object
handlesAlsoDefaultHighlights()
to
handle also built-in persistent highlights (comment, insertion or deletion change).
AuthorCalloutsController
methods.
AuthorCalloutsController.setCalloutsRenderingInformationProvider(CalloutsRenderingInformationProvider)
Constructor and Description |
---|
CalloutsRenderingInformationProvider() |
Modifier and Type | Method and Description |
---|---|
abstract AuthorCalloutRenderingInformation |
getCalloutRenderingInformation(AuthorPersistentHighlight highlight)
Get the callout rendering information associated with a persistent highlight.
|
boolean |
handlesAlsoDefaultHighlights()
Return
true if you want the rendering information provider to be also called for built-in persistent
highlights (comment, insertion or deletion change). |
abstract boolean |
shouldRenderAsCallout(AuthorPersistentHighlight highlight)
Asks if a custom persistent highlight should be rendered as a callout in the Author mode.
|
public CalloutsRenderingInformationProvider()
public abstract AuthorCalloutRenderingInformation getCalloutRenderingInformation(AuthorPersistentHighlight highlight)
shouldRenderAsCallout(AuthorPersistentHighlight)
returns true
. handlesAlsoDefaultHighlights()
method to return true
.
highlight
- The Author persistent highlight. The type of the highlight can be obtained by using the AuthorPersistentHighlight.getType()
null
if the highlight must not be rendered in Author as a
callout.public abstract boolean shouldRenderAsCallout(AuthorPersistentHighlight highlight)
true
, the callout rendering information
for this callout must be provided by getCalloutRenderingInformation(AuthorPersistentHighlight)
method.
highlight
- The Author custom persistent highlight.true
if the highlight can be rendered as a callout in Author mode.public boolean handlesAlsoDefaultHighlights()
true
if you want the rendering information provider to be also called for built-in persistent
highlights (comment, insertion or deletion change). The callout rendering information is requested only if the application
preferences are configured to show callouts for these highlight types.
By default the rendering information provider is called only for custom highlights.
true
if the getCalloutRenderingInformation(AuthorPersistentHighlight)
method should be called also for
built-in persistent highlights (comment, insertion or deletion change).© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.