lumis.doui.source.field
Class OptionLookupValue

Package class diagram package OptionLookupValue
java.lang.Object
  extended by lumis.doui.render.CharSequenceRenderableWrapper
      extended by lumis.doui.source.field.OptionLookupValue
All Implemented Interfaces:
CharSequence, IRenderable

public class OptionLookupValue
extends CharSequenceRenderableWrapper

A CharSequence value that when is rendered the corresponding option value is returned.

Since:
4.0.4

Field Summary
 
Fields inherited from class lumis.doui.render.CharSequenceRenderableWrapper
charSequence, renderable
 
Constructor Summary
OptionLookupValue(CharSequence value, 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
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OptionLookupValue

public OptionLookupValue(CharSequence value,
                         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 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 interface IRenderable
Overrides:
getRenderData in class CharSequenceRenderableWrapper
Parameters:
renderer - the renderer object that will use the returned render data.
Returns:
the xml data for this object.
Throws:
PortalException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.