|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.markup.parser.AbstractMarkupFilter
public abstract class AbstractMarkupFilter
Base class for markup filters
| Constructor Summary | |
|---|---|
AbstractMarkupFilter()
Construct. |
|
AbstractMarkupFilter(MarkupResourceStream markupResourceStream)
|
|
| Method Summary | |
|---|---|
protected MarkupResourceStream |
getMarkupResourceStream()
|
IMarkupFilter |
getNextFilter()
IMarkupFilters are usually chained with the last filter retrieving the elements from the XML parser. |
protected String |
getWicketNamespace()
|
MarkupElement |
nextElement()
Get the next xml element from the markup. |
protected abstract MarkupElement |
onComponentTag(ComponentTag tag)
Invoked when a ComponentTag was found. |
protected MarkupElement |
onSpecialTag(HtmlSpecialTag tag)
Invoked when a tags (e.g. |
void |
postProcess(Markup markup)
Called after all filters have been processed. |
void |
setNextFilter(IMarkupFilter parent)
Set new parent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMarkupFilter()
public AbstractMarkupFilter(MarkupResourceStream markupResourceStream)
| Method Detail |
|---|
public IMarkupFilter getNextFilter()
IMarkupFilter
getNextFilter in interface IMarkupFilterpublic void setNextFilter(IMarkupFilter parent)
setNextFilter in interface IMarkupFilterparent - The parent of this component The next element in the chain
public MarkupElement nextElement()
throws ParseException
nextElement in interface IMarkupFilterParseException
protected abstract MarkupElement onComponentTag(ComponentTag tag)
throws ParseException
By default this method is also called for WicketTags.
tag -
ParseException
protected MarkupElement onSpecialTag(HtmlSpecialTag tag)
throws ParseException
tag -
ParseExceptionpublic void postProcess(Markup markup)
IMarkupFilter
postProcess in interface IMarkupFilterprotected MarkupResourceStream getMarkupResourceStream()
protected String getWicketNamespace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||