Package lumis.doui.render
Class RenderDataValue
- java.lang.Object
-
- lumis.doui.render.CharSequenceRenderableWrapper
-
- lumis.doui.render.RenderDataValue
-
- All Implemented Interfaces:
java.lang.CharSequence
,IRenderable
@StableMinor(version="17.0", sinceVersion="4.0") public class RenderDataValue extends CharSequenceRenderableWrapper
Allows aCharSequence
value to be used directly as the render data.- Since:
- 4.0.10
- Version:
- $Revision$ $Date$
-
-
Field Summary
-
Fields inherited from class lumis.doui.render.CharSequenceRenderableWrapper
charSequence, renderable
-
-
Constructor Summary
Constructors Constructor Description RenderDataValue(java.lang.CharSequence value)
Creates a new RenderDataValue that uses the givenCharSequence
asgetDisplayString(IRenderer)
andgetRenderData(IRenderer)
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDisplayString(IRenderer renderer)
Returns the string to be displayed for representing this instance, when a short display is required.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, length, subSequence, toString
-
-
-
-
Constructor Detail
-
RenderDataValue
public RenderDataValue(java.lang.CharSequence value)
Creates a new RenderDataValue that uses the givenCharSequence
asgetDisplayString(IRenderer)
andgetRenderData(IRenderer)
. If the given value is null, an empty string will be used instead.- Parameters:
value
- the string.- Since:
- 4.0.10
-
-
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
-
getDisplayString
public java.lang.String getDisplayString(IRenderer renderer) throws PortalException
Description copied from interface:IRenderable
Returns the string to be displayed for representing this instance, when a short display is required.- Specified by:
getDisplayString
in interfaceIRenderable
- Overrides:
getDisplayString
in classCharSequenceRenderableWrapper
- Parameters:
renderer
- the renderer object that will use the returned render data.- Returns:
- the string to be used to friendly display this instance.
- Throws:
PortalException
-
-