public interface StyleTagDeclaration extends HasIdBindingAndRendered
Add a style tag with the given file name to the header (using file attribute) or add some CSS styles to the parent component.
Modifier and Type | Method and Description |
---|---|
void |
setBackgroundImage(String backgroundImage)
The background image of the element.
|
void |
setBottom(String bottom) |
void |
setCustomClass(String customClass) |
void |
setDisplay(String display) |
void |
setFile(String file)
Name of the stylesheet file to add to page.
|
void |
setFlexBasis(String flexBasis)
Flex basis value of the element.
|
void |
setFlexGrow(String flexGrow)
Flex grow value of the element.
|
void |
setFlexShrink(String flexShrink)
Flex shrink value of the element.
|
void |
setGridColumn(String gridColumn)
Grid column value of the element.
|
void |
setGridRow(String gridRow)
Grid row value of the element.
|
void |
setGridTemplateColumns(String gridTemplateColumns)
Grid template columns value of the element.
|
void |
setGridTemplateRows(String gridTemplateRows)
Grid template rows value of the element.
|
void |
setHeight(String height) |
void |
setLeft(String left) |
void |
setMarginBottom(String marginBottom) |
void |
setMarginLeft(String marginLeft) |
void |
setMarginRight(String marginRight) |
void |
setMarginTop(String marginTop) |
void |
setMaxHeight(String maxHeight) |
void |
setMaxWidth(String maxWidth) |
void |
setMinHeight(String minHeight) |
void |
setMinWidth(String minWidth) |
void |
setOverflowX(String overflowX) |
void |
setOverflowY(String overflowY) |
void |
setPaddingBottom(String paddingBottom) |
void |
setPaddingLeft(String paddingLeft) |
void |
setPaddingRight(String paddingRight) |
void |
setPaddingTop(String paddingTop) |
void |
setPosition(String position) |
void |
setRendered(String rendered)
Note: The rendered attribute has no effect to the use of the customClass attribute.
|
void |
setRight(String right) |
void |
setSelector(String selector) |
void |
setTextAlign(String textAlign)
The alignment of the elements inside of the container, possible values are:
TextAlign.left ,
TextAlign.right ,
TextAlign.center and
TextAlign.justify . |
void |
setTop(String top) |
void |
setWidth(String width) |
setBinding
void setFile(String file)
void setCustomClass(String customClass)
customClass
- A custom CSS class for the parent component.
Note: The rendered attribute has no effect to the use of this customClass.
To switch the customClass, you may use an EL expression
like e.g. customClass="#{isError ? 'red' : null}".void setSelector(String selector)
selector
- A selector to define the element for this style rules. Defaults to the ID of the parent component.void setWidth(String width)
width
- The width for the parent component.void setHeight(String height)
height
- The height for the parent component.void setMinWidth(String minWidth)
minWidth
- The minimum width for the parent component.void setMinHeight(String minHeight)
minHeight
- The minimum height for the parent component.void setMaxWidth(String maxWidth)
maxWidth
- The maximum width for the parent component.void setMaxHeight(String maxHeight)
maxHeight
- The maximum height for the parent component.void setLeft(String left)
left
- The left position value for the parent component.void setRight(String right)
right
- The left position value for the parent component.void setTop(String top)
top
- The top position value for the parent component.void setBottom(String bottom)
bottom
- The top position value for the parent component.void setPaddingLeft(String paddingLeft)
paddingLeft
- The left padding.void setPaddingRight(String paddingRight)
paddingRight
- The right padding.void setPaddingTop(String paddingTop)
paddingTop
- The top padding.void setPaddingBottom(String paddingBottom)
paddingBottom
- The bottom padding.void setMarginLeft(String marginLeft)
marginLeft
- The margin at the left of the parent component.void setMarginRight(String marginRight)
marginRight
- The margin at the right of the parent component.void setMarginTop(String marginTop)
marginTop
- The margin at the top of the parent component.void setMarginBottom(String marginBottom)
marginBottom
- The margin at the bottom of the parent component.void setOverflowX(String overflowX)
overflowX
- Does the component need a horizontal scrollbar.void setOverflowY(String overflowY)
overflowY
- Does the component need a vertical scrollbar.void setDisplay(String display)
display
- Indicates the renderer to render the element as
Display.block
, Display.inline
or Display.none
.void setPosition(String position)
position
- Values for the position used with CSS.void setTextAlign(String textAlign)
TextAlign.left
,
TextAlign.right
,
TextAlign.center
and
TextAlign.justify
.void setBackgroundImage(String backgroundImage)
void setFlexGrow(String flexGrow)
void setFlexShrink(String flexShrink)
void setFlexBasis(String flexBasis)
void setGridTemplateColumns(String gridTemplateColumns)
void setGridTemplateRows(String gridTemplateRows)
void setGridColumn(String gridColumn)
void setGridRow(String gridRow)
void setRendered(String rendered)
setRendered
in interface IsRendered
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.