public interface ElementLabel extends ElementGroup
isUsePatternMarkupToRender()
returns true.
Objects implementing this interface are attached to the specified DOM element this element usually is not empty.
Modifier and Type | Method and Description |
---|---|
void |
addLabelMarkup()
Adds the label pattern markup inside the label element.
|
void |
addLabelMarkup(java.lang.Object value)
Adds the label pattern markup inside the label element and renders the specified value.
|
org.w3c.dom.DocumentFragment |
getContentPatternFragment()
Returns the pattern used to render values if
isUsePatternMarkupToRender()
is true. |
ElementLabelRenderer |
getElementLabelRenderer()
Returns the current renderer used by this label.
|
boolean |
hasLabelMarkup()
Informs whether this label contains markup.
|
boolean |
isUsePatternMarkupToRender()
Informs whether the original (saved as pattern) markup is used to render.
|
void |
removeLabelMarkup()
Removes the label markup inside the label element.
|
void |
setElementLabelRenderer(ElementLabelRenderer renderer)
Sets the renderer used by this label.
|
void |
setLabelValue(java.lang.Object value)
Renders the specified value into the label
using the current renderer.
|
void |
setUsePatternMarkupToRender(boolean value)
Sets whether the original (saved as pattern) markup is used to render.
|
getItsNatDocument, getParentElement
containsUserValueName, getUserValue, getUserValueNames, removeUserValue, setUserValue
ElementLabelRenderer getElementLabelRenderer()
setElementLabelRenderer(ElementLabelRenderer)
void setElementLabelRenderer(ElementLabelRenderer renderer)
renderer
- the new renderer.getElementLabelRenderer()
boolean isUsePatternMarkupToRender()
The default value is defined by ItsNatDocument.isUsePatternMarkupToRender()
setUsePatternMarkupToRender(boolean)
void setUsePatternMarkupToRender(boolean value)
value
- true to enable the use of original markup to render.isUsePatternMarkupToRender()
org.w3c.dom.DocumentFragment getContentPatternFragment()
isUsePatternMarkupToRender()
is true.void setLabelValue(java.lang.Object value)
value
- the value to render.getElementLabelRenderer()
,
addLabelMarkup(Object)
,
ElementRenderer.render(Object,Object,Element,boolean)
boolean hasLabelMarkup()
void addLabelMarkup()
addLabelMarkup(Object)
void addLabelMarkup(java.lang.Object value)
value
- the value to render.setLabelValue(Object)
void removeLabelMarkup()
addLabelMarkup()
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.