org.apache.wicket.markup.parser.filter
Class HtmlHeaderSectionHandler

java.lang.Object
  extended by org.apache.wicket.markup.parser.AbstractMarkupFilter
      extended by org.apache.wicket.markup.parser.filter.HtmlHeaderSectionHandler
All Implemented Interfaces:
IMarkupFilter

public final class HtmlHeaderSectionHandler
extends AbstractMarkupFilter

This is a markup inline filter. It assumes that WicketTagIdentifier has been called first and search for a <head> tag (note: not wicket:head). Provided the markup contains a <body> tag it will automatically prepend a <head> tag if missing.

Note: This handler is only relevant for Pages (see MarkupParser.newFilterChain())

Author:
Juergen Donnerstag
See Also:
MarkupParser

Field Summary
static java.lang.String HEADER_ID
          The automatically assigned wicket:id to >head< tag
 
Constructor Summary
HtmlHeaderSectionHandler(Markup markup)
          Construct.
 
Method Summary
protected  MarkupElement onComponentTag(ComponentTag tag)
          Invoked when a ComponentTag was found.
 
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getNextFilter, nextElement, onSpecialTag, postProcess, setNextFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_ID

public static final java.lang.String HEADER_ID
The automatically assigned wicket:id to >head< tag

See Also:
Constant Field Values
Constructor Detail

HtmlHeaderSectionHandler

public HtmlHeaderSectionHandler(Markup markup)
Construct.

Parameters:
markup - The Markup object being filled while reading the markup resource
Method Detail

onComponentTag

protected final MarkupElement onComponentTag(ComponentTag tag)
                                      throws java.text.ParseException
Description copied from class: AbstractMarkupFilter
Invoked when a ComponentTag was found.

By default this method is also called for WicketTags.

Specified by:
onComponentTag in class AbstractMarkupFilter
Returns:
Usually the same as the tag attribute
Throws:
java.text.ParseException


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