org.apache.wicket
Interface Component.IVisitor<T extends Component>

Type Parameters:
T - The component
Enclosing class:
Component

public static interface Component.IVisitor<T extends Component>

Generic component visitor interface for component traversals.


Field Summary
static Object CONTINUE_TRAVERSAL
          Value to return to continue a traversal.
static Object CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER
          A generic value to return to continue a traversal, but if the component is a container, don't visit its children.
static Object STOP_TRAVERSAL
          A generic value to return to stop a traversal.
 
Method Summary
 Object component(T component)
          Called at each component in a traversal.
 

Field Detail

CONTINUE_TRAVERSAL

static final Object CONTINUE_TRAVERSAL
Value to return to continue a traversal.


CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER

static final Object CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER
A generic value to return to continue a traversal, but if the component is a container, don't visit its children.


STOP_TRAVERSAL

static final Object STOP_TRAVERSAL
A generic value to return to stop a traversal.

Method Detail

component

Object component(T component)
Called at each component in a traversal.

Parameters:
component - The component
Returns:
CONTINUE_TRAVERSAL (null) if the traversal should continue, or a non-null return value for the traversal method if it should stop. If no return value is useful, the generic non-null value STOP_TRAVERSAL can be used.


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.