org.apache.wicket.markup.html.WebMarkupContainer.onComponentTagBody()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(8.0k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.apache.wicket.markup.html.WebMarkupContainer.onComponentTagBody()方法的一些代码示例,展示了WebMarkupContainer.onComponentTagBody()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebMarkupContainer.onComponentTagBody()方法的具体详情如下:
包路径:org.apache.wicket.markup.html.WebMarkupContainer
类名称:WebMarkupContainer
方法名:onComponentTagBody

WebMarkupContainer.onComponentTagBody介绍

暂无

代码示例

代码示例来源:origin: org.wicketstuff/yui

/**
 * 
 */
protected void onComponentTagBody(MarkupStream markupStream,
    ComponentTag openTag) {
  super.onComponentTagBody(markupStream, openTag);
}

代码示例来源:origin: org.wicketstuff.foundation/wicket-foundation-core

@Override
public void onComponentTagBody(MarkupStream markupStream,
    ComponentTag openTag) {
  this.replaceComponentTagBody(markupStream, openTag, contentModel.getObject());
  super.onComponentTagBody(markupStream, openTag);
}

代码示例来源:origin: org.wicketstuff.foundation/wicket-foundation-core

@Override
public void onComponentTagBody(MarkupStream markupStream,
    ComponentTag openTag) {
  this.replaceComponentTagBody(markupStream, openTag, titleModel.getObject());
  super.onComponentTagBody(markupStream, openTag);
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-richtext-frontend

@Override
  public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) {
    Object modelObject = getDefaultModelObject();
    final String text = modelObject != null ? modelObject.toString() : null;
    if (text != null) {
      replaceComponentTagBody(markupStream, openTag, text);
    } else {
      super.onComponentTagBody(markupStream, openTag);
    }
  }
}

代码示例来源:origin: org.wicketstuff.foundation/wicket-foundation-core

@Override
  public void onComponentTagBody(MarkupStream markupStream,
      ComponentTag openTag) {
    this.replaceComponentTagBody(markupStream, openTag, getDefaultModelObjectAsString());
    super.onComponentTagBody(markupStream, openTag);
  }
}

代码示例来源:origin: apache/wicket

/**
 * Append an additional hidden input tag to support anchor tags that can submit a form.
 * 
 * @param markupStream
 *            The markup stream
 * @param openTag
 *            The open tag for the body
 */
@Override
public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
  if (isRootForm())
  {
    // get the hidden field id
    writeHiddenFields();
  }
  // do the rest of the processing
  super.onComponentTagBody(markupStream, openTag);
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Append an additional hidden input tag to support anchor tags that can submit a form.
 * 
 * @param markupStream
 *            The markup stream
 * @param openTag
 *            The open tag for the body
 */
@Override
public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
  if (isRootForm())
  {
    // get the hidden field id
    writeHiddenFields();
  }
  // do the rest of the processing
  super.onComponentTagBody(markupStream, openTag);
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * Renders this link's body.
 * 
 * @param markupStream
 *            the markup stream
 * @param openTag
 *            the open part of this tag
 * @see org.apache.wicket.Component#onComponentTagBody(MarkupStream, ComponentTag)
 */
@Override
public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
  // Get a copy of the body model from the getBody() method. This method could be overridden.
  IModel<?> tmpBodyModel = getBody();
  if ((tmpBodyModel != null) && (tmpBodyModel.getObject() != null))
  {
    replaceComponentTagBody(markupStream, openTag,
      getDefaultModelObjectAsString(tmpBodyModel.getObject()));
  }
  else
  {
    // Render the body of the link
    super.onComponentTagBody(markupStream, openTag);
  }
}

代码示例来源:origin: apache/wicket

/**
 * Renders this link's body.
 * 
 * @param markupStream
 *            the markup stream
 * @param openTag
 *            the open part of this tag
 * @see org.apache.wicket.Component#onComponentTagBody(MarkupStream, ComponentTag)
 */
@Override
public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
  // Get a copy of the body model from the getBody() method. This method could be overridden.
  IModel<?> tmpBodyModel = getBody();
  if ((tmpBodyModel != null) && (tmpBodyModel.getObject() != null))
  {
    replaceComponentTagBody(markupStream, openTag,
      getDefaultModelObjectAsString(tmpBodyModel.getObject()));
  }
  else
  {
    // Render the body of the link
    super.onComponentTagBody(markupStream, openTag);
  }
}

代码示例来源:origin: org.opensingular/singular-form-wicket

@Override
public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) {
  super.onComponentTagBody(markupStream, openTag);
  String fileName = model.getObject().getFileName();
  if (fileName != null) {
    getResponse().write(fileName);
    openTag.getAttributes().put("title", fileName);
  }
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see org.apache.wicket.MarkupContainer#onComponentTagBody(org.apache.wicket.markup.MarkupStream,
 *      org.apache.wicket.markup.ComponentTag)
 */
@Override
protected void onComponentTagBody(final MarkupStream markupStream,
  final ComponentTag openTag)
{
  if (wasOpenCloseTag == false)
  {
    // It is open-preview-close. Only RawMarkup is allowed within
    // the preview region, which gets stripped from output
    markupStream.skipRawMarkup();
  }
  // this check always results in false for normal requests.
  // in case of ajax requests, the markupstream is not reset after the first render, thus
  // the current index of the markup stream points to the element after the body.
  // as a result, no elements are detected and always omitted.
  if (beginOfBodyIndex != originalMarkupStream.getCurrentIndex())
  {
    originalMarkupStream.setCurrentIndex(beginOfBodyIndex);
  }
  super.onComponentTagBody(originalMarkupStream, Border.this.openTag);
}

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * @see org.apache.wicket.MarkupContainer#onComponentTagBody(org.apache.wicket.markup.MarkupStream,
 *      org.apache.wicket.markup.ComponentTag)
 */
protected void onComponentTagBody(final MarkupStream markupStream,
  final ComponentTag openTag)
{
  if (wasOpenCloseTag == false)
  {
    // It is open-preview-close. Only RawMarkup is allowed within
    // the preview region, which gets stripped from output
    markupStream.skipRawMarkup();
  }
  // this check always results in false for normal requests.
  // in case of ajax requests, the markupstream is not reset after the first render, thus
  // the current index of the markup stream points to the element after the body.
  // as a result, no elements are detected and always omitted.
  if (beginOfBodyIndex != originalMarkupStream.getCurrentIndex())
  {
    originalMarkupStream.setCurrentIndex(beginOfBodyIndex);
  }
  super.onComponentTagBody(originalMarkupStream, Border.this.openTag);
}

代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core

@Override
  public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) {
    if(hasIconType() && getType().getTagBody() != null) {
      replaceComponentTagBody(markupStream, openTag, getType().getTagBody());
    } else {
      super.onComponentTagBody(markupStream, openTag);
    }
  }
}

代码示例来源:origin: apache/wicket

@Override
public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
  // skip the <wicket:body> body
  if (markupStream.getPreviousTag().isOpen())
  {
    // Only RawMarkup is allowed within the preview region,
    // which gets stripped from output
    markupStream.skipRawMarkup();
  }
  // Get the <span wicket:id="myBorder"> markup and render that instead
  IMarkupFragment markup = Border.this.getMarkup();
  MarkupStream stream = new MarkupStream(markup);
  ComponentTag tag = stream.getTag();
  stream.next();
  super.onComponentTagBody(stream, tag);
}

代码示例来源:origin: org.apache.wicket/wicket-core

@Override
public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
  // skip the <wicket:body> body
  if (markupStream.getPreviousTag().isOpen())
  {
    // Only RawMarkup is allowed within the preview region,
    // which gets stripped from output
    markupStream.skipRawMarkup();
  }
  // Get the <span wicket:id="myBorder"> markup and render that instead
  IMarkupFragment markup = Border.this.getMarkup();
  MarkupStream stream = new MarkupStream(markup);
  ComponentTag tag = stream.getTag();
  stream.next();
  super.onComponentTagBody(stream, tag);
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

super.onComponentTagBody(markupStream, enclosureOpenTag);

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

super.onComponentTagBody(markupStream, openTag);

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

super.onComponentTagBody(markupStream, openTag);

代码示例来源:origin: org.wicketstuff/wicket-html5

super.onComponentTagBody(markupStream, openTag);

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

super.onComponentTagBody(markupStream, openTag);

相关文章

微信公众号

最新文章

更多