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

x33g5p2x  于2022-01-17 转载在 JavaScript  
字(10.1k)|赞(0)|评价(0)|浏览(178)

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

Body.addJavaScriptReference介绍

暂无

代码示例

代码示例来源: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 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.jre11/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-easing-effects

@NotNull
@Override
public Page configure(Page page)
{
  if (!page.isConfigured())
  {
    page.getBody()
      .addJavaScriptReference(EasingPageConfigurator.reference);
  }
  return page;
}

代码示例来源: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.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/jwebmp-angularjs

@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

.addJavaScriptReference(JQueryReferencePool.PersistJS.getJavaScriptReference());
  .addJavaScriptReference(JQueryReferencePool.JQueryV3.getJavaScriptReference());
if (JQueryPageConfigurator.renderMigrate)
    .addJavaScriptReference(JQueryReferencePool.JQueryMigrate.getJavaScriptReference());
    .addJavaScriptReference(JQueryReferencePool.JQueryV2.getJavaScriptReference());

代码示例来源:origin: com.jwebmp/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

.addJavaScriptReference(JQueryReferencePool.PersistJS.getJavaScriptReference());
  .addJavaScriptReference(JQueryReferencePool.JQueryV3.getJavaScriptReference());
if (JQueryPageConfigurator.renderMigrate)
    .addJavaScriptReference(JQueryReferencePool.JQueryMigrate.getJavaScriptReference());
    .addJavaScriptReference(JQueryReferencePool.JQueryV2.getJavaScriptReference());

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

.addJavaScriptReference(JQueryReferencePool.PersistJS.getJavaScriptReference());
  .addJavaScriptReference(JQueryReferencePool.JQueryV3.getJavaScriptReference());
if (JQueryPageConfigurator.renderMigrate)
    .addJavaScriptReference(JQueryReferencePool.JQueryMigrate.getJavaScriptReference());
    .addJavaScriptReference(JQueryReferencePool.JQueryV2.getJavaScriptReference());

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

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

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

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

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

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

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

.addJavaScriptReference(BootstrapReferencePool.Bootstrap4PopperReference.getJavaScriptReference());
page.getBody()
  .addJavaScriptReference(BootstrapReferencePool.Bootstrap4CoreReference.getJavaScriptReference());
page.getBody()
  .addCssReference(BootstrapReferencePool.Bootstrap4CoreReference.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/jwebmp-bootstrap4

.addJavaScriptReference(BootstrapReferencePool.Bootstrap4PopperReference.getJavaScriptReference());
page.getBody()
  .addJavaScriptReference(BootstrapReferencePool.Bootstrap4CoreReference.getJavaScriptReference());
page.getBody()
  .addCssReference(BootstrapReferencePool.Bootstrap4CoreReference.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-bootstrap

.addJavaScriptReference(BootstrapReferencePool.BootstrapCoreReference.getJavaScriptReference());
page.getBody()
  .addCssReference(BootstrapReferencePool.BootstrapCoreReference.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-bootstrap

.addJavaScriptReference(BootstrapReferencePool.BootstrapCoreReference.getJavaScriptReference());
page.getBody()
  .addCssReference(BootstrapReferencePool.BootstrapCoreReference.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-bootstrap4

.addJavaScriptReference(BootstrapReferencePool.Bootstrap4PopperReference.getJavaScriptReference());
page.getBody()
  .addJavaScriptReference(BootstrapReferencePool.Bootstrap4CoreReference.getJavaScriptReference());
page.getBody()
  .addCssReference(BootstrapReferencePool.Bootstrap4CoreReference.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));

相关文章