Enum Class CommonsDemoIcons

java.lang.Object
java.lang.Enum<CommonsDemoIcons>
com.flowingcode.vaadin.addons.demo.CommonsDemoIcons
All Implemented Interfaces:
IconFactory, Serializable, Comparable<CommonsDemoIcons>, Constable

public enum CommonsDemoIcons extends Enum<CommonsDemoIcons> implements IconFactory
CommonsDemo icons.
Author:
Javier Godoy / Flowing Code
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static CommonsDemoIcons[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CommonsDemoIcons valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getIconName

      public String getIconName()
      Return the full icon name.
      Returns:
      the full icon name, i.e. "commons-demo:name".
    • getIconPart

      public String getIconPart()
      Return the icon name within the iconset.
      Returns:
      the icon name, i.e. "name".
    • create

      public CommonsDemoIcons.Icon create()
      Create a new CommonsDemoIcons.Icon instance with the icon determined by the name.
      Specified by:
      create in interface IconFactory
      Returns:
      a new instance of CommonsDemoIcons.Icon component