Schnittstelle StyleTagDeclaration

Alle Superschnittstellen:
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.

  • Methodendetails

    • 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)
      Parameter:
      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}".
      Seit:
      3.0.0
    • setSelector

      void setSelector(String selector)
      Parameter:
      selector - A selector to define the element for this style rules. Defaults to the ID of the parent component.
      Seit:
      4.0.0
    • setWidth

      void setWidth(String width)
      Parameter:
      width - The width for the parent component.
      Seit:
      3.0.0
    • setHeight

      void setHeight(String height)
      Parameter:
      height - The height for the parent component.
      Seit:
      3.0.0
    • setMinWidth

      void setMinWidth(String minWidth)
      Parameter:
      minWidth - The minimum width for the parent component.
      Seit:
      3.0.0
    • setMinHeight

      void setMinHeight(String minHeight)
      Parameter:
      minHeight - The minimum height for the parent component.
      Seit:
      3.0.0
    • setMaxWidth

      void setMaxWidth(String maxWidth)
      Parameter:
      maxWidth - The maximum width for the parent component.
      Seit:
      3.0.0
    • setMaxHeight

      void setMaxHeight(String maxHeight)
      Parameter:
      maxHeight - The maximum height for the parent component.
      Seit:
      3.0.0
    • setLeft

      void setLeft(String left)
      Parameter:
      left - The left position value for the parent component.
      Seit:
      3.0.0
    • setRight

      void setRight(String right)
      Parameter:
      right - The left position value for the parent component.
      Seit:
      3.0.0
    • setTop

      void setTop(String top)
      Parameter:
      top - The top position value for the parent component.
      Seit:
      3.0.0
    • setBottom

      void setBottom(String bottom)
      Parameter:
      bottom - The top position value for the parent component.
      Seit:
      3.0.0
    • setPaddingLeft

      void setPaddingLeft(String paddingLeft)
      Parameter:
      paddingLeft - The left padding.
      Seit:
      3.0.0
    • setPaddingRight

      void setPaddingRight(String paddingRight)
      Parameter:
      paddingRight - The right padding.
      Seit:
      3.0.0
    • setPaddingTop

      void setPaddingTop(String paddingTop)
      Parameter:
      paddingTop - The top padding.
      Seit:
      3.0.0
    • setPaddingBottom

      void setPaddingBottom(String paddingBottom)
      Parameter:
      paddingBottom - The bottom padding.
      Seit:
      3.0.0
    • setMarginLeft

      void setMarginLeft(String marginLeft)
      Parameter:
      marginLeft - The margin at the left of the parent component.
      Seit:
      3.0.0
    • setMarginRight

      void setMarginRight(String marginRight)
      Parameter:
      marginRight - The margin at the right of the parent component.
      Seit:
      3.0.0
    • setMarginTop

      void setMarginTop(String marginTop)
      Parameter:
      marginTop - The margin at the top of the parent component.
      Seit:
      3.0.0
    • setMarginBottom

      void setMarginBottom(String marginBottom)
      Parameter:
      marginBottom - The margin at the bottom of the parent component.
      Seit:
      3.0.0
    • setOverflowX

      void setOverflowX(String overflowX)
      Parameter:
      overflowX - Does the component need a horizontal scrollbar.
      Seit:
      3.0.0
    • setOverflowY

      void setOverflowY(String overflowY)
      Parameter:
      overflowY - Does the component need a vertical scrollbar.
      Seit:
      3.0.0
    • setDisplay

      void setDisplay(String display)
      Parameter:
      display - Indicates the renderer to render the element as Display.block, Display.inline or Display.none.
      Seit:
      3.0.0
    • setPosition

      void setPosition(String position)
      Parameter:
      position - Values for the position used with CSS.
      Seit:
      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 and TextAlign.justify.
      Seit:
      3.0.0
    • setBackgroundImage

      void setBackgroundImage(String backgroundImage)
      The background image of the element.
      Seit:
      4.0.0
    • setFlexGrow

      void setFlexGrow(String flexGrow)
      Flex grow value of the element.
      Seit:
      4.0.0
    • setFlexShrink

      void setFlexShrink(String flexShrink)
      Flex shrink value of the element.
      Seit:
      4.0.0
    • setFlexBasis

      void setFlexBasis(String flexBasis)
      Flex basis value of the element.
      Seit:
      4.0.0
    • setGridTemplateColumns

      void setGridTemplateColumns(String gridTemplateColumns)
      Grid template columns value of the element.
      Seit:
      4.0.0
    • setGridTemplateRows

      void setGridTemplateRows(String gridTemplateRows)
      Grid template rows value of the element.
      Seit:
      4.0.0
    • setGridColumn

      void setGridColumn(String gridColumn)
      Grid column value of the element.
      Seit:
      4.0.0
    • setGridRow

      void setGridRow(String gridRow)
      Grid row value of the element.
      Seit:
      4.0.0
    • setRendered

      void setRendered(String rendered)
      Note: The rendered attribute has no effect to the use of the customClass attribute.
      Angegeben von:
      setRendered in Schnittstelle IsRendered