Renderer

API

Renderer.java
interface Renderer<T> {
  String titlePresentation(ValueSemanticsProvider.Context context, T value)     (1)
  String htmlPresentation(ValueSemanticsProvider.Context context, T value)     (2)
  SyntaxHighlighter syntaxHighlighter()     (3)
}
1 titlePresentation(ValueSemanticsProvider_Context, T)

The value in its read-only summarizing text presentation form. (title form)

2 htmlPresentation(ValueSemanticsProvider_Context, T)

The value rendered as HTML.

3 syntaxHighlighter()

Governs whether, to switch on client-side syntax highlighting.

Members

titlePresentation(ValueSemanticsProvider_Context, T)

The value in its read-only summarizing text presentation form. (title form)

htmlPresentation(ValueSemanticsProvider_Context, T)

The value rendered as HTML.

Default implementation uses the 'escaped' titlePresentation. Override for custom HTML, but be aware of potential XSS attack vectors.

syntaxHighlighter()

Governs whether, to switch on client-side syntax highlighting.