Package lumis.doui.source.field
Class OptionLookupValue
- java.lang.Object
-
- lumis.doui.render.CharSequenceRenderableWrapper
-
- lumis.doui.source.field.OptionLookupValue
-
- All Implemented Interfaces:
java.lang.CharSequence
,IRenderable
public class OptionLookupValue extends CharSequenceRenderableWrapper
ACharSequence
value that when is rendered the corresponding option value is returned.- Since:
- 4.0.4
- Version:
- $Revision: 6251 $ $Date: 2007-03-27 10:49:29 -0300 (Tue, 27 Mar 2007) $
-
-
Field Summary
-
Fields inherited from class lumis.doui.render.CharSequenceRenderableWrapper
charSequence, renderable
-
-
Constructor Summary
Constructors Constructor Description OptionLookupValue(java.lang.CharSequence value, org.w3c.dom.Node optionsNode)
Creates a option lookup renderable for the given value that uses the given options node to find the corresponding option value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getRenderData(IRenderer renderer)
Returns the data of this object in a standard xml format.-
Methods inherited from class lumis.doui.render.CharSequenceRenderableWrapper
charAt, getDisplayString, length, subSequence, toString
-
-
-
-
Constructor Detail
-
OptionLookupValue
public OptionLookupValue(java.lang.CharSequence value, org.w3c.dom.Node optionsNode)
Creates a option lookup renderable for the given value that uses the given options node to find the corresponding option value.- Parameters:
value
- the CharSequence value.optionsNode
- the options node. During render it is searched for a tag option with attribute value equals to the value parameter, and the text context of such tag is localized and used.- Since:
- 4.0.4
-
-
Method Detail
-
getRenderData
public java.lang.String getRenderData(IRenderer renderer) throws PortalException
Description copied from interface:IRenderable
Returns the data of this object in a standard xml format.- Specified by:
getRenderData
in interfaceIRenderable
- Overrides:
getRenderData
in classCharSequenceRenderableWrapper
- Parameters:
renderer
- the renderer object that will use the returned render data.- Returns:
- the xml data for this object.
- Throws:
PortalException
-
-