org.apache.myfaces.trinidadinternal.ui.laf.base
Class TreeWalkerUtils

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.ui.laf.base.TreeWalkerUtils

public class TreeWalkerUtils
extends java.lang.Object

Utilities for walking the tree with TreeWalker. This currently adds support only for going through context-popping nodes. Features that are not supported currently include:

  1. Dealing with dataScope nodes
  2. Updating the RenderingContext's rendered and logical stacks

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/base/TreeWalkerUtils.java#0 $) $Date: 10-nov-2005.18:53:09 $
Author:
The Oracle ADF Faces Team

Constructor Summary
TreeWalkerUtils()
           
 
Method Summary
static java.lang.Object walkTree(UIXRenderingContext context, UINode ancestor, TreeWalker walker)
          Walks a tree using a TreeWalker.
static java.lang.Object walkTree(UIXRenderingContext context, UINode ancestor, TreeWalker walker, PathImpl path)
          Walks a tree using a TreeWalker.
static java.lang.Object walkTree(UIXRenderingContext context, UINode ancestor, TreeWalker walker, PathImpl path, boolean renderedOnly)
          Walks a tree using a TreeWalker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeWalkerUtils

public TreeWalkerUtils()
Method Detail

walkTree

public static java.lang.Object walkTree(UIXRenderingContext context,
                                        UINode ancestor,
                                        TreeWalker walker)
                                 throws java.io.IOException
Walks a tree using a TreeWalker. The TreeWalker will receive a newly instantiated Path object.

Parameters:
context - the initial RenderingContext
ancestor - the initial UINode
walker - the TreeWalker callback used
Returns:
the last value returned by walkNode()
Throws:
java.io.IOException

walkTree

public static java.lang.Object walkTree(UIXRenderingContext context,
                                        UINode ancestor,
                                        TreeWalker walker,
                                        PathImpl path)
                                 throws java.io.IOException
Walks a tree using a TreeWalker.

Parameters:
context - the initial RenderingContext
ancestor - the initial UINode
walker - the TreeWalker callback used
path - a pre-created PathImpl object; may be null if the TreeWalker doesn't need a path
Returns:
the last value returned by walkNode()
Throws:
java.io.IOException

walkTree

public static java.lang.Object walkTree(UIXRenderingContext context,
                                        UINode ancestor,
                                        TreeWalker walker,
                                        PathImpl path,
                                        boolean renderedOnly)
                                 throws java.io.IOException
Walks a tree using a TreeWalker.

Parameters:
context - the initial RenderingContext
ancestor - the initial UINode
walker - the TreeWalker callback used
path - a pre-created PathImpl object; may be null if the TreeWalker doesn't need a path
renderedOnly - if true, only walk those nodes that will be rendered
Returns:
the last value returned by walkNode()
Throws:
java.io.IOException


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