本文整理了Java中org.apache.wicket.markup.html.border.Border.renderAssociatedMarkup()
方法的一些代码示例,展示了Border.renderAssociatedMarkup()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Border.renderAssociatedMarkup()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.border.Border
类名称:Border
方法名:renderAssociatedMarkup
暂无
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* @see org.apache.wicket.Component#onComponentTagBody(org.apache.wicket.markup.MarkupStream,
* org.apache.wicket.markup.ComponentTag)
*/
protected final void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
// Remember the data for easy access by the Body component
this.openTag = openTag;
originalMarkupStream = getMarkupStream();
// Remember the current position (start of border-body) of the markupstream
beginOfBodyIndex = originalMarkupStream.getCurrentIndex();
// body.isVisible(false) needs a little extra work. We must skip the
// markup between <span wicket:id="myBorder"> and </span>
if (body.isVisible() == false)
{
originalMarkupStream.skipToMatchingCloseTag(openTag);
}
// Render the associated markup
renderAssociatedMarkup("border",
"Markup for a border component must begin a tag like '<wicket:border>'");
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* @see org.apache.wicket.Component#onComponentTagBody(org.apache.wicket.markup.MarkupStream,
* org.apache.wicket.markup.ComponentTag)
*/
@Override
protected final void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
// Remember the data for easy access by the Body component
this.openTag = openTag;
originalMarkupStream = getMarkupStream();
// Remember the current position (start of border-body) of the markupstream
beginOfBodyIndex = originalMarkupStream.getCurrentIndex();
// body.isVisible(false) needs a little extra work. We must skip the
// markup between <span wicket:id="myBorder"> and </span>
if (isBodyVisible() == false)
{
originalMarkupStream.skipToMatchingCloseTag(openTag);
}
// Render the associated markup
renderAssociatedMarkup("border",
"Markup for a border component must begin a tag like '<wicket:border>'");
}
内容来源于网络,如有侵权,请联系作者删除!