本文整理了Java中com.atlassian.plugin.connect.modules.beans.builder.WebItemModuleBeanBuilder.withStyleClasses()
方法的一些代码示例,展示了WebItemModuleBeanBuilder.withStyleClasses()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebItemModuleBeanBuilder.withStyleClasses()
方法的具体详情如下:
包路径:com.atlassian.plugin.connect.modules.beans.builder.WebItemModuleBeanBuilder
类名称:WebItemModuleBeanBuilder
方法名:withStyleClasses
暂无
代码示例来源:origin: com.atlassian.plugins/atlassian-connect-modules
private static String createWebItemExample() {
final WebItemModuleBean webItemModuleBean = WebItemModuleBean.newWebItemBean()
.withName(i18nProperty("My Web Item"))
.withUrl("/my-web-item")
.withKey("web-item-example")
.withLocation("system.preset.filters")
.withIcon(newIconBean().withUrl("/maps/icon.png").withHeight(16).withWidth(16).build())
.withStyleClasses("webitem", "system-present-webitem")
.withTooltip(i18nProperty("Example tooltip"))
.withWeight(200)
.build();
return JsonExamplesUtils.createModuleArrayAsString("webItems", webItemModuleBean);
}
代码示例来源:origin: com.atlassian.plugins/atlassian-connect-server-modules
private static String createWebItemExample() {
final WebItemModuleBean webItemModuleBean = WebItemModuleBean.newWebItemBean()
.withName(i18nProperty("My Web Item"))
.withUrl("/my-web-item")
.withKey("web-item-example")
.withLocation("system.preset.filters")
.withIcon(newIconBean().withUrl("/maps/icon.png").withHeight(16).withWidth(16).build())
.withStyleClasses("webitem", "system-present-webitem")
.withTooltip(i18nProperty("Example tooltip"))
.withWeight(200)
.build();
return JsonExamplesUtils.createModuleArrayAsString("webItems", webItemModuleBean);
}
内容来源于网络,如有侵权,请联系作者删除!