@Role public interface HTMLDisplayerManager
Modifier and Type | Method and Description |
---|---|
<T> String |
display(Type targetType,
T value) |
<T> String |
display(Type targetType,
T value,
Map<String,String> parameters) |
<T> String |
display(Type targetType,
T value,
Map<String,String> parameters,
String mode) |
<T> HTMLDisplayer<T> |
getHTMLDisplayer(Type targetType)
Retrieve the appropriate HTML Displayer based on the given type.
|
<T> HTMLDisplayer<T> |
getHTMLDisplayer(Type targetType,
String roleHint)
Retrieve the appropriate HTML Displayer based on the given type and hint.
|
<T> HTMLDisplayer<T> getHTMLDisplayer(Type targetType) throws HTMLDisplayerException
T
- the type of the HTML DisplayertargetType
- the type used to retrieve the HTML Displayer<T>
HTMLDisplayerException
- if the HTML Displayer cannot be found<T> HTMLDisplayer<T> getHTMLDisplayer(Type targetType, String roleHint) throws HTMLDisplayerException
T
- the type of the HTML DisplayertargetType
- the type used to retrieve the HTML DisplayerroleHint
- the component hint. Could be null for default component<T>
HTMLDisplayerException
- if the HTML Displayer cannot be found<T> String display(Type targetType, T value) throws HTMLDisplayerException
T
- the type of the HTML DisplayertargetType
- the type used to retrieve the HTML Displayervalue
- the value on which the display is based onHTMLDisplayerException
- if an error occurs during the display<T> String display(Type targetType, T value, Map<String,String> parameters) throws HTMLDisplayerException
T
- the type of the HTML DisplayertargetType
- the type used to retrieve the HTML Displayervalue
- the value on which the display is based onparameters
- parameters used while generating the html. Could be the attributes of an input for instance.HTMLDisplayerException
- if an error occurs during the display<T> String display(Type targetType, T value, Map<String,String> parameters, String mode) throws HTMLDisplayerException
T
- the type of the HTML DisplayertargetType
- the type used to retrieve the HTML Displayervalue
- the value on which the display is based onparameters
- parameters used while generating the html. Could be the attributes of an input for instance.mode
- the display mode (view, edit, ...)HTMLDisplayerException
- if an error occurs during the displayCopyright © 2004–2021 XWiki. All rights reserved.