Class Icon

java.lang.Object
com.persequor.extension.frontend.Icon

public class Icon extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • create

      public static Icon create(String name)
      Parameters:
      name - the name of the icon taken from the fontawesome icon gallery
      Returns:
      the icon object
    • create

      public static Icon create(String name, Icon.Style style)
      Create an Icon
      Parameters:
      name - the name of the icon taken from the FontAwesome icon gallery
      style - the style of the icon, defaults to Style.DUOTONE
      Returns:
    • create

      @Deprecated public static Icon create(String name, String color)
      Deprecated.
      Parameters:
      name - the name of the icon taken from the fontawesome icon gallery
      color - color of the icon, either by name or hex value
      Returns:
      the icon object
    • create

      public static Icon create(String name, Color color)
      Parameters:
      name - the name of the icon taken from the fontawesome icon gallery
      color - color of the icon, either by name or hex value
      Returns:
      the icon object
    • create

      public static Icon create(String name, Icon.Style style, Color color)
      Create an Icon
      Parameters:
      name - the name of the icon taken from the FontAwesome icon gallery
      style - the style of the icon, defaults to Style.DUOTONE
      Returns:
    • create

      public static Icon create(String name, Color color, Icon.IconPlacement placement)
      Parameters:
      name - the name of the icon taken from the fontawesome icon gallery
      color - color of the icon
      placement - placement
      Returns:
      the icon object
    • create

      public static Icon create(String name, Icon.Style style, Color color, Icon.IconPlacement placement)
      Parameters:
      name - the name of the icon taken from the fontawesome icon gallery
      color - color of the icon
      placement - placement
      Returns:
      the icon object
    • create

      @Deprecated public static Icon create(String name, String color, Icon.IconPlacement placement)
      Deprecated.
      Parameters:
      name - the name of the icon taken from the fontawesome icon gallery
      color - color of the icon, either by name or hex value
      placement - placement
      Returns:
      the icon object
    • farm

      public static Icon farm(Color color)
    • box

      public static Icon box(Color color)
    • boxes

      public static Icon boxes(Color color)
    • pallet

      public static Icon pallet(Color color)
    • measurement

      public static Icon measurement(Color color)
    • grinding

      public static Icon grinding(Color color)
    • mixing

      public static Icon mixing(Color color)
    • centralising

      public static Icon centralising(Color color)
    • commissioning

      public static Icon commissioning(Color color)
    • search

      public static Icon search(Color color)
    • history

      public static Icon history(Color color)
    • getName

      public String getName()
    • setName

      public Icon setName(String name)
    • getColor

      public Color getColor()
    • setDefaultColor

      public Icon setDefaultColor(Color defaultColor)
      Default color to be used if color isn't set
      Parameters:
      defaultColor - default color of the icon
      Returns:
      the icon object
    • setColor

      public Icon setColor(Color color)
    • getPlacement

      public Icon.IconPlacement getPlacement()
    • setPlacement

      public Icon setPlacement(Icon.IconPlacement placement)
    • setBadge

      public Icon setBadge(String badge, Color badgeColor, Color badgeTextColor)
    • setBadge

      public Icon setBadge(String badge)
    • getBadge

      public String getBadge()
    • setSize

      public Icon setSize(IconSize size)
    • setTitle

      public Icon setTitle(String title)
    • getTitle

      public String getTitle()
    • getBadgeColor

      public Color getBadgeColor()
    • getBadgeTextColor

      public Color getBadgeTextColor()
    • getSize

      public String getSize()
    • getPrefix

      public Icon.Style getPrefix()