Package com.jbstrap.ui.bootstrap
Class DisplayType
java.lang.Object
com.jbstrap.ui.bootstrap.DisplayType
- All Implemented Interfaces:
StyleElement
Component display types.
- Since:
- 4.0
- Author:
- JBStrap
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static DisplayType
BLOCK()
Displays the component as a block component for all screen sizes.static DisplayType
BLOCK
(ScreenSize screenSize) Displays the component as a block component for the specified and bigger screen sizes.static DisplayType
FLEX()
Flexible component display setting for all screen sizes.static DisplayType
FLEX
(ScreenSize screenSize) Flexible display of the component for the specified and bigger screen sizes.getAllDisplayTypeStyleClasses
(Component<?> component) Gets all display type classes from the specified component.static DisplayType
INLINE()
In-line display setting of the component for all screen sizes.static DisplayType
INLINE
(ScreenSize screenSize) In-line display setting for the specified and bigger screen sizes.static DisplayType
Displays the component in a row in case of a block component for all screen sizes.static DisplayType
INLINE_BLOCK
(ScreenSize screenSize) In-line display of the component as a block component for the specified and bigger screen sizes.static DisplayType
Flexible in-line display setting of the component for all screen sizes.static DisplayType
INLINE_FLEX
(ScreenSize screenSize) Flexible in-line display of the component for the specified and bigger screen sizes.static DisplayType
NONE()
Hides the component for all screen sizes.static DisplayType
NONE
(ScreenSize screenSize) Hides the component in case of the specified and bigger screen sizes.static DisplayType
Displays the component as a block for printing.static DisplayType
Flexible display of the component for printing.static DisplayType
In-line display of the component for printing.static DisplayType
In-line display of the component as a block for printing.static DisplayType
Flexible in-line display of the component for printing.static DisplayType
Hides the component for printing.static DisplayType
Displays the component as a table for printing.static DisplayType
Displays the component as a table cell for printing.static DisplayType
Displays the component as a table row for printing.void
static void
removeAllDisplayType
(Component<?> component) Removes all display settings from the specified component.static DisplayType
TABLE()
Display the component as a table for all screen sizes.static DisplayType
TABLE
(ScreenSize screenSize) Displays the component as a table for the specified and bigger screen sizes.static DisplayType
Display the component as a table cell for all screen sizes.static DisplayType
TABLE_CELL
(ScreenSize screenSize) Displays the component as a table cell for the specified and bigger screen sizes.static DisplayType
Displays the component as a table row for all screen sizes.static DisplayType
TABLE_ROW
(ScreenSize screenSize) Displays the component as a table row for the specified and bigger screen sizes.
-
Method Details
-
NONE
Hides the component for all screen sizes.- Returns:
- Display type object
-
INLINE
In-line display setting of the component for all screen sizes.- Returns:
- Display type object
-
INLINE_BLOCK
Displays the component in a row in case of a block component for all screen sizes.- Returns:
- Display type object
-
BLOCK
Displays the component as a block component for all screen sizes. This is the browser’s default display setting.- Returns:
- Display type object
-
TABLE
Display the component as a table for all screen sizes.- Returns:
- Display type object
-
TABLE_CELL
Display the component as a table cell for all screen sizes.- Returns:
- Display type object
-
TABLE_ROW
Displays the component as a table row for all screen sizes.- Returns:
- Display type object
-
FLEX
Flexible component display setting for all screen sizes.- Returns:
- Display type object
-
INLINE_FLEX
Flexible in-line display setting of the component for all screen sizes.- Returns:
- Display type object
-
NONE
Hides the component in case of the specified and bigger screen sizes.- Parameters:
screenSize
- Screen size- Returns:
- Display type object
-
INLINE
In-line display setting for the specified and bigger screen sizes.- Parameters:
screenSize
- Screen size- Returns:
- Display type object
-
INLINE_BLOCK
In-line display of the component as a block component for the specified and bigger screen sizes.- Parameters:
screenSize
- Screen size- Returns:
- Display type object
-
BLOCK
Displays the component as a block component for the specified and bigger screen sizes. This is the browser’s default display setting.- Parameters:
screenSize
- Screen size- Returns:
- Display type object
-
TABLE
Displays the component as a table for the specified and bigger screen sizes.- Parameters:
screenSize
- Screen size- Returns:
- Display type object
-
TABLE_CELL
Displays the component as a table cell for the specified and bigger screen sizes.- Parameters:
screenSize
- Screen size- Returns:
- Display type object
-
TABLE_ROW
Displays the component as a table row for the specified and bigger screen sizes.- Parameters:
screenSize
- Screen size- Returns:
- Display type object
-
FLEX
Flexible display of the component for the specified and bigger screen sizes.- Parameters:
screenSize
- Screen size- Returns:
- Display type object
-
INLINE_FLEX
Flexible in-line display of the component for the specified and bigger screen sizes.- Parameters:
screenSize
- Screen size- Returns:
- Display type object
-
PRINT_NONE
Hides the component for printing.- Returns:
- Display type object
-
PRINT_INLINE
In-line display of the component for printing.- Returns:
- Display type object
-
PRINT_INLINE_BLOCK
In-line display of the component as a block for printing.- Returns:
- Display type object
-
PRINT_BLOCK
Displays the component as a block for printing.- Returns:
- Display type object
-
PRINT_TABLE
Displays the component as a table for printing.- Returns:
- Display type object
-
PRINT_TABLE_CELL
Displays the component as a table cell for printing.- Returns:
- Display type object
-
PRINT_TABLE_ROW
Displays the component as a table row for printing.- Returns:
- Display type object
-
PRINT_FLEX
Flexible display of the component for printing.- Returns:
- Display type object
-
PRINT_INLINE_FLEX
Flexible in-line display of the component for printing.- Returns:
- Display type object
-
removeAllDisplayType
Removes all display settings from the specified component.- Parameters:
component
- Component instance
-
getAllDisplayTypeStyleClasses
Gets all display type classes from the specified component.- Parameters:
component
- Component instance- Returns:
- List of all display type style classes for the specified component If there is no available setting for the specified component, the method returns an empty list.
-
apply
- Specified by:
apply
in interfaceStyleElement
- Parameters:
component
- The component
-
remove
- Specified by:
remove
in interfaceStyleElement
- Parameters:
component
- The component
-
getStyleClassName
- Specified by:
getStyleClassName
in interfaceStyleElement
- Returns:
- The style class name or
null
if is not style class for the style settings
-