org.apache.myfaces.trinidadinternal.uinode
Class UIXComponentUINode

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode
      extended by org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
All Implemented Interfaces:
UINode

public class UIXComponentUINode
extends UIComponentUINode

Subclass for UIX components.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/uinode/UIXComponentUINode.java#0 $) $Date: 10-nov-2005.18:49:20 $
Author:
The Oracle ADF Faces Team

Constructor Summary
UIXComponentUINode(org.apache.myfaces.trinidad.component.UIXComponent component, java.lang.String namespace, AttributeMap attributes)
           
 
Method Summary
protected  AttributeMap getAttributeMap(boolean createIfNull)
          Returns the AttributeMap used to store attributes.
 java.util.Iterator<AttributeKey> getAttributeNames(UIXRenderingContext context)
          Returns an Iterator of the names that attribute values have been added under.
 java.lang.Object getAttributeValue(UIXRenderingContext context, AttributeKey attrKey)
          Returns the value of the attribute with the specified name in the RenderingContext.
protected  java.lang.Object getAttributeValueImpl(UIXRenderingContext context, AttributeKey attrKey, boolean returnBoundValue)
          Bottleneck method for all attribute getting.
 NodeRole getNodeRole(UIXRenderingContext context)
          Returns the role that this node occupies.
 java.lang.Object getRawAttributeValue(UIXRenderingContext context, AttributeKey attrKey)
          Returns the value of the attribute with a specified name, without attempting to further resolve that value - as if , for instance, it might be a BoundValue.
protected  Renderer getRenderer(UIXRenderingContext context, UINode dataNode)
           
 void postrenderInternal(UIXRenderingContext context, UINode dataNode)
           
 void prerenderInternal(UIXRenderingContext context, UINode dataNode)
           
 void renderInternal(UIXRenderingContext context, UINode dataNode)
           
 void setAttributeValue(AttributeKey attrKey, java.lang.Object value)
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode
getAttributeValue, getChildNames, getChildNames, getID, getIndexedChild, getIndexedChild, getIndexedChildCount, getIndexedChildCount, getLocalName, getNamedChild, getNamedChild, getNamespaceURI, getUIComponent, render, render, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UIXComponentUINode

public UIXComponentUINode(org.apache.myfaces.trinidad.component.UIXComponent component,
                          java.lang.String namespace,
                          AttributeMap attributes)
Method Detail

getNodeRole

public NodeRole getNodeRole(UIXRenderingContext context)
Returns the role that this node occupies.

Specified by:
getNodeRole in interface UINode
Overrides:
getNodeRole in class UIComponentUINode

getAttributeNames

public java.util.Iterator<AttributeKey> getAttributeNames(UIXRenderingContext context)
Description copied from interface: UINode
Returns an Iterator of the names that attribute values have been added under. The actual values for these attributes may be retrieved by passing the AttributeKeys returned by this Iterator to getAttributeValue.

If the UINode is mutable and may be modified and read in different threads, it is the programmer's responsibility to ensure proper synchronization.

Specified by:
getAttributeNames in interface UINode
Overrides:
getAttributeNames in class UIComponentUINode
See Also:
UINode.getAttributeValue(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.AttributeKey)

setAttributeValue

public void setAttributeValue(AttributeKey attrKey,
                              java.lang.Object value)
Overrides:
setAttributeValue in class UIComponentUINode

getAttributeValue

public java.lang.Object getAttributeValue(UIXRenderingContext context,
                                          AttributeKey attrKey)
Returns the value of the attribute with the specified name in the RenderingContext. If no attribute with the specified name exists in this UINode, or a checked Exception occurs in retrieving the value of the attribute, null will be returned.

Note that as with indexed children and named children, the presence of of an attribute is no guarantee that the Renderer used to render this UINode will actually use the attribute. The presence of attributes should only be considered as hints to the Renderer.

If the UINode is mutable and may be modified and read in different threads, it is the programmer's responsibility to ensure proper synchronization.

Specified by:
getAttributeValue in interface UINode
Overrides:
getAttributeValue in class UIComponentUINode
See Also:
getAttributeNames(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext)

getRawAttributeValue

public java.lang.Object getRawAttributeValue(UIXRenderingContext context,
                                             AttributeKey attrKey)
Returns the value of the attribute with a specified name, without attempting to further resolve that value - as if , for instance, it might be a BoundValue.

Specified by:
getRawAttributeValue in interface UINode
Overrides:
getRawAttributeValue in class UIComponentUINode
See Also:
BoundValue

renderInternal

public void renderInternal(UIXRenderingContext context,
                           UINode dataNode)
                    throws java.io.IOException
Throws:
java.io.IOException

prerenderInternal

public void prerenderInternal(UIXRenderingContext context,
                              UINode dataNode)
                       throws java.io.IOException
Throws:
java.io.IOException

postrenderInternal

public void postrenderInternal(UIXRenderingContext context,
                               UINode dataNode)
                        throws java.io.IOException
Throws:
java.io.IOException

getRenderer

protected Renderer getRenderer(UIXRenderingContext context,
                               UINode dataNode)

getAttributeValueImpl

protected java.lang.Object getAttributeValueImpl(UIXRenderingContext context,
                                                 AttributeKey attrKey,
                                                 boolean returnBoundValue)
Bottleneck method for all attribute getting.


getAttributeMap

protected final AttributeMap getAttributeMap(boolean createIfNull)
Returns the AttributeMap used to store attributes.

Parameters:
createIfNull - if true, creates an AttributeMap object if one has not yet been created.


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.