| org.itsnat.core.domutil.ElementLabelRenderer
All known Subclasses: org.itsnat.impl.core.domutil.ElementLabelRendererDefaultImpl,
Method Summary | |
public void | renderLabel(ElementLabel label, Object value, Element elem, boolean isNew) Renders as markup the specified value into the specified element of the label.
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.
Parameters: label - the target label. Parameters: value - the value to render. Parameters: elem - the DOM element to render the value inside. | public void | unrenderLabel(ElementLabel label, Element elem) Unrenders the label markup. |
renderLabel | public void renderLabel(ElementLabel label, Object value, Element elem, boolean isNew)(Code) | | Renders as markup the specified value into the specified element of the label.
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.
Parameters: label - the target label. Parameters: value - the value to render. Parameters: elem - the DOM element to render the value inside. This element is a hint, if provided, should be obtained by calling ElementLabel.getParentElement. Parameters: isNew - true if this is the first time the markup is rendered. Default implementation ignores this parameter. |
unrenderLabel | public void unrenderLabel(ElementLabel label, Element elem)(Code) | | Unrenders the label markup. This method is called before the markup
is removed.
Default implementation does nothing.
Parameters: label - the target label. Parameters: elem - the DOM element used to render the label. This element is a hint, if provided, should be obtained by calling ElementLabel.getParentElement>. |
|
|