Package javax.faces.component.visit
Interface VisitCallback
-
public interface VisitCallbackA simple callback interface that enables taking action on a specific UIComponent (either facet or child) during a component tree visit.
- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VisitResultvisit(VisitContext context, UIComponent target)This method is called during component tree visits byVisitContext.invokeVisitCallback()to visit the specified component.
-
-
-
Method Detail
-
visit
VisitResult visit(VisitContext context, 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 argumenttargetis guaranteed to be in the proper state with respect to its ancestors in the View.- Parameters:
context- theVisitContextfor this tree visit.target- theUIComponentto visit- Returns:
- a
VisitResultthat indicates whether to continue visiting the component's subtree, skip visiting the component's subtree or end the visit.
-
-