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 voidsetBackgroundImage(String backgroundImage)The background image of the element.voidsetBottom(String bottom)voidsetCustomClass(String customClass)voidsetDisplay(String display)voidsetFile(String file)Name of the stylesheet file to add to page.voidsetFlexBasis(String flexBasis)Flex basis value of the element.voidsetFlexGrow(String flexGrow)Flex grow value of the element.voidsetFlexShrink(String flexShrink)Flex shrink value of the element.voidsetGridColumn(String gridColumn)Grid column value of the element.voidsetGridRow(String gridRow)Grid row value of the element.voidsetGridTemplateColumns(String gridTemplateColumns)Grid template columns value of the element.voidsetGridTemplateRows(String gridTemplateRows)Grid template rows value of the element.voidsetHeight(String height)voidsetLeft(String left)voidsetMarginBottom(String marginBottom)voidsetMarginLeft(String marginLeft)voidsetMarginRight(String marginRight)voidsetMarginTop(String marginTop)voidsetMaxHeight(String maxHeight)voidsetMaxWidth(String maxWidth)voidsetMinHeight(String minHeight)voidsetMinWidth(String minWidth)voidsetOverflowX(String overflowX)voidsetOverflowY(String overflowY)voidsetPaddingBottom(String paddingBottom)voidsetPaddingLeft(String paddingLeft)voidsetPaddingRight(String paddingRight)voidsetPaddingTop(String paddingTop)voidsetPosition(String position)voidsetRendered(String rendered)Note: The rendered attribute has no effect to the use of the customClass attribute.voidsetRight(String right)voidsetSelector(String selector)voidsetTextAlign(String textAlign)The alignment of the elements inside of the container, possible values are:TextAlign.left,TextAlign.right,TextAlign.centerandTextAlign.justify.voidsetTop(String top)voidsetWidth(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.inlineorDisplay.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.centerandTextAlign.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:
setRenderedin interfaceIsRendered
-
-