org.apache.wicket.markup.resolver
Class ParentResolver

java.lang.Object
  extended by org.apache.wicket.markup.resolver.ParentResolver
All Implemented Interfaces:
java.io.Serializable, IClusterable, IComponentResolver

public class ParentResolver
extends java.lang.Object
implements IComponentResolver

Some containers are transparent to the user (e.g. HtmlHeaderContainer or BodyOnLoadContainer) and delegate component resolution to there parent.

Author:
Juergen Donnerstag
See Also:
Serialized Form

Constructor Summary
ParentResolver()
           
 
Method Summary
 boolean resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
          Try to resolve the tag, then create a component, add it to the container and render it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentResolver

public ParentResolver()
Method Detail

resolve

public boolean resolve(MarkupContainer container,
                       MarkupStream markupStream,
                       ComponentTag tag)
Try to resolve the tag, then create a component, add it to the container and render it.

Note: Special tags like <wicket:...>> and tags which id start with "_" are not resolved.

Specified by:
resolve in interface IComponentResolver
Parameters:
container - The container parsing its markup
markupStream - The current markupStream
tag - The current component tag while parsing the markup
Returns:
True if component-id was handled by the resolver, false otherwise.
See Also:
IComponentResolver.resolve(MarkupContainer, MarkupStream, ComponentTag)


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