com.jwebmp.core.base.html.Body类的使用及代码示例

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

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

Body介绍

[英]Browser Support

Internet Explorer FireFox Opera Google Chrome Safari

The body tag is supported in all major browsers.

Definition and Usage

The body tag defines the document's body.

The body element contains all the contents of an HTML document, such as text,

hyperlinks, images, tables, lists, etc.

Differences Between HTML 4.01 and HTML5

All layout attributes is removed from HTML5.

All layout attributes is deprecated in HTML 4.01 .
[中]浏览器支持
Internet Explorer FireFox Opera Google Chrome Safari
所有主要浏览器都支持body标记。
定义和用法
body标记定义文档的正文。
body元素包含HTML文档的所有内容,例如文本,
超链接、图像、表格、列表等。
HTML4.01和HTML5之间的差异
所有布局属性都将从HTML5中删除。
HTML 4.01中不推荐使用所有布局属性。

代码示例

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

/**
 * Adds a java script reference to the body
 *
 * @param jsReference
 *         Adds a javascript reference to the body
 *
 * @return This page
 *
 * @see com.jwebmp.core.base.ComponentDependancyBase#addJavaScriptReference(JavascriptReference)
 */
@Override
@SuppressWarnings("unchecked")
@NotNull
public J addJavaScriptReference(JavascriptReference jsReference)
{
  getBody().addJavaScriptReference(jsReference);
  return (J) this;
}

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

/**
 * Adds a css reference to the body
 *
 * @param cssReference
 *         the reference to add
 *
 * @return Always this
 *
 * @see com.jwebmp.core.base.ComponentDependancyBase#addCssReference(CSSReference)
 */
@Override
@SuppressWarnings("unchecked")
@NotNull
public J addCssReference(CSSReference cssReference)
{
  getBody().addCssReference(cssReference);
  return (J) this;
}

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

/**
 * Returns the CSS references from the bdoy
 *
 * @return A set of references
 *
 * @see com.jwebmp.core.base.ComponentDependancyBase#getCssReferences()
 */
@Override
public Set<CSSReference> getCssReferences()
{
  return getBody().getCssReferences();
}

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

.addJavaScriptReference(BootstrapReferencePool.Bootstrap4PopperReference.getJavaScriptReference());
page.getBody()
  .addJavaScriptReference(BootstrapReferencePool.Bootstrap4CoreReference.getJavaScriptReference());
page.getBody()
  .addCssReference(BootstrapReferencePool.Bootstrap4CoreReference.getCssReference());
    .addCssReference(BootstrapReferencePool.Bootstrap4RebootReference.getCssReference());
    .addJavaScriptReference(new JavascriptReference("html5shim", 1.0, "https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js", RequirementsPriority.Fourth));
  page.getBody()
    .addJavaScriptReference(new JavascriptReference("html5shimrespond", 1.0, "https://oss.maxcdn.com/respond/1.4.2/respond.min.js", RequirementsPriority.Fourth));

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

@NotNull
@Override
@SuppressWarnings("unchecked")
public Page configure(Page page)
{
  if (AngularPageConfigurator.required)
  {
    page.getBody()
      .addJavaScriptReference(AngularReferencePool.Angular1.getJavaScriptReference());
    page.getBody()
      .addJavaScriptReference(AngularReferencePool.Angular1NGMessages.getJavaScriptReference());
    page.getBody()
      .addAttribute(AngularAttributes.ngApp, AngularFeature.getAppName());
    page.getBody()
      .addAttribute(AngularAttributes.ngController, AngularFeature.getControllerName() + " as jwCntrl");
  }
  return page;
}

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

.removeJavaScriptReference(JQueryReferencePool.JQueryV2.getJavaScriptReference());
  page.getBody()
    .removeJavaScriptReference(JQueryReferencePool.JQueryV3.getJavaScriptReference());
  page.getBody()
    .removeJavaScriptReference(JQueryReferencePool.JQueryMigrate.getJavaScriptReference());
  page.getBody()
    .addJavaScriptReference(JQueryReferencePool.JQuery.getJavaScriptReference());
  .removeJavaScriptReference(JQueryReferencePool.JQuery.getJavaScriptReference());
if (JQueryPageConfigurator.isJquery3())
    .addJavaScriptReference(JQueryReferencePool.JQueryV3.getJavaScriptReference());
  if (JQueryPageConfigurator.renderMigrate)
      .addJavaScriptReference(JQueryReferencePool.JQueryMigrate.getJavaScriptReference());
    .addJavaScriptReference(JQueryReferencePool.JQueryV2.getJavaScriptReference());

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

@NotNull
@Override
public Page configure(Page<?> page)
{
  if (!page.isConfigured())
  {
    JQueryPageConfigurator.setRequired(true);
    page.getBody()
      .getJavascriptReferences()
      .add(JQueryUIReferencePool.Core.getJavaScriptReference());
    page.getBody()
      .getCssReferences()
      .add(JQueryUIReferencePool.Core.getCssReference());
  }
  return page;
}

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

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

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

/**
 * Gets the java script references from the body object
 *
 * @return A set of javascript references
 *
 * @see com.jwebmp.core.base.ComponentDependancyBase#getJavascriptReferences()
 */
@Override
public Set<JavascriptReference> getJavascriptReferences()
{
  return getBody().getJavascriptReferences();
}

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

/**
 * @see com.jwebmp.core.base.ComponentFeatureBase#preConfigure()
 */
@Override
public void preConfigure()
{
  getPage().getBody()
       .addAttribute(AngularAttributes.ngApp, AngularFeature.getAppName());
  getPage().getBody()
       .addAttribute(AngularAttributes.ngController, AngularFeature.controllerName + " as jwCntrl");
  super.preConfigure();
}

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

public Body<?, ?> getBody()
{
  if (body == null)
  {
    body = new Body<>((Page) this);
  }
  return body;
}

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

/**
 * Adds a feature to the collection
 *
 * @param feature
 *
 * @return
 */
@Override
@SuppressWarnings("unchecked")
@NotNull
public J addFeature(@NotNull ComponentFeatureBase feature)
{
  getBody().addFeature(feature);
  return (J) this;
}

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

.addJavaScriptReference(BootstrapReferencePool.Bootstrap4PopperReference.getJavaScriptReference());
page.getBody()
  .addJavaScriptReference(BootstrapReferencePool.Bootstrap4CoreReference.getJavaScriptReference());
page.getBody()
  .addCssReference(BootstrapReferencePool.Bootstrap4CoreReference.getCssReference());
    .addCssReference(BootstrapReferencePool.Bootstrap4RebootReference.getCssReference());
    .addJavaScriptReference(new JavascriptReference("html5shim", 1.0, "https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js", RequirementsPriority.Fourth));
  page.getBody()
    .addJavaScriptReference(new JavascriptReference("html5shimrespond", 1.0, "https://oss.maxcdn.com/respond/1.4.2/respond.min.js", RequirementsPriority.Fourth));

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

@NotNull
@Override
@SuppressWarnings("unchecked")
public Page configure(Page page)
{
  if (AngularPageConfigurator.required)
  {
    page.getBody()
      .addJavaScriptReference(AngularReferencePool.Angular1.getJavaScriptReference());
    page.getBody()
      .addJavaScriptReference(AngularReferencePool.Angular1NGMessages.getJavaScriptReference());
    page.getBody()
      .addAttribute(AngularAttributes.ngApp, AngularFeature.getAppName());
    page.getBody()
      .addAttribute(AngularAttributes.ngController, AngularFeature.getControllerName() + " as jwCntrl");
  }
  return page;
}

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

.removeJavaScriptReference(JQueryReferencePool.JQueryV2.getJavaScriptReference());
  page.getBody()
    .removeJavaScriptReference(JQueryReferencePool.JQueryV3.getJavaScriptReference());
  page.getBody()
    .removeJavaScriptReference(JQueryReferencePool.JQueryMigrate.getJavaScriptReference());
  page.getBody()
    .addJavaScriptReference(JQueryReferencePool.JQuery.getJavaScriptReference());
  .removeJavaScriptReference(JQueryReferencePool.JQuery.getJavaScriptReference());
if (JQueryPageConfigurator.isJquery3())
    .addJavaScriptReference(JQueryReferencePool.JQueryV3.getJavaScriptReference());
  if (JQueryPageConfigurator.renderMigrate)
      .addJavaScriptReference(JQueryReferencePool.JQueryMigrate.getJavaScriptReference());
    .addJavaScriptReference(JQueryReferencePool.JQueryV2.getJavaScriptReference());

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

@NotNull
@Override
public Page configure(Page<?> page)
{
  if (!page.isConfigured())
  {
    JQueryPageConfigurator.setRequired(true);
    page.getBody()
      .getJavascriptReferences()
      .add(JQueryUIReferencePool.Core.getJavaScriptReference());
    page.getBody()
      .getCssReferences()
      .add(JQueryUIReferencePool.Core.getCssReference());
  }
  return page;
}

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

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

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

/**
 * Gets the java script references from the body object
 *
 * @return A set of javascript references
 *
 * @see com.jwebmp.core.base.ComponentDependancyBase#getJavascriptReferences()
 */
@Override
public Set<JavascriptReference> getJavascriptReferences()
{
  return getBody().getJavascriptReferences();
}

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

/**
 * @see com.jwebmp.core.base.ComponentFeatureBase#preConfigure()
 */
@Override
public void preConfigure()
{
  getPage().getBody()
       .addAttribute(AngularAttributes.ngApp, AngularFeature.getAppName());
  getPage().getBody()
       .addAttribute(AngularAttributes.ngController, AngularFeature.controllerName + " as jwCntrl");
  super.preConfigure();
}

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

public Body<?, ?> getBody()
{
  if (body == null)
  {
    body = new Body<>((Page) this);
  }
  return body;
}

相关文章