本文整理了Java中org.apache.wicket.markup.html.panel.Fragment.toString()
方法的一些代码示例,展示了Fragment.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Fragment.toString()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.panel.Fragment
类名称:Fragment
方法名:toString
暂无
代码示例来源: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;
}
代码示例来源: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 void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
// Skip the components body. It will be replaced by the fragment
if (((ComponentTag)markupStream.get(markupStream.getCurrentIndex() - 1)).isOpen())
{
markupStream.skipRawMarkup();
}
final MarkupStream providerMarkupStream = chooseMarkupStream(markupStream);
if (providerMarkupStream == null)
{
throw new MarkupNotFoundException(
"Fragment: No markup stream found for providing markup container " +
markupProvider.toString() + ". Fragment: " + toString());
}
renderFragment(providerMarkupStream, openTag);
}
代码示例来源: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 void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
// Skip the components body. It will be replaced by the fragment
if (((ComponentTag)markupStream.get(markupStream.getCurrentIndex() - 1)).isOpen())
{
markupStream.skipRawMarkup();
}
final MarkupStream providerMarkupStream = chooseMarkupStream(markupStream);
if (providerMarkupStream == null)
{
throw new MarkupNotFoundException(
"Fragment: No markup stream found for providing markup container " +
markupProvider.toString() + ". Fragment: " + toString());
}
renderFragment(providerMarkupStream, openTag);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
providerMarkupStream.getContainerClass().getName() +
"` does not contain a fragment with wicket:id `" + associatedMarkupId +
"`. Context: " + toString());
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
providerMarkupStream.getContainerClass().getName() +
"` does not contain a fragment with wicket:id `" + markupId + "`. Context: " +
toString());
内容来源于网络,如有侵权,请联系作者删除!