Package lumis.doui.source.field
Class LocalizableCharSequenceValue
- java.lang.Object
-
- lumis.doui.render.CharSequenceRenderableWrapper
-
- lumis.doui.source.field.LocalizableCharSequenceValue
-
- All Implemented Interfaces:
CharSequence
,IRenderable
public class LocalizableCharSequenceValue extends CharSequenceRenderableWrapper
ACharSequence
that when is rendered using itsIRenderable
interface it is localized to the current locale.- Since:
- 4.0.4
- Version:
- $Revision: 6424 $ $Date: 2007-04-12 16:35:11 -0300 (Thu, 12 Apr 2007) $
-
-
Field Summary
-
Fields inherited from class lumis.doui.render.CharSequenceRenderableWrapper
charSequence, renderable
-
-
Constructor Summary
Constructors Constructor Description LocalizableCharSequenceValue(CharSequence charSequence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayString(IRenderer renderer)
Returns the string to be displayed for representing this instance, when a short display is required.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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Constructor Detail
-
LocalizableCharSequenceValue
public LocalizableCharSequenceValue(CharSequence charSequence)
-
-
Method Detail
-
getRenderData
public 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 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
-
-