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

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

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

Body.addAttribute介绍

暂无

代码示例

代码示例来源: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

/**
 * @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

/**
 * @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-angularjs

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

代码示例来源: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

@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;
}

相关文章