com.jwebmp.core.base.html.Body.add()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(102)

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

Body.add介绍

暂无

代码示例

代码示例来源:origin: com.jwebmp.jre10/jwebmp-core

@Override
public J add(@NotNull IComponentHierarchyBase child)
{
  getBody().add(child);
  return (J) this;
}

代码示例来源:origin: com.jwebmp.jre11/jwebmp-core

@Override
public J add(@NotNull IComponentHierarchyBase child)
{
  getBody().add(child);
  return (J) this;
}

代码示例来源:origin: com.jwebmp/jwebmp-core

@Override
public J add(@NotNull IComponentHierarchyBase child)
{
  getBody().add(child);
  return (J) this;
}

代码示例来源:origin: com.jwebmp/jwebmp-core

/**
 * Adds the text as a given paragraph
 *
 * @param addText
 *         The text to add to the body
 *
 * @return This
 *
 * @see Component#add(String)
 */
@Override
@SuppressWarnings("unchecked")
@NotNull
public J add(@NotNull String addText)
{
  getBody().add(addText);
  return (J) this;
}

代码示例来源:origin: com.jwebmp.jre10/jwebmp-core

/**
 * Adds the text as a given paragraph
 *
 * @param addText
 *         The text to add to the body
 *
 * @return This
 *
 * @see Component#add(String)
 */
@Override
@SuppressWarnings("unchecked")
@NotNull
public J add(@NotNull String addText)
{
  getBody().add(addText);
  return (J) this;
}

代码示例来源:origin: com.jwebmp.jre11/jwebmp-core

/**
 * Adds the text as a given paragraph
 *
 * @param addText
 *         The text to add to the body
 *
 * @return This
 *
 * @see Component#add(String)
 */
@Override
@SuppressWarnings("unchecked")
@NotNull
public J add(@NotNull String addText)
{
  getBody().add(addText);
  return (J) this;
}

代码示例来源:origin: com.jwebmp/jwebmp-core

/**
 * Processes requests for the WebSwing Servlet.
 *
 * @param request
 *         The Default Servlet request
 * @param response
 *         The Default Servlet response
 */
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
{
  try
  {
    readRequestVariables(request);
    readBrowserInformation(request);
  }
  catch (MissingComponentException mce)
  {
    JWDefaultServlet.log.log(Level.SEVERE, "No Page For Servlet", mce);
    Page p = new Page();
    p.getBody()
     .add("No Page or Body Configured for the JWebSwingServlet. [getPage()] returned nothing");
    writeOutput(new StringBuilder(p.toString(0)), StaticStrings.HTML_HEADER_DEFAULT_CONTENT_TYPE, StaticStrings.UTF8_CHARSET);
  }
  catch (Exception t)
  {
    JWDefaultServlet.log.log(Level.SEVERE, "Unable to render page", t);
    response.setContentType(StaticStrings.HTML_HEADER_DEFAULT_CONTENT_TYPE);
    writeOutput(new StringBuilder(getErrorPageHtml(t).toString(0)), StaticStrings.HTML_HEADER_DEFAULT_CONTENT_TYPE, StaticStrings.UTF8_CHARSET);
  }
}

代码示例来源:origin: com.jwebmp.jre10/jwebmp-core

b.add("The following error was encountered during render<br/><hr/>");
b.add(new PreFormattedText(TextUtilities.stackTraceToString(t)));
return p;

代码示例来源:origin: com.jwebmp.jre11/jwebmp-core

/**
 * Processes requests for the WebSwing Servlet.
 *
 * @param request
 *         The Default Servlet request
 * @param response
 *         The Default Servlet response
 */
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
{
  try
  {
    readRequestVariables(request);
    readBrowserInformation(request);
  }
  catch (MissingComponentException mce)
  {
    JWDefaultServlet.log.log(Level.SEVERE, "No Page For Servlet", mce);
    Page p = new Page();
    p.getBody()
     .add("No Page or Body Configured for the JWebSwingServlet. [getPage()] returned nothing");
    writeOutput(new StringBuilder(p.toString(0)), StaticStrings.HTML_HEADER_DEFAULT_CONTENT_TYPE, StaticStrings.UTF8_CHARSET);
  }
  catch (Exception t)
  {
    JWDefaultServlet.log.log(Level.SEVERE, "Unable to render page", t);
    response.setContentType(StaticStrings.HTML_HEADER_DEFAULT_CONTENT_TYPE);
    writeOutput(new StringBuilder(getErrorPageHtml(t).toString(0)), StaticStrings.HTML_HEADER_DEFAULT_CONTENT_TYPE, StaticStrings.UTF8_CHARSET);
  }
}

代码示例来源:origin: com.jwebmp.jre10/jwebmp-core

/**
 * Processes requests for the WebSwing Servlet.
 *
 * @param request
 *         The Default Servlet request
 * @param response
 *         The Default Servlet response
 */
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
{
  try
  {
    readRequestVariables(request);
    readBrowserInformation(request);
  }
  catch (MissingComponentException mce)
  {
    JWDefaultServlet.log.log(Level.SEVERE, "No Page For Servlet", mce);
    Page p = new Page();
    p.getBody()
     .add("No Page or Body Configured for the JWebSwingServlet. [getPage()] returned nothing");
    writeOutput(new StringBuilder(p.toString(0)), StaticStrings.HTML_HEADER_DEFAULT_CONTENT_TYPE, StaticStrings.UTF8_CHARSET);
  }
  catch (Exception t)
  {
    JWDefaultServlet.log.log(Level.SEVERE, "Unable to render page", t);
    response.setContentType(StaticStrings.HTML_HEADER_DEFAULT_CONTENT_TYPE);
    writeOutput(new StringBuilder(getErrorPageHtml(t).toString(0)), StaticStrings.HTML_HEADER_DEFAULT_CONTENT_TYPE, StaticStrings.UTF8_CHARSET);
  }
}

代码示例来源:origin: com.jwebmp/jwebmp-core

b.add("The following error was encountered during render<br/><hr/>");
b.add(new PreFormattedText(TextUtilities.stackTraceToString(t)));
return p;

代码示例来源:origin: com.jwebmp.jre11/jwebmp-core

b.add("The following error was encountered during render<br/><hr/>");
b.add(new PreFormattedText(TextUtilities.stackTraceToString(t)));
return p;

代码示例来源:origin: com.jwebmp/jwebmp-core

.add(beforeText);
  .add(getDynamicReference(JWebMPSiteBinder.getJWScriptLocation()
                       .replaceAll(StaticStrings.STRING_FORWARD_SLASH, StaticStrings.STRING_EMPTY)));
page.getBody()
  .add(getDynamicReference(JWebMPSiteBinder.getJavaScriptLocation()
                       .replaceAll(StaticStrings.STRING_FORWARD_SLASH, StaticStrings.STRING_EMPTY)));
  .add(getDynamicReference(JWebMPSiteBinder.getAngularScriptLocation()
                       .replaceAll(StaticStrings.STRING_FORWARD_SLASH, StaticStrings.STRING_EMPTY)));
.add(afterText);

代码示例来源:origin: com.jwebmp.jre11/jwebmp-core

.add(beforeText);
  .add(getDynamicReference(JWebMPSiteBinder.getJWScriptLocation()
                       .replaceAll(StaticStrings.STRING_FORWARD_SLASH, StaticStrings.STRING_EMPTY)));
page.getBody()
  .add(getDynamicReference(JWebMPSiteBinder.getJavaScriptLocation()
                       .replaceAll(StaticStrings.STRING_FORWARD_SLASH, StaticStrings.STRING_EMPTY)));
  .add(getDynamicReference(JWebMPSiteBinder.getAngularScriptLocation()
                       .replaceAll(StaticStrings.STRING_FORWARD_SLASH, StaticStrings.STRING_EMPTY)));
.add(afterText);

代码示例来源:origin: com.jwebmp.jre10/jwebmp-core

.add(beforeText);
  .add(getDynamicReference(JWebMPSiteBinder.getJWScriptLocation()
                       .replaceAll(StaticStrings.STRING_FORWARD_SLASH, StaticStrings.STRING_EMPTY)));
page.getBody()
  .add(getDynamicReference(JWebMPSiteBinder.getJavaScriptLocation()
                       .replaceAll(StaticStrings.STRING_FORWARD_SLASH, StaticStrings.STRING_EMPTY)));
  .add(getDynamicReference(JWebMPSiteBinder.getAngularScriptLocation()
                       .replaceAll(StaticStrings.STRING_FORWARD_SLASH, StaticStrings.STRING_EMPTY)));
.add(afterText);

相关文章