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

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

public class LayoutAttribute
extends LayoutElementBase
implements LayoutElement

This class defines a LayoutAttribute. A LayoutAttribute provides a means to write an attribute for the current markup tag. A markup tag must be started, but not yet closed for this to work.

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
LayoutAttribute(LayoutElement parent, java.lang.String name, java.lang.String value, java.lang.String property)
           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 getName()
           
 java.lang.String getProperty()
           
 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

LayoutAttribute

public LayoutAttribute(LayoutElement parent,
                       java.lang.String name,
                       java.lang.String value,
                       java.lang.String property)

Constructor.

Method Detail

getName

public java.lang.String getName()

getValue

public java.lang.String getValue()

getProperty

public java.lang.String getProperty()

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