Module org.apache.myfaces.tobago
Interface StyleTagDeclaration
- All Superinterfaces:
HasBinding,HasId,HasIdBindingAndRendered,IsRendered
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
Modifier and TypeMethodDescriptionvoidsetBackgroundImage(String backgroundImage) The background image of the element.voidvoidsetCustomClass(String customClass) voidsetDisplay(String display) voidName 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.voidvoidvoidsetMarginBottom(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.voidvoidsetSelector(String selector) voidsetTextAlign(String textAlign) The alignment of the elements inside of the container, possible values are:TextAlign.left,TextAlign.right,TextAlign.centerandTextAlign.justify.voidvoidMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasBinding
setBinding
-
Method Details
-
setFile
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
- 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
- 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
- Parameters:
width- The width for the parent component.- Since:
- 3.0.0
-
setHeight
- Parameters:
height- The height for the parent component.- Since:
- 3.0.0
-
setMinWidth
- Parameters:
minWidth- The minimum width for the parent component.- Since:
- 3.0.0
-
setMinHeight
- Parameters:
minHeight- The minimum height for the parent component.- Since:
- 3.0.0
-
setMaxWidth
- Parameters:
maxWidth- The maximum width for the parent component.- Since:
- 3.0.0
-
setMaxHeight
- Parameters:
maxHeight- The maximum height for the parent component.- Since:
- 3.0.0
-
setLeft
- Parameters:
left- The left position value for the parent component.- Since:
- 3.0.0
-
setRight
- Parameters:
right- The left position value for the parent component.- Since:
- 3.0.0
-
setTop
- Parameters:
top- The top position value for the parent component.- Since:
- 3.0.0
-
setBottom
- Parameters:
bottom- The top position value for the parent component.- Since:
- 3.0.0
-
setPaddingLeft
- Parameters:
paddingLeft- The left padding.- Since:
- 3.0.0
-
setPaddingRight
- Parameters:
paddingRight- The right padding.- Since:
- 3.0.0
-
setPaddingTop
- Parameters:
paddingTop- The top padding.- Since:
- 3.0.0
-
setPaddingBottom
- Parameters:
paddingBottom- The bottom padding.- Since:
- 3.0.0
-
setMarginLeft
- Parameters:
marginLeft- The margin at the left of the parent component.- Since:
- 3.0.0
-
setMarginRight
- Parameters:
marginRight- The margin at the right of the parent component.- Since:
- 3.0.0
-
setMarginTop
- Parameters:
marginTop- The margin at the top of the parent component.- Since:
- 3.0.0
-
setMarginBottom
- Parameters:
marginBottom- The margin at the bottom of the parent component.- Since:
- 3.0.0
-
setOverflowX
- Parameters:
overflowX- Does the component need a horizontal scrollbar.- Since:
- 3.0.0
-
setOverflowY
- Parameters:
overflowY- Does the component need a vertical scrollbar.- Since:
- 3.0.0
-
setDisplay
- Parameters:
display- Indicates the renderer to render the element asDisplay.block,Display.inlineorDisplay.none.- Since:
- 3.0.0
-
setPosition
- Parameters:
position- Values for the position used with CSS.- Since:
- 3.0.0
-
setTextAlign
The alignment of the elements inside of the container, possible values are:TextAlign.left,TextAlign.right,TextAlign.centerandTextAlign.justify.- Since:
- 3.0.0
-
setBackgroundImage
The background image of the element.- Since:
- 4.0.0
-
setFlexGrow
Flex grow value of the element.- Since:
- 4.0.0
-
setFlexShrink
Flex shrink value of the element.- Since:
- 4.0.0
-
setFlexBasis
Flex basis value of the element.- Since:
- 4.0.0
-
setGridTemplateColumns
Grid template columns value of the element.- Since:
- 4.0.0
-
setGridTemplateRows
Grid template rows value of the element.- Since:
- 4.0.0
-
setGridColumn
Grid column value of the element.- Since:
- 4.0.0
-
setGridRow
Grid row value of the element.- Since:
- 4.0.0
-
setRendered
Note: The rendered attribute has no effect to the use of the customClass attribute.- Specified by:
setRenderedin interfaceIsRendered
-