org.apache.myfaces.trinidad.component.visit

## Interface VisitCallback

-     public interface VisitCallback

  A simple callback interface that enables taking action on a specific UIComponent (either facet or child) during a component tree visit.

  See Also:
    `UIComponent.visitTree()`

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `VisitResult` | `visit(VisitContext visitContext, javax.faces.component.UIComponent target)` This method is called during component tree visits by `VisitContext.invokeVisitCallback()` to visit the specified component.

- - ### Method Detail

    - #### visit

          VisitResult visit(VisitContext visitContext,
                          javax.faces.component.UIComponent target)

      This method is called during component tree visits by `VisitContext.invokeVisitCallback()` to visit the specified component. At the point in time when this method is called, the argument `target` is guaranteed to be in the proper state with respect to its ancestors in the View.

      Parameters:
        `visitContext` - the `VisitContext` for this tree visit.
        `target` - the `UIComponent` to visit
      Returns:
        a `VisitResult` that indicates whether to continue visiting the component's subtree, skip visiting the component's subtree or end the visit.

Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.