本文整理了Java中com.jwebmp.core.base.html.Body.addAttribute()
方法的一些代码示例,展示了Body.addAttribute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Body.addAttribute()
方法的具体详情如下:
包路径:com.jwebmp.core.base.html.Body
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!