Interface Renderer<T extends Renderer<T>>
- All Superinterfaces:
BasicRenderer
- All Known Subinterfaces:
ApprovalRenderer
,BaselineCollectionRenderer
,BaselineRenderer
,BuildRenderer
,CategoryRenderer
,CommentBaseRenderer<T>
,CommentRenderer
,DateFieldRenderer
,DocumentRenderer
,EnumOptionRenderer
,FloatFieldRenderer
,HyperlinkUriFieldRenderer
,LinkedOslcResourceRenderer
,LinkedResourcePositionRenderer
,PlanningConstraintRenderer
,PlanRenderer
,ProjectRenderer
,RemoteDataRenderer<T>
,RendererOfIterable
,RevisionRenderer
,RichPageRenderer
,RichTextFieldRenderer
,SignatureRenderer
,TestRecordRenderer
,TestRecordsRenderer
,TestRunRenderer
,TestStepsRenderer
,TimePointRenderer
,UserGroupRenderer
,UserRenderer
,WikiPageRenderer
,WorkflowSignatureRenderer
,WorkItemRenderer
,WorkRecordRenderer
- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptionhtmlFor()
Completes the configuration of rendering options and renders the html for the target that is selected using the returned selector.void
htmlTo
(HtmlContentBuilder builder) Completes the configuration of rendering options and renders the html to the given builder.Shortcut for callingopenLinksInNewWindow(boolean)
withtrue
.openLinksInNewWindow
(boolean value) Configures this renderer so that the links it produces will open in a new window.Shortcut for callingwithBaselineIcon(boolean)
withtrue
.withBaselineIcon
(boolean value) Configures if the baseline icon should be shown.withIcon()
Shortcut for callingwithIcon(boolean)
withtrue
.withIcon
(boolean value) The default istrue
when this method is not called.Shortcut for callingwithLinks(boolean)
withtrue
.withLinks
(boolean value) Configures this renderer to produce links in the result.Shortcut for callingwithRevisionIcon(boolean)
withtrue
.withRevisionIcon
(boolean value) The default value istrue
when the method is not called.withRevisionIconInBaseline
(boolean withRevisionIconInBaseline) IfwithRevisionIconInBaseline(boolean)
is called withtrue
,withRevisionIcon(boolean)
is called withtrue
and the rendered object has no requested revision, then the current baseline's revision (if any) is used as the tooltip on the revision icon.withRevisionOrBaselineIcon
(boolean withRevisionOrBaselineIcon) The default value isfalse
when the method is not called.withText()
Shortcut for callingwithText(boolean)
withtrue
.withText
(boolean value) Default istrue
when this method is not called.
-
Method Details
-
withLinks
Configures this renderer to produce links in the result. The default isfalse
when this method is not called.- Returns:
- The same instance to allow for method chaining.
-
withLinks
Shortcut for callingwithLinks(boolean)
withtrue
. -
openLinksInNewWindow
Configures this renderer so that the links it produces will open in a new window. The default isfalse
when this method is not called.- Returns:
- The same instance to allow for method chaining.
- Since:
- 3.18.0
- See Also:
-
openLinksInNewWindow
Shortcut for callingopenLinksInNewWindow(boolean)
withtrue
.- Since:
- 3.18.0
-
withIcon
The default istrue
when this method is not called.- Returns:
- The same instance to allow for method chaining.
-
withIcon
T withIcon()Shortcut for callingwithIcon(boolean)
withtrue
. -
withText
Default istrue
when this method is not called.- Returns:
- the same instance to allow for method chaining.
-
withText
T withText()Shortcut for callingwithText(boolean)
withtrue
. -
withBaselineIcon
Configures if the baseline icon should be shown. It does not influence other things that depend on the Baseline, for example links whenwithLinks(boolean)
istrue
The default isfalse
when this method is not called.- Returns:
- the same instance to allow for method chaining.
-
withBaselineIcon
T withBaselineIcon()Shortcut for callingwithBaselineIcon(boolean)
withtrue
. -
htmlFor
Completes the configuration of rendering options and renders the html for the target that is selected using the returned selector. This method is automatically called from theObject.toString()
on this object (together with the method on the selector) when the 'implicit target' is set. Currently the implicit target is set when rendering theRichPageWidget
. So, for example, in a Velocity widget you can (and should) render a Work Item by calling just $workItem.render(). (Should always be done like this in widgets or render to the builder created byRichPageRenderingContext.createHtmlFragmentBuilder()
to ensure that the right target is used.)- Specified by:
htmlFor
in interfaceBasicRenderer
-
withRevisionIcon
The default value istrue
when the method is not called.
IfwithIcon(boolean)
was called withfalse
, then this method has no effect at all. IfwithRevisionIcon(boolean)
is called withtrue
, then the value ofwithRevisionOrBaselineIcon
is automatically set tofalse
to prevent the duplication of the icons.- Since:
- 3.9.3
-
withRevisionIcon
Shortcut for callingwithRevisionIcon(boolean)
withtrue
. IfwithRevisionIcon()
is called, then the value ofwithRevisionOrBaselineIcon
is automatically set tofalse
to prevent the duplication of the icons.- Since:
- 3.9.3
-
withRevisionOrBaselineIcon
The default value isfalse
when the method is not called.
IfwithIcon(boolean)
was called withfalse
, then this method has no effect at all. IfwithRevisionOrBaselineIcon(boolean)
is called withtrue
, it shows a revision's icon or (if the revision has a baseline - the baseline's icon) and the number of the revision (the name of the baseline). IfwithRevisionOrBaselineIcon(boolean)
is called withtrue
, then the value ofwithRevisionIcon
is automatically set tofalse
to prevent the duplication of the icons.- Since:
- 3.20.1
-
withRevisionIconInBaseline
IfwithRevisionIconInBaseline(boolean)
is called withtrue
,withRevisionIcon(boolean)
is called withtrue
and the rendered object has no requested revision, then the current baseline's revision (if any) is used as the tooltip on the revision icon.- Since:
- 3.23.4
-