Enum Class ImageStyle

java.lang.Object
java.lang.Enum<ImageStyle>
com.jbstrap.ui.bootstrap.ImageStyle
All Implemented Interfaces:
StyleElement, Serializable, Comparable<ImageStyle>, Constable

public enum ImageStyle extends Enum<ImageStyle> implements StyleElement
Enum containing the display styles used by the images. See the JBStrap showcase for examples
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • DEFAULT

      public static final ImageStyle DEFAULT
      Default style. The image will be displayed, but it will have no formatting.
    • ROUNDED

      public static final ImageStyle ROUNDED
      Rounded style. The image's corners are rounded
    • CIRCLE

      public static final ImageStyle CIRCLE
      Circle style display. The image will be displayed in a circle shape
    • THUMBNAIL

      public static final ImageStyle THUMBNAIL
      Thumbnail display style. The image will have a rounded frame around the image.
  • Method Details

    • values

      public static ImageStyle[] 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 ImageStyle 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
    • apply

      public void apply(Component<?> image)
      Specified by:
      apply in interface StyleElement
      Parameters:
      image - The component
    • remove

      public void remove(Component<?> image)
      Specified by:
      remove in interface StyleElement
      Parameters:
      image - The component
    • getStyleClassName

      public String getStyleClassName()
      Specified by:
      getStyleClassName in interface StyleElement
      Returns:
      The style class name or null if is not style class for the style settings