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 TypeMethodDescriptionvoidstatic DisplayTypeBLOCK()Displays the component as a block component for all screen sizes.static DisplayTypeBLOCK(ScreenSize screenSize) Displays the component as a block component for the specified and bigger screen sizes.static DisplayTypeFLEX()Flexible component display setting for all screen sizes.static DisplayTypeFLEX(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 DisplayTypeINLINE()In-line display setting of the component for all screen sizes.static DisplayTypeINLINE(ScreenSize screenSize) In-line display setting for the specified and bigger screen sizes.static DisplayTypeDisplays the component in a row in case of a block component for all screen sizes.static DisplayTypeINLINE_BLOCK(ScreenSize screenSize) In-line display of the component as a block component for the specified and bigger screen sizes.static DisplayTypeFlexible in-line display setting of the component for all screen sizes.static DisplayTypeINLINE_FLEX(ScreenSize screenSize) Flexible in-line display of the component for the specified and bigger screen sizes.static DisplayTypeNONE()Hides the component for all screen sizes.static DisplayTypeNONE(ScreenSize screenSize) Hides the component in case of the specified and bigger screen sizes.static DisplayTypeDisplays the component as a block for printing.static DisplayTypeFlexible display of the component for printing.static DisplayTypeIn-line display of the component for printing.static DisplayTypeIn-line display of the component as a block for printing.static DisplayTypeFlexible in-line display of the component for printing.static DisplayTypeHides the component for printing.static DisplayTypeDisplays the component as a table for printing.static DisplayTypeDisplays the component as a table cell for printing.static DisplayTypeDisplays the component as a table row for printing.voidstatic voidremoveAllDisplayType(Component<?> component) Removes all display settings from the specified component.static DisplayTypeTABLE()Display the component as a table for all screen sizes.static DisplayTypeTABLE(ScreenSize screenSize) Displays the component as a table for the specified and bigger screen sizes.static DisplayTypeDisplay the component as a table cell for all screen sizes.static DisplayTypeTABLE_CELL(ScreenSize screenSize) Displays the component as a table cell for the specified and bigger screen sizes.static DisplayTypeDisplays the component as a table row for all screen sizes.static DisplayTypeTABLE_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:
applyin interfaceStyleElement- Parameters:
component- The component
-
remove
- Specified by:
removein interfaceStyleElement- Parameters:
component- The component
-
getStyleClassName
- Specified by:
getStyleClassNamein interfaceStyleElement- Returns:
- The style class name or
nullif is not style class for the style settings
-