org.apache.wicket
Interface Component.IVisitor

Enclosing class:
Component

public static interface Component.IVisitor

Generic component visitor interface for component traversals.


Field Summary
static java.lang.Object CONTINUE_TRAVERSAL
          Value to return to continue a traversal.
static java.lang.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 java.lang.Object STOP_TRAVERSAL
          A generic value to return to stop a traversal.
 
Method Summary
 java.lang.Object component(Component component)
          Called at each component in a traversal.
 

Field Detail

CONTINUE_TRAVERSAL

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


CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER

static final java.lang.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 java.lang.Object STOP_TRAVERSAL
A generic value to return to stop a traversal.

Method Detail

component

java.lang.Object component(Component 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-2010 Apache Software Foundation. All Rights Reserved.