Package swiss.trustbroker.config.dto
Class Banner
java.lang.Object
swiss.trustbroker.config.dto.Banner
- All Implemented Interfaces:
Serializable
Specifies optional banner displayed on top of the screen.
- Since:
- 1.9.0
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Banner.BannerBuilderbuilder()protected booleanbooleanbooleanDisplay banner paragraphs collapsed on a small screen.Banner is globally enabled, regardless tiles on the screen.Optional main image.getName()Name of the banner used for referencing resources (texts, css class).getOrder()Banner display order for global banners or if no order is defined for the CP.Optional list of secondary images.inthashCode()booleanisGlobal()voidsetCollapseParagraphs(Boolean collapseParagraphs) Display banner paragraphs collapsed on a small screen.voidBanner is globally enabled, regardless tiles on the screen.voidsetMainImage(String mainImage) Optional main image.voidName of the banner used for referencing resources (texts, css class).voidBanner display order for global banners or if no order is defined for the CP.voidsetSecondaryImages(List<String> secondaryImages) Optional list of secondary images.toString()
-
Constructor Details
-
Banner
public Banner() -
Banner
public Banner(String name, Boolean global, Integer order, Boolean collapseParagraphs, String mainImage, List<String> secondaryImages) Creates a newBannerinstance.- Parameters:
name- Name of the banner used for referencing resources (texts, css class).global- Banner is globally enabled, regardless tiles on the screen.order- Banner display order for global banners or if no order is defined for the CP.
Influences which banners are shown if their number is limited.collapseParagraphs- Display banner paragraphs collapsed on a small screen.
Default: true, disable if all information is required on small screens as well.mainImage- Optional main image.secondaryImages- Optional list of secondary images.- Since:
- v1.10.0 Previously named collapseParagraphsOnSmallScreen with default false.
-
-
Method Details
-
collapseParagraphs
public boolean collapseParagraphs() -
isGlobal
public boolean isGlobal() -
builder
-
getName
Name of the banner used for referencing resources (texts, css class). -
getGlobal
Banner is globally enabled, regardless tiles on the screen. -
getOrder
Banner display order for global banners or if no order is defined for the CP.
Influences which banners are shown if their number is limited. -
getCollapseParagraphs
Display banner paragraphs collapsed on a small screen.
Default: true, disable if all information is required on small screens as well.- Since:
- v1.10.0 Previously named collapseParagraphsOnSmallScreen with default false.
-
getMainImage
Optional main image. -
getSecondaryImages
Optional list of secondary images. -
setName
Name of the banner used for referencing resources (texts, css class). -
setGlobal
Banner is globally enabled, regardless tiles on the screen. -
setOrder
Banner display order for global banners or if no order is defined for the CP.
Influences which banners are shown if their number is limited. -
setCollapseParagraphs
Display banner paragraphs collapsed on a small screen.
Default: true, disable if all information is required on small screens as well.- Since:
- v1.10.0 Previously named collapseParagraphsOnSmallScreen with default false.
-
setMainImage
Optional main image. -
setSecondaryImages
Optional list of secondary images. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-