org.apache.wicket.markup.parser.filter
Class EnclosureHandler
java.lang.Object
org.apache.wicket.markup.parser.AbstractMarkupFilter
org.apache.wicket.markup.parser.filter.BaseMarkupFilter
org.apache.wicket.markup.parser.filter.EnclosureHandler
- All Implemented Interfaces:
- Serializable, IClusterable, IMarkupFilter, IComponentResolver
public final class EnclosureHandler
- extends BaseMarkupFilter
- implements IComponentResolver
This is a markup inline filter. It identifies <wicket:enclosure> tags. If the 'child'
attribute is empty it determines the wicket:id of the child component automatically by analyzing
the wicket component (in this case on one wicket component is allowed) in between the open and
close tags. If the enclosure tag has a 'child' attribute like
<wicket:enclosure child="xxx">
than more than just one wicket component inside
the enclosure tags are allowed and the child component which determines the visibility of the
enclosure is identified by the 'child' attribute value which must be equal to the relative child
id path.
- Author:
- Juergen Donnerstag
- See Also:
EnclosureResolver
,
Enclosure
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENCLOSURE
public static final String ENCLOSURE
- See Also:
- Constant Field Values
CHILD_ATTRIBUTE
public static final String CHILD_ATTRIBUTE
- The child attribute
- See Also:
- Constant Field Values
EnclosureHandler
public EnclosureHandler()
- Construct.
nextTag
protected final MarkupElement nextTag(ComponentTag tag)
throws ParseException
- Description copied from class:
BaseMarkupFilter
- Invoked with the next ComponentTag
- Specified by:
nextTag
in class BaseMarkupFilter
- Returns:
- the next tag
- Throws:
ParseException
resolve
public Component resolve(MarkupContainer container,
MarkupStream markupStream,
ComponentTag tag)
- Description copied from interface:
IComponentResolver
- Try to resolve the tag, then create a component, add it to the container and render it.
- Specified by:
resolve
in interface IComponentResolver
- Parameters:
container
- The container parsing its markupmarkupStream
- The current markupStreamtag
- The current component tag while parsing the markup
- Returns:
- null, if not found
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.