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