use of org.apache.wicket.markup.IMarkupFragment in project wicket by apache.
the class Panel method getRegionMarkup.
/**
* Returns the markup inside <wicket:panel> tag.
* If such tag is not found, all the markup is returned.
*
* @see IQueueRegion#getRegionMarkup()
*/
@Override
public IMarkupFragment getRegionMarkup() {
IMarkupFragment markup = super.getRegionMarkup();
if (markup == null) {
return markup;
}
IMarkupFragment panelMarkup = MarkupUtil.findStartTag(markup, PANEL);
return panelMarkup != null ? panelMarkup : markup;
}
Aggregations