org.wicketstuff.context
Class TraversalStrategy

java.lang.Object
  extended by org.wicketstuff.context.TraversalStrategy
Direct Known Subclasses:
TopDownTraversal, UpTraversal

public abstract class TraversalStrategy
extends Object

Author:
zruchala

Nested Class Summary
static interface TraversalStrategy.TraversalResult
          The traversal result and operation allowed to perform on it.
static class TraversalStrategy.TraversalResultImpl
           
 
Constructor Summary
TraversalStrategy()
           
 
Method Summary
protected  List<org.wicketstuff.context.FieldValue> getSupportedFields(List<Field> pFields)
           
protected  Set<org.wicketstuff.context.FieldValue> match(org.apache.wicket.Component pComponent, Set<org.wicketstuff.context.FieldValue> pFieldValues)
          Match the component to the set of unresolved fields.
abstract  boolean supports(Field pField)
           
abstract  TraversalStrategy.TraversalResult traverse(org.apache.wicket.Component pComponent, List<Field> pFields)
          The traverse procedure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraversalStrategy

public TraversalStrategy()
Method Detail

traverse

public abstract TraversalStrategy.TraversalResult traverse(org.apache.wicket.Component pComponent,
                                                           List<Field> pFields)
The traverse procedure.

Parameters:
pComponent - the component for which the traversal is performed.
pFields - the set of context fields

supports

public abstract boolean supports(Field pField)

getSupportedFields

protected List<org.wicketstuff.context.FieldValue> getSupportedFields(List<Field> pFields)

match

protected Set<org.wicketstuff.context.FieldValue> match(org.apache.wicket.Component pComponent,
                                                        Set<org.wicketstuff.context.FieldValue> pFieldValues)
Match the component to the set of unresolved fields.

Parameters:
pComponent - the component that is being matched.
pFieldValues - the unresolved fields.
Returns:
the still unresolved fields.


Copyright © 2014–2018. All rights reserved.