public CustomContentIconsBeanBuilder withList(String url) { this.list = new IconBeanBuilder(new IconBean()).withUrl(url).build(); return this; }
private static IconBean createIconBean() { return newIconBean().withUrl("/my-icon.png").withWidth(16).withHeight(16).build(); }
public static IconBeanBuilder newIconBean(IconBean defaultBean) { return new IconBeanBuilder(defaultBean); }
public static IconBeanBuilder newIconBean() { return new IconBeanBuilder(); }
private static IconBean createIconBean() { return newIconBean().withUrl("/my-icon.png").withWidth(16).withHeight(16).build(); }
public CustomContentIconsBeanBuilder withItem(String url) { this.item = new IconBeanBuilder(new IconBean()).withUrl(url).build(); return this; }
public static IconBeanBuilder newIconBean(IconBean defaultBean) { return new IconBeanBuilder(defaultBean); }
private static IconBean createIconBean() { return newIconBean().withUrl("/my-icon.png").withWidth(16).withHeight(16).build(); }
public CustomContentIconsBeanBuilder withCreate(String url) { this.create = new IconBeanBuilder(new IconBean()).withUrl(url).build(); return this; }
public static IconBeanBuilder newIconBean() { return new IconBeanBuilder(); }
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); }
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); }
private static String createConfluenceThemeExample() { ConfluenceThemeModuleBean themeBean = ConfluenceThemeModuleBean.newConfluenceThemeModuleBean() .withKey("my-addon-theme") .withName(i18nProperty("My Addon Theme")) .withDescription(i18nProperty("Some description")) .withIcon(newIconBean().withUrl("/my-theme-icon.png") .withWidth(110) .withHeight(70) .build()) .withRoutes(createConfluenceThemeRouteInterception()) .withLookAndFeel(createThemeLookAndFeelExample()) .build(); return JsonExamplesUtils.createModuleArrayAsString("confluenceThemes", themeBean); }
.withKey("my-general-page") .withUrl("/my-general-page") .withIcon(newIconBean().withUrl("/maps/icon.png").withHeight(80).withWidth(80).build()) .build()); JsonElement adminPageModuleBean = JsonExamplesUtils.createJsonArrayWithSingleObject(ConnectPageModuleBean.newPageBean()
.withKey("my-general-page") .withUrl("/my-general-page") .withIcon(newIconBean().withUrl("/maps/icon.png").withHeight(80).withWidth(80).build()) .build()); JsonElement adminPageModuleBean = JsonExamplesUtils.createJsonArrayWithSingleObject(ConnectPageModuleBean.newPageBean()
.withIcon(newIconBean().withUrl("/maps/icon.png").withHeight(80).withWidth(80).build()) .withParameters(newMacroParameterBean() .withIdentifier("view")
.withWidth("200px") .withHeight("200px") .withIcon(newIconBean().withUrl("/maps/icon.png").withHeight(80).withWidth(80).build()) .withParameters(newMacroParameterBean() .withIdentifier("view")