org.apache.wicket.markup.html.form
Class AutoLabelTextResolver

java.lang.Object
  extended by org.apache.wicket.markup.html.form.AutoLabelTextResolver
All Implemented Interfaces:
java.io.Serializable, IClusterable, IComponentResolver

public class AutoLabelTextResolver
extends java.lang.Object
implements IComponentResolver

Resolver that provides the <wicket:label> tag, which will output a FormComponent's label without requiring a manual extra component such as Label or FormComponentLabel. <wicket:label> can be used

It also supports both input and output:

Author:
Carl-Eric Menzel , igor
See Also:
Serialized Form

Constructor Summary
AutoLabelTextResolver()
           
 
Method Summary
 Component resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
          Try to resolve a component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoLabelTextResolver

public AutoLabelTextResolver()
Method Detail

resolve

public Component resolve(MarkupContainer container,
                         MarkupStream markupStream,
                         ComponentTag tag)
Description copied from interface: IComponentResolver
Try to resolve a component.

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:
component or null if not found


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