Package org.apache.myfaces.trinidadinternal.ui

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


  protected UIXHierarchy getHierarchyBase(
    UIXRenderingContext context,
    UINode           node
  )
  {
    UINode pageNode = context.getParentContext().getAncestorNode(0);
    return (UIXPage) pageNode.getUIComponent();
  }
View Full Code Here


  protected UINode getStamp(
    UIXRenderingContext context,
    UINode           node
    )
  {
    UINode pageNode = context.getParentContext().getAncestorNode(0);
    return getNamedChild(context, pageNode, NODE_STAMP_CHILD);
  }
View Full Code Here

  protected boolean isEmpty(
    UIXRenderingContext context,
    UINode           node
    )
  {
    UINode pageNode = context.getParentContext().getAncestorNode(0);
    UIXPage component = (UIXPage) pageNode.getUIComponent();
    int startDepth = getIntAttributeValue(context, node, LEVEL_ATTR, 0);

    return PageRendererUtils.isEmpty(context, component, startDepth);
  }
View Full Code Here

  protected UIXHierarchy getHierarchyBase(
    UIXRenderingContext context,
    UINode           node
  )
  {
    UINode pageNode = context.getParentContext().getAncestorNode(0);
    return (UIXPage) pageNode.getUIComponent();
  }
View Full Code Here

  protected UINode getStamp(
    UIXRenderingContext context,
    UINode           node
    )
  {
    UINode pageNode = context.getParentContext().getAncestorNode(0);
    return getNamedChild(context, pageNode, NODE_STAMP_CHILD);
  }
View Full Code Here

    int              prevVisChildIndex,
    int              nextVisChildIndex,
    int              ithRenderedChild
    ) throws IOException
  {
    UINode currVisChild = node.getIndexedChild(context, currVisChildIndex);
    ResponseWriter writer = context.getResponseWriter();
    // get the selected index
    int selectedIndex = ((Integer)context.getLocalProperty( 0,
                                                            _SELECTED_NODE_KEY,
                                                            ZERO)).intValue();
View Full Code Here

  {
    boolean returnVal = false;

    if (childName != null)
    {
      UINode childNode = node.getNamedChild(context, childName);
      if (childNode != null)
      {
        renderNamedChild(context, node, childNode, childName);
        returnVal = true;
      }
View Full Code Here

  {
    int ancestorCount = context.getRenderedAncestorNodeCount();

    for (int i = 1; i <  ancestorCount; i++)
    {
      UINode curr = context.getRenderedAncestorNode(i);

      if ((namespaceURI == curr.getNamespaceURI()) &&
          name.equals(curr.getLocalName()))
      {
        return curr;
      }
    }
View Full Code Here

  {
    Object result = context.getLocalProperty(0, childName, _DOES_NOT_EXIST);

    if (result == _DOES_NOT_EXIST)
    {
      UINode namedChild = node.getNamedChild(context, childName);

      // cache the named child for the next time
      context.setLocalProperty(childName, namedChild);

      return namedChild;
View Full Code Here

    UINode           node
    ) throws IOException
  {

    UIXHierarchy component = getHierarchyBase(context, node);
    UINode stamp = getStamp(context, node);

    if(stamp != null)
    {

      // Save the current key
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.