Package org.apache.myfaces.trinidadinternal.ui

Examples of org.apache.myfaces.trinidadinternal.ui.UINode


   * @return true if the ancestor node is a table
   * (tableLayout or messageComponentLayout)
   */
  protected boolean hasTableParent(UIXRenderingContext context)
  {
    UINode ancestor = NodeRoleUtils.getStructuralAncestor(context);
   
    return isEqualMarlinName(ancestor, TABLE_LAYOUT_NAME);
  }
View Full Code Here


    return context;
  }

  protected MutableUINode getMutableUINode()
  {
    UINode node = getUINode(null);
   
    if (node instanceof MutableUINode)
    {
      return (MutableUINode)node;
    }
View Full Code Here

  public int size(
    UIXRenderingContext context
    )
  {
    UINode node = getUINode(context);
   
    if (node != null)
    {     
      context = getRenderingContext(context);
      return node.getIndexedChildCount(context);
    }
    else
    {
      return 0;
    }
View Full Code Here

  public UINode getUINode(
    UIXRenderingContext context,
    int              index
    )
  {
    UINode node = getUINode(context);
   
    if (node != null)
    {
      context = getRenderingContext(context);
      return node.getIndexedChild(context, index);
    }
    else
    {
      return null;
    }
View Full Code Here

  {
    MutableUINode mutableNode = getMutableUINode();
   
    if (mutableNode != null)
    {
      UINode returnNode = mutableNode.getIndexedChild(null, index);
      mutableNode.replaceIndexedChild(index, node);
      return returnNode;
    }
    else
    {
View Full Code Here

  public Object getAttribute(
    UIXRenderingContext context,
    AttributeKey     key
    )
  {
    UINode node = getUINode(context);

    context = getRenderingContext(context);

    if (node != null)
    {
      return node.getAttributeValue(context, key);
    }
    else
    {
      return null;
    }
View Full Code Here

  public void setAttribute(
    AttributeKey key,
    Object       value
    )
  {
    UINode node = getUINode(null);

    if (node instanceof MutableUINode)
    {
      ((MutableUINode)node).setAttributeValue(key, value);
    }
View Full Code Here

  public Iterator<AttributeKey> attributeKeys(
    UIXRenderingContext context
    )
  {
    UINode node = getUINode(context);

    if (node != null)
    {
      context = getRenderingContext(context);
      return node.getAttributeNames(context);
    }
    else
    {
      return null;
    }
View Full Code Here

  @Override
  public UINode getIndexedChild(
    UIXRenderingContext context,
    int              childIndex)
  {
    UINode child;

    if (context == null)
    {
      child = createWrappedNode(super.getIndexedChild(context, childIndex),
                                _data,
View Full Code Here

  @Override
  public UINode getNamedChild(
    UIXRenderingContext context,
    String           childName)
  {
    UINode child;

    if (context == null)
    {
      child = createWrappedNode(super.getNamedChild(context, childName),
                                _data,
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.ui.UINode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.