Package com.jbstrap.ui.bootstrap
Enum Class ImageStyle
- All Implemented Interfaces:
StyleElement
,Serializable
,Comparable<ImageStyle>
,Constable
Enum containing the display styles used by the images. See the JBStrap showcase for examples
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
static ImageStyle
Returns the enum constant of this class with the specified name.static ImageStyle[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default style. The image will be displayed, but it will have no formatting. -
ROUNDED
Rounded style. The image's corners are rounded -
CIRCLE
Circle style display. The image will be displayed in a circle shape -
THUMBNAIL
Thumbnail display style. The image will have a rounded frame around the image.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
apply
- Specified by:
apply
in interfaceStyleElement
- Parameters:
image
- The component
-
remove
- Specified by:
remove
in interfaceStyleElement
- Parameters:
image
- The component
-
getStyleClassName
- Specified by:
getStyleClassName
in interfaceStyleElement
- Returns:
- The style class name or
null
if is not style class for the style settings
-