Package org.apache.myfaces.trinidad.component

Examples of org.apache.myfaces.trinidad.component.UIXHierarchy


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


  {
    final String name =
      (String) node.getAttributeValue(context, UIConstants.ID_ATTR);
    assert name != null;
   
    UIXHierarchy tree = getTree(context, node);
    Object oldPath = tree.getRowKey();
    try
    {
      boolean continueRendering = setInitialPath(context, node, tree);
      if (!continueRendering)
        return;
 
      _renderContent(context, node, tree, name);
    }
    finally
    {
      tree.setRowKey(oldPath);
    }
  }
View Full Code Here

    BoundValue isExpandable = new BoundValue()
    {
      public Object getValue(UIXRenderingContext rc)
      {
        UINode uinode = rc.getAncestorNode(1);
        UIXHierarchy tree = (UIXHierarchy) ((UIComponentUINode) uinode).getUIComponent();
        return tree.isContainer()
          ? Boolean.TRUE
          : Boolean.FALSE;
      }
    };
View Full Code Here

    UIXRenderingContext context,
    UINode           node
    ) throws IOException
  {

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

    if(stamp != null)
    {

      // Save the current key
      Object oldPath = component.getRowKey();
      boolean isNewPath = setNewPath(context, node, component);
      if (isNewPath)
      {

        int size = component.getRowCount();
        for (int i = 0; i < size; i++)
        {
          component.setRowIndex(i);
          renderChild(context, stamp);

        }

        // Restore the old path
        component.setRowKey(oldPath);
      }
    }

    super.renderContent(context, node);
  }
View Full Code Here

    RenderingContext   arc,
    TableRenderingContext tContext,
    UIComponent           table)
    throws IOException
  {
    UIXHierarchy comp = (UIXHierarchy) table;
    Object focusKey = comp.getFocusRowKey();
    final Object oldKey = comp.getRowKey();
    try
    {
      // set the collection that is being displayed:
      comp.setRowKey(focusKey);
      super.renderRangePagingControl(context, arc, tContext, table);
    }
    finally
    {
      comp.setRowKey(oldKey);
    }
  }
View Full Code Here

  {
    final String name =
      (String) node.getAttributeValue(context, UIConstants.ID_ATTR);
    assert name != null;
   
    UIXHierarchy tree = getTree(context, node);
    Object oldPath = tree.getRowKey();
    try
    {
      boolean continueRendering = setInitialPath(context, node, tree);
      if (!continueRendering)
        return;
 
      _renderContent(context, node, tree, name);
    }
    finally
    {
      tree.setRowKey(oldPath);
    }
  }
View Full Code Here

    BoundValue isExpandable = new BoundValue()
    {
      public Object getValue(UIXRenderingContext rc)
      {
        UINode uinode = rc.getAncestorNode(1);
        UIXHierarchy tree = (UIXHierarchy) ((UIComponentUINode) uinode).getUIComponent();
        return tree.isContainer()
          ? Boolean.TRUE
          : Boolean.FALSE;
      }
    };
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.component.UIXHierarchy

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.