public interface UILabelRenderer extends UIRenderer
Note: Inserting HTML code in labels may result in display issues for foreign key input fields, since the user interface includes measures to protect against cross-site scripting attempts.
A specific user interface label renderer component may be associated with any table
to render its records or a foreign key constraint.
The component must be declared under the element
<osd:table>
, whether or not it is in association with standard
<osd:defaultLabel>
elements. For example:
where<xs:annotation> <xs:appinfo> <osd:table> <primaryKeys>/AssortmentID</primaryKeys> <defaultLabel>Assortment: ${./AssortmentID}</defaultLabel> <defaultLabel xml:lang="fr-FR">Assortiment: ${./AssortmentID}</defaultLabel> <defaultLabel xml:lang="en-US">Assortment: ${./AssortmentID}</defaultLabel> <defaultLabel osd:class="com.foo.AssortmentLabelRenderer"/> <osd:table> <xs:appinfo> </xs:annotation>
com.foo.AssortmentLabelRenderer
is
the fully qualified name of a class implementing this interface.Modifier and Type | Method and Description |
---|---|
void |
displayLabel(UILabelRendererContext context)
Writes a user-friendly label to the specified context.
|
void displayLabel(UILabelRendererContext context)
The implementation of this method must support the execution of multiple concurrent threads.