com.sun.rave.web.ui.component.util.descriptors
Class LayoutStaticText

java.lang.Object
  extended by com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase
      extended by com.sun.rave.web.ui.component.util.descriptors.LayoutStaticText
All Implemented Interfaces:
LayoutElement, java.io.Serializable

public class LayoutStaticText
extends LayoutElementBase
implements LayoutElement

This class defines a LayoutStaticText. A LayoutStaticText describes a text to be output to the screen. This element is NOT a UIComponent.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase
AFTER_ENCODE, BEFORE_ENCODE, ENCODE
 
Constructor Summary
LayoutStaticText(LayoutElement parent, java.lang.String id, java.lang.String value)
           Constructor.
 
Method Summary
protected  boolean encodeThis(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           This method displays the text described by this component.
 java.lang.String getValue()
           
 
Methods inherited from class com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase
addChildLayoutElement, createHandlerContext, dispatchHandlers, dispatchHandlers, encode, encodeChild, getChildLayoutElements, getHandlers, getHandlers, getHandlersByTypeMap, getId, getLayoutDefinition, getParent, getUnevaluatedId, resolveValue, setHandlers, setHandlersByTypeMap, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.rave.web.ui.component.util.descriptors.LayoutElement
addChildLayoutElement, dispatchHandlers, dispatchHandlers, encode, getChildLayoutElements, getHandlers, getId, getLayoutDefinition, getParent, getUnevaluatedId, setHandlers
 

Constructor Detail

LayoutStaticText

public LayoutStaticText(LayoutElement parent,
                        java.lang.String id,
                        java.lang.String value)

Constructor.

Method Detail

getValue

public java.lang.String getValue()

encodeThis

protected boolean encodeThis(javax.faces.context.FacesContext context,
                             javax.faces.component.UIComponent component)
                      throws java.io.IOException

This method displays the text described by this component. If the text includes an EL expression, it will be evaluated. It returns false to avoid attempting to render children.

Specified by:
encodeThis in class LayoutElementBase
Parameters:
context - The FacesContext
component - The UIComponent
Returns:
false
Throws:
java.io.IOException