Class EnclosureHandler
java.lang.Object
org.apache.wicket.markup.parser.AbstractMarkupFilter
org.apache.wicket.markup.parser.filter.EnclosureHandler
- All Implemented Interfaces:
Serializable
,IMarkupFilter
,IComponentResolver
,IClusterable
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:
-
Field Summary
Fields inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
REQUEST_COUNTER_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final MarkupElement
Invoked when a ComponentTag was found.resolve
(MarkupContainer container, MarkupStream markupStream, ComponentTag tag) Try to resolve a component.Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getMarkupResourceStream, getNextFilter, getRequestUniqueId, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, postProcess, setNextFilter
-
Field Details
-
ENCLOSURE
- See Also:
-
CHILD_ATTRIBUTE
The child attribute- See Also:
-
-
Constructor Details
-
EnclosureHandler
public EnclosureHandler()Construct. -
EnclosureHandler
-
-
Method Details
-
onComponentTag
Description copied from class:AbstractMarkupFilter
Invoked when a ComponentTag was found.By default this method is also called for WicketTags.
- Specified by:
onComponentTag
in classAbstractMarkupFilter
- Returns:
- Usually the same as the tag attribute
- Throws:
ParseException
-
resolve
Description copied from interface:IComponentResolver
Try to resolve a component.- Specified by:
resolve
in interfaceIComponentResolver
- Parameters:
container
- The container parsing its markupmarkupStream
- The current markupStreamtag
- The current component tag while parsing the markup- Returns:
- component or
null
if not found
-