|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.markup.parser.AbstractMarkupFilter org.apache.wicket.markup.parser.filter.HtmlHandler
public final class HtmlHandler
This is a markup inline filter. It identifies HTML specific issues which make HTML not 100% xml compliant. E.g. tags like <p> often are missing the corresponding close tag.
Constructor Summary | |
---|---|
HtmlHandler()
Construct. |
Method Summary | |
---|---|
static boolean |
hasEqualTagName(ComponentTag tag1,
ComponentTag tag2)
Compare tag name including namespace |
protected MarkupElement |
onComponentTag(ComponentTag tag)
Invoked when a ComponentTag was found. |
void |
postProcess(Markup markup)
Called after all filters have been processed. |
static boolean |
requiresCloseTag(String name)
Gets whether this tag does not require a closing tag. |
Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter |
---|
getMarkupResourceStream, getNextFilter, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, setNextFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlHandler()
Method Detail |
---|
public void postProcess(Markup markup)
IMarkupFilter
postProcess
in interface IMarkupFilter
postProcess
in class AbstractMarkupFilter
protected MarkupElement onComponentTag(ComponentTag tag) throws ParseException
AbstractMarkupFilter
By default this method is also called for WicketTags.
onComponentTag
in class AbstractMarkupFilter
ParseException
public static boolean requiresCloseTag(String name)
name
- The tag's name, e.g. a, br, div, etc.
public static boolean hasEqualTagName(ComponentTag tag1, ComponentTag tag2)
tag1
- tag2
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |