本文整理了Java中org.apache.wicket.markup.html.panel.Fragment.getAssociatedMarkupStream()
方法的一些代码示例,展示了Fragment.getAssociatedMarkupStream()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Fragment.getAssociatedMarkupStream()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.panel.Fragment
类名称:Fragment
方法名:getAssociatedMarkupStream
暂无
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Position the markup stream at the child component relative to the <b>provider</b> markup
*
* @param path
* @return The markup stream for the given component.
*/
public MarkupStream findComponentIndex(final String path)
{
MarkupStream markupStream = getAssociatedMarkupStream(true);
int index = markupStream.findComponentIndex(markupId, path);
if (index == -1)
{
throw new MarkupException("Markup of component class `" +
markupStream.getContainerClass().getName() +
"` does not contain a fragment with wicket:id `" + markupId + "`. Context: " +
toString());
}
markupStream.setCurrentIndex(index);
return markupStream;
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* Position the markup stream at the child component relative to the <b>provider</b> markup
*
* @param path
* @return The markup stream for the given component.
*/
public MarkupStream findComponentIndex(final String path)
{
MarkupStream markupStream = getAssociatedMarkupStream(true);
int index = markupStream.findComponentIndex(associatedMarkupId, path);
if (index == -1)
{
throw new MarkupException("Markup of component class `" +
markupStream.getContainerClass().getName() +
"` does not contain a fragment with wicket:id `" + associatedMarkupId +
"`. Context: " + toString());
}
markupStream.setCurrentIndex(index);
return markupStream;
}
内容来源于网络,如有侵权,请联系作者删除!