Package lumis.doui.render
Class CharSequenceRenderableWrapper
- java.lang.Object
-
- lumis.doui.render.CharSequenceRenderableWrapper
-
- All Implemented Interfaces:
java.lang.CharSequence
,IRenderable
- Direct Known Subclasses:
EmailDataType.Data
,LocalizableCharSequenceValue
,OptionLookupValue
,RenderDataValue
@StableMinor(version="16.0", sinceVersion="4.0") public class CharSequenceRenderableWrapper extends java.lang.Object implements java.lang.CharSequence, IRenderable
Wraps aCharSequence
andIRenderable
instances into an object that implements both interfaces.- Since:
- 4.0.4
- Version:
- $Revision: 25809 $ $Date: 2023-07-04 15:23:22 -0300 (Tue, 04 Jul 2023) $
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.CharSequence
charSequence
The wrappedCharSequence
object.protected IRenderable
renderable
The wrappedIRenderable
object.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CharSequenceRenderableWrapper(java.lang.CharSequence charSequence)
CharSequenceRenderableWrapper(java.lang.CharSequence charSequence, IRenderable renderable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
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.int
length()
java.lang.CharSequence
subSequence(int start, int end)
java.lang.String
toString()
-
-
-
Field Detail
-
charSequence
protected java.lang.CharSequence charSequence
The wrappedCharSequence
object.- Since:
- 4.0.4
-
renderable
protected IRenderable renderable
The wrappedIRenderable
object.- Since:
- 4.0.4
-
-
Constructor Detail
-
CharSequenceRenderableWrapper
public CharSequenceRenderableWrapper(java.lang.CharSequence charSequence, IRenderable renderable)
-
CharSequenceRenderableWrapper
protected CharSequenceRenderableWrapper(java.lang.CharSequence charSequence)
-
-
Method Detail
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfacejava.lang.CharSequence
-
length
public int length()
- Specified by:
length
in interfacejava.lang.CharSequence
-
subSequence
public java.lang.CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfacejava.lang.CharSequence
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.CharSequence
- Overrides:
toString
in classjava.lang.Object
-
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
- 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
- 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
-
-