HasBinding
, HasId
, HasIdBindingAndRendered
, IsRendered
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 | Description |
---|---|---|
void |
setBackgroundImage(java.lang.String backgroundImage) |
The background image of the element.
|
void |
setBottom(java.lang.String bottom) |
|
void |
setCustomClass(java.lang.String customClass) |
|
void |
setDisplay(java.lang.String display) |
|
void |
setFile(java.lang.String file) |
Name of the stylesheet file to add to page.
|
void |
setFlexBasis(java.lang.String flexBasis) |
Flex basis value of the element.
|
void |
setFlexGrow(java.lang.String flexGrow) |
Flex grow value of the element.
|
void |
setFlexShrink(java.lang.String flexShrink) |
Flex shrink value of the element.
|
void |
setGridColumn(java.lang.String gridColumn) |
Grid column value of the element.
|
void |
setGridRow(java.lang.String gridRow) |
Grid row value of the element.
|
void |
setGridTemplateColumns(java.lang.String gridTemplateColumns) |
Grid template columns value of the element.
|
void |
setGridTemplateRows(java.lang.String gridTemplateRows) |
Grid template rows value of the element.
|
void |
setHeight(java.lang.String height) |
|
void |
setLeft(java.lang.String left) |
|
void |
setMarginBottom(java.lang.String marginBottom) |
|
void |
setMarginLeft(java.lang.String marginLeft) |
|
void |
setMarginRight(java.lang.String marginRight) |
|
void |
setMarginTop(java.lang.String marginTop) |
|
void |
setMaxHeight(java.lang.String maxHeight) |
|
void |
setMaxWidth(java.lang.String maxWidth) |
|
void |
setMinHeight(java.lang.String minHeight) |
|
void |
setMinWidth(java.lang.String minWidth) |
|
void |
setOverflowX(java.lang.String overflowX) |
|
void |
setOverflowY(java.lang.String overflowY) |
|
void |
setPaddingBottom(java.lang.String paddingBottom) |
|
void |
setPaddingLeft(java.lang.String paddingLeft) |
|
void |
setPaddingRight(java.lang.String paddingRight) |
|
void |
setPaddingTop(java.lang.String paddingTop) |
|
void |
setPosition(java.lang.String position) |
|
void |
setRight(java.lang.String right) |
|
void |
setSelector(java.lang.String selector) |
|
void |
setTextAlign(java.lang.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(java.lang.String top) |
|
void |
setWidth(java.lang.String width) |
setBinding
setRendered
void setFile(java.lang.String file)
void setCustomClass(java.lang.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(java.lang.String selector)
selector
- A selector to define the element for this style rules. Defaults to the ID of the parent component.void setWidth(java.lang.String width)
width
- The width for the parent component.void setHeight(java.lang.String height)
height
- The height for the parent component.void setMinWidth(java.lang.String minWidth)
minWidth
- The minimum width for the parent component.void setMinHeight(java.lang.String minHeight)
minHeight
- The minimum height for the parent component.void setMaxWidth(java.lang.String maxWidth)
maxWidth
- The maximum width for the parent component.void setMaxHeight(java.lang.String maxHeight)
maxHeight
- The maximum height for the parent component.void setLeft(java.lang.String left)
left
- The left position value for the parent component.void setRight(java.lang.String right)
right
- The left position value for the parent component.void setTop(java.lang.String top)
top
- The top position value for the parent component.void setBottom(java.lang.String bottom)
bottom
- The top position value for the parent component.void setPaddingLeft(java.lang.String paddingLeft)
paddingLeft
- The left padding.void setPaddingRight(java.lang.String paddingRight)
paddingRight
- The right padding.void setPaddingTop(java.lang.String paddingTop)
paddingTop
- The top padding.void setPaddingBottom(java.lang.String paddingBottom)
paddingBottom
- The bottom padding.void setMarginLeft(java.lang.String marginLeft)
marginLeft
- The margin at the left of the parent component.void setMarginRight(java.lang.String marginRight)
marginRight
- The margin at the right of the parent component.void setMarginTop(java.lang.String marginTop)
marginTop
- The margin at the top of the parent component.void setMarginBottom(java.lang.String marginBottom)
marginBottom
- The margin at the bottom of the parent component.void setOverflowX(java.lang.String overflowX)
overflowX
- Does the component need a horizontal scrollbar.void setOverflowY(java.lang.String overflowY)
overflowY
- Does the component need a vertical scrollbar.void setDisplay(java.lang.String display)
display
- Indicates the renderer to render the element as
Display.block
, Display.inline
or Display.none
.void setPosition(java.lang.String position)
position
- Values for the position used with CSS.void setTextAlign(java.lang.String textAlign)
TextAlign.left
,
TextAlign.right
,
TextAlign.center
and
TextAlign.justify
.void setBackgroundImage(java.lang.String backgroundImage)
void setFlexGrow(java.lang.String flexGrow)
void setFlexShrink(java.lang.String flexShrink)
void setFlexBasis(java.lang.String flexBasis)
void setGridTemplateColumns(java.lang.String gridTemplateColumns)
void setGridTemplateRows(java.lang.String gridTemplateRows)
void setGridColumn(java.lang.String gridColumn)
void setGridRow(java.lang.String gridRow)
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.