org.apache.wicket.markup
Class MergedMarkup
java.lang.Object
org.apache.wicket.markup.Markup
org.apache.wicket.markup.MergedMarkup
public class MergedMarkup
- extends Markup
A Markup class which represents merged markup, as it is required for markup inheritance.
The Markups are merged at load time. Deep markup hierarchies are supported. Multiple inheritance
is not.
The markup resource file, which is associated with the markup, will be the resource of the
requested markup file. The base markup resources are not.
Base Markup must have a <wicket:child/> tag at the position where the derived markup should
be inserted. From the derived markup all tags in between <wicket:extend> and
</wicket:extend> will be inserted.
In addition, all <wicket:head> regions are copied as well. This allows to develop completely
self-contained plug & play components including javascript etc.
- Author:
- Juergen Donnerstag
Method Summary |
String |
locationAsString()
Allowing the markup to return its own location allows special types of Markup (i.e. |
MergedMarkup
public MergedMarkup(Markup markup,
Markup baseMarkup,
int extendIndex)
- Merge inherited and base markup.
- Parameters:
markup
- The inherited markupbaseMarkup
- The base markupextendIndex
- Index where has been found
locationAsString
public String locationAsString()
- Description copied from class:
Markup
- Allowing the markup to return its own location allows special types of Markup (i.e.
MergedMarkup) to override their location, as they are composed of multiple Markups in
different locations. SEE WICKET-1507 (Jeremy Thomerson)
- Overrides:
locationAsString
in class Markup
- Returns:
- the location of this markup. Return null to avoid caching the markup.
- See Also:
Markup.locationAsString()
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.