Class Banner

java.lang.Object
swiss.trustbroker.config.dto.Banner
All Implemented Interfaces:
Serializable

public class Banner extends Object implements Serializable
Specifies optional banner displayed on top of the screen.
Since:
1.9.0
See Also:
  • Constructor Details

    • Banner

      public Banner()
    • Banner

      public Banner(String name, Boolean global, Integer order, Boolean collapseParagraphs, String mainImage, List<String> secondaryImages)
      Creates a new Banner instance.
      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

      public static Banner.BannerBuilder builder()
    • getName

      public String getName()
      Name of the banner used for referencing resources (texts, css class).
    • getGlobal

      public Boolean getGlobal()
      Banner is globally enabled, regardless tiles on the screen.
    • getOrder

      public Integer 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

      public Boolean 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

      public String getMainImage()
      Optional main image.
    • getSecondaryImages

      public List<String> getSecondaryImages()
      Optional list of secondary images.
    • setName

      public void setName(String name)
      Name of the banner used for referencing resources (texts, css class).
    • setGlobal

      public void setGlobal(Boolean global)
      Banner is globally enabled, regardless tiles on the screen.
    • setOrder

      public void setOrder(Integer 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.
    • setCollapseParagraphs

      public void setCollapseParagraphs(Boolean collapseParagraphs)
      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

      public void setMainImage(String mainImage)
      Optional main image.
    • setSecondaryImages

      public void setSecondaryImages(List<String> secondaryImages)
      Optional list of secondary images.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object