Interface StyleTagDeclaration
-
- All Superinterfaces:
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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
andTextAlign.justify
.void
setTop(String top)
void
setWidth(String width)
-
Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasBinding
setBinding
-
-
-
-
Method Detail
-
setFile
void setFile(String file)
Name of the stylesheet file to add to page. The name must be full qualified, or relative. If using a complete path from root, you'll need to add the contextPath from the web application. This can be done with the EL #{request.contextPath}.
-
setCustomClass
void setCustomClass(String customClass)
- Parameters:
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}".- Since:
- 3.0.0
-
setSelector
void setSelector(String selector)
- Parameters:
selector
- A selector to define the element for this style rules. Defaults to the ID of the parent component.- Since:
- 4.0.0
-
setWidth
void setWidth(String width)
- Parameters:
width
- The width for the parent component.- Since:
- 3.0.0
-
setHeight
void setHeight(String height)
- Parameters:
height
- The height for the parent component.- Since:
- 3.0.0
-
setMinWidth
void setMinWidth(String minWidth)
- Parameters:
minWidth
- The minimum width for the parent component.- Since:
- 3.0.0
-
setMinHeight
void setMinHeight(String minHeight)
- Parameters:
minHeight
- The minimum height for the parent component.- Since:
- 3.0.0
-
setMaxWidth
void setMaxWidth(String maxWidth)
- Parameters:
maxWidth
- The maximum width for the parent component.- Since:
- 3.0.0
-
setMaxHeight
void setMaxHeight(String maxHeight)
- Parameters:
maxHeight
- The maximum height for the parent component.- Since:
- 3.0.0
-
setLeft
void setLeft(String left)
- Parameters:
left
- The left position value for the parent component.- Since:
- 3.0.0
-
setRight
void setRight(String right)
- Parameters:
right
- The left position value for the parent component.- Since:
- 3.0.0
-
setTop
void setTop(String top)
- Parameters:
top
- The top position value for the parent component.- Since:
- 3.0.0
-
setBottom
void setBottom(String bottom)
- Parameters:
bottom
- The top position value for the parent component.- Since:
- 3.0.0
-
setPaddingLeft
void setPaddingLeft(String paddingLeft)
- Parameters:
paddingLeft
- The left padding.- Since:
- 3.0.0
-
setPaddingRight
void setPaddingRight(String paddingRight)
- Parameters:
paddingRight
- The right padding.- Since:
- 3.0.0
-
setPaddingTop
void setPaddingTop(String paddingTop)
- Parameters:
paddingTop
- The top padding.- Since:
- 3.0.0
-
setPaddingBottom
void setPaddingBottom(String paddingBottom)
- Parameters:
paddingBottom
- The bottom padding.- Since:
- 3.0.0
-
setMarginLeft
void setMarginLeft(String marginLeft)
- Parameters:
marginLeft
- The margin at the left of the parent component.- Since:
- 3.0.0
-
setMarginRight
void setMarginRight(String marginRight)
- Parameters:
marginRight
- The margin at the right of the parent component.- Since:
- 3.0.0
-
setMarginTop
void setMarginTop(String marginTop)
- Parameters:
marginTop
- The margin at the top of the parent component.- Since:
- 3.0.0
-
setMarginBottom
void setMarginBottom(String marginBottom)
- Parameters:
marginBottom
- The margin at the bottom of the parent component.- Since:
- 3.0.0
-
setOverflowX
void setOverflowX(String overflowX)
- Parameters:
overflowX
- Does the component need a horizontal scrollbar.- Since:
- 3.0.0
-
setOverflowY
void setOverflowY(String overflowY)
- Parameters:
overflowY
- Does the component need a vertical scrollbar.- Since:
- 3.0.0
-
setDisplay
void setDisplay(String display)
- Parameters:
display
- Indicates the renderer to render the element asDisplay.block
,Display.inline
orDisplay.none
.- Since:
- 3.0.0
-
setPosition
void setPosition(String position)
- Parameters:
position
- Values for the position used with CSS.- Since:
- 3.0.0
-
setTextAlign
void setTextAlign(String textAlign)
The alignment of the elements inside of the container, possible values are:TextAlign.left
,TextAlign.right
,TextAlign.center
andTextAlign.justify
.- Since:
- 3.0.0
-
setBackgroundImage
void setBackgroundImage(String backgroundImage)
The background image of the element.- Since:
- 4.0.0
-
setFlexGrow
void setFlexGrow(String flexGrow)
Flex grow value of the element.- Since:
- 4.0.0
-
setFlexShrink
void setFlexShrink(String flexShrink)
Flex shrink value of the element.- Since:
- 4.0.0
-
setFlexBasis
void setFlexBasis(String flexBasis)
Flex basis value of the element.- Since:
- 4.0.0
-
setGridTemplateColumns
void setGridTemplateColumns(String gridTemplateColumns)
Grid template columns value of the element.- Since:
- 4.0.0
-
setGridTemplateRows
void setGridTemplateRows(String gridTemplateRows)
Grid template rows value of the element.- Since:
- 4.0.0
-
setGridColumn
void setGridColumn(String gridColumn)
Grid column value of the element.- Since:
- 4.0.0
-
setGridRow
void setGridRow(String gridRow)
Grid row value of the element.- Since:
- 4.0.0
-
setRendered
void setRendered(String rendered)
Note: The rendered attribute has no effect to the use of the customClass attribute.- Specified by:
setRendered
in interfaceIsRendered
-
-