public interface ElementLabelRenderer
ElementLabel objects to render the associated value.ElementLabel.setElementLabelRenderer(ElementLabelRenderer),
ElementGroupManager.createDefaultElementLabelRenderer()| Modifier and Type | Method and Description |
|---|---|
void |
renderLabel(ElementLabel label,
Object value,
Element elem,
boolean isNew)
Renders as markup the specified value into the specified element of the label.
|
void |
unrenderLabel(ElementLabel label,
Element elem)
Unrenders the label markup.
|
void renderLabel(ElementLabel label, Object value, Element elem, boolean isNew)
The specified element must be used to render the value below, usually as a text node.
Default implementation renders the specified value inside the first text node found below the specified content element.
label - the target label.value - the value to render.elem - the DOM element to render the value inside. This element
is a hint, if provided, should be obtained by calling ElementGroup.getParentElement().isNew - true if this is the first time the markup is rendered. Default implementation ignores this parameter.void unrenderLabel(ElementLabel label, Element elem)
Default implementation does nothing.
label - the target label.elem - the DOM element used to render the label. This element
is a hint, if provided, should be obtained by calling ElementGroup.getParentElement()>.Copyright © Innowhere Software, Jose Maria Arranz Santamaria.