Class StyledElement<T extends StyledElement<T>>

Type Parameters:
T -
Direct Known Subclasses:
Accordion, AccordionItem, Area, AspectRatio, Audio, AutoLayout, Br, Canvas, Center, CenteredContentLayout, Col, Colgroup, ComposableLayout, Container, DataList, Divider, Dl, Drawer, Embed, FlowLayout, GlassPane, Grid, GridItem, Hgroup, Hide, HPanel, Hr, Html, IFrame, Img, InputElement, MathMlElement, MediaLayout, Menu, NavbarLayout, Object, Ol, OptGroup, Option, Overlay, PageLayout, PageSection, Picture, ReferenceLayout, Ruby, ScrollBox, Show, Spacer, Spacer, SplitLayout, SplitNavLayout, Sticky, StyledContainerElement, SvgElement, TabbedLayout, Table, Tbody, TextElement, Tfoot, Thead, Tr, Ul, Video, VPanel, Wbr

public abstract class StyledElement<T extends StyledElement<T>> extends VisualElement<T>
Abstract base class providing comprehensive CSS styling capabilities for HTML elements.

StyledElement extends VisualElement to add full CSS styling support through a fluent API. This class implements numerous CSS interfaces to provide type-safe access to all CSS properties including animations, backgrounds, borders, fonts, flexbox layout, transforms, transitions, and more.

Key Features:

  • Complete CSS property support through type-safe methods
  • Fluent API for method chaining
  • State-based styling via scoped CSS pseudo-class rules (hover, active, focus, focus-visible, disabled)
  • CSS class management (add, remove, set classes)
  • Inline style management with CssStyle objects
  • Interactive state handling with automatic cursor changes

Implemented CSS Interfaces:

  • AnimationIntf - CSS animations and keyframes
  • BackgroundIntf - Background colors, images, and positioning
  • BorderIntf - Border styles, widths, and colors
  • FlexibleBoxLayoutIntf - Flexbox container and item properties
  • FontIntf - Font families, sizes, and styles
  • TransformIntf - 2D and 3D transformations
  • TransitionIntf - CSS transitions and timing

Usage:


 Div container = new Div();
 container.setDisplay(Display.FLEX)
          .setFlexDirection(FlexDirection.COLUMN)
          .setBackgroundColor(Color.WHITE)
          .setPadding("20px")
          .setBorderRadius("8px");

 // State-based styling (injected as scoped CSS into page head)
 container.setHoverStyle(new CssStyle("background-color: #1a73e8; cursor: pointer;"));
 container.setActiveStyle(new CssStyle("background-color: #0d47a1;"));
 container.setFocusVisibleStyle(new CssStyle("outline: 2px solid #4285f4;"));
 
Since:
2016
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • StyledElement

      public StyledElement(String tagName)
      Constructs a StyledElement with the specified tag name.
      Parameters:
      tagName - The HTML tag name for this element.
    • StyledElement

      public StyledElement(String tagName, boolean closed)
      Constructs a StyledElement with the specified tag name and closed state.
      Parameters:
      tagName - The HTML tag name for this element.
      closed - true for self-closing elements, false otherwise.
  • Method Details

    • setClass

      public final void setClass(String className)
      Sets the CSS class attribute for this element.

      This replaces any existing class attribute value.

      Parameters:
      className - The CSS class name to set.
    • addClass

      public final void addClass(String className)
      Adds a CSS class to the existing class attribute.

      If the element already has classes, the new class is appended with a space separator. If no classes exist, sets the class attribute.

      Parameters:
      className - The CSS class name to add.
    • removeClass

      public final void removeClass(String className)
      Removes a CSS class from the class attribute.
      Parameters:
      className - The CSS class name to remove.
    • setStyle

      public final CssStyle setStyle(CssStyle style)
      Sets the inline CSS style from a CssStyle object.

      Creates a copy of the provided style and updates the element's style attribute.

      Parameters:
      style - the CssStyle object to apply
      Returns:
      the element's current style object
    • setStyle

      public CssStyle setStyle(String style)
      Sets the inline CSS style from a CSS string.

      Parses the string into a CssStyle object and applies it to the element.

      Parameters:
      style - the CSS style string (e.g., "color: red; font-size: 14px")
      Returns:
      the element's current style object
    • addStyle

      public final CssStyle addStyle(String style)
    • addStyle

      public final CssStyle addStyle(CssStyle style)
      Merges additional CSS styles into the current style.

      Properties from the provided style are added to or override existing properties.

      Parameters:
      style - the CssStyle object to merge
      Returns:
      the element's current style object
    • addStyleAttribute

      public final void addStyleAttribute(String name, String value)
      Adds a single CSS property to the current style.
      Parameters:
      name - the CSS property name
      value - the CSS property value
    • getStyleAttribute

      public final String getStyleAttribute(String name)
      Returns the value of a single CSS property from the current inline style.
      Parameters:
      name - the CSS property name
      Returns:
      the property value, or null if not set
    • setHoverStyle

      public T setHoverStyle(CssStyle hoverStyle)
      Sets the CSS style applied when the mouse hovers over the element (:hover).

      The hover style is injected as an ID-scoped CSS rule into the page <head>. If the element is already initialized, the rule is injected immediately; otherwise it is deferred until initialize().

      Parameters:
      hoverStyle - the CssStyle for hover state, or null to remove
      Returns:
      this element for method chaining
    • setActiveStyle

      public T setActiveStyle(CssStyle activeStyle)
      Sets the CSS style applied when the element is pressed or active (:active).

      The active style is injected as an ID-scoped CSS rule into the page <head>. If the element is already initialized, the rule is injected immediately; otherwise it is deferred until initialize().

      Parameters:
      activeStyle - the CssStyle for active state, or null to remove
      Returns:
      this element for method chaining
    • setFocusStyle

      public T setFocusStyle(CssStyle focusStyle)
      Sets the CSS style applied when the element has focus (:focus).

      The focus style is injected as an ID-scoped CSS rule into the page <head>. If the element is already initialized, the rule is injected immediately; otherwise it is deferred until initialize().

      Parameters:
      focusStyle - the CssStyle for focus state, or null to remove
      Returns:
      this element for method chaining
    • setFocusVisibleStyle

      public T setFocusVisibleStyle(CssStyle focusVisibleStyle)
      Sets the CSS style applied when focus should be visibly indicated (:focus-visible).

      The :focus-visible pseudo-class applies when the element has focus and the browser determines that focus should be visibly indicated (e.g., via keyboard navigation). The style is injected as an ID-scoped CSS rule into the page <head>.

      Parameters:
      focusVisibleStyle - the CssStyle for focus-visible state, or null to remove
      Returns:
      this element for method chaining
    • setDisabledStyle

      public T setDisabledStyle(CssStyle disabledStyle)
      Sets the CSS style applied when the element is disabled (:disabled).

      The disabled style is injected as an ID-scoped CSS rule into the page <head>. If the element is already initialized, the rule is injected immediately; otherwise it is deferred until initialize().

      Parameters:
      disabledStyle - the CssStyle for disabled state, or null to remove
      Returns:
      this element for method chaining
    • getHoverStyle

      public CssStyle getHoverStyle()
      Returns the CSS style applied when the mouse hovers over the element.
      Returns:
      the hover CssStyle, or null if not set
    • getActiveStyle

      public CssStyle getActiveStyle()
      Returns the CSS style applied when the element is pressed or active.
      Returns:
      the active CssStyle, or null if not set
    • getFocusStyle

      public CssStyle getFocusStyle()
      Returns the CSS style applied when the element has focus.
      Returns:
      the focus CssStyle, or null if not set
    • getFocusVisibleStyle

      public CssStyle getFocusVisibleStyle()
      Returns the CSS style applied when focus should be visibly indicated.
      Returns:
      the focus-visible CssStyle, or null if not set
    • getDisabledStyle

      public CssStyle getDisabledStyle()
      Returns the CSS style applied when the element is disabled.
      Returns:
      the disabled CssStyle, or null if not set
    • setOnDblClickChange

      public void setOnDblClickChange(String id)
      Sets the CSS on-dbl-click-change property.
      Overrides:
      setOnDblClickChange in class VisualElement<T extends StyledElement<T>>
      Parameters:
      id - The id value.
    • setOnDblClick

      public void setOnDblClick(String value)
      Sets the CSS on-dbl-click property.
      Overrides:
      setOnDblClick in class VisualElement<T extends StyledElement<T>>
      Parameters:
      value - The property value.
    • setOnClickNavigateForward

      public void setOnClickNavigateForward(String url)
      Sets the CSS on-click-navigate-forward property.
      Overrides:
      setOnClickNavigateForward in class VisualElement<T extends StyledElement<T>>
      Parameters:
      url - The URL value.
    • setOnClickNavigateForward

      public void setOnClickNavigateForward(int pages)
      Sets the CSS on-click-navigate-forward property.
      Overrides:
      setOnClickNavigateForward in class VisualElement<T extends StyledElement<T>>
      Parameters:
      pages - The pages value.
    • setOnClickNavigateForward

      public void setOnClickNavigateForward()
      Sets the CSS on-click-navigate-forward property.
      Overrides:
      setOnClickNavigateForward in class VisualElement<T extends StyledElement<T>>
    • setOnClickNavigateBack

      public void setOnClickNavigateBack(String url)
      Sets the CSS on-click-navigate-back property.
      Overrides:
      setOnClickNavigateBack in class VisualElement<T extends StyledElement<T>>
      Parameters:
      url - The URL value.
    • setOnClickNavigateBack

      public void setOnClickNavigateBack(int pages)
      Sets the CSS on-click-navigate-back property.
      Overrides:
      setOnClickNavigateBack in class VisualElement<T extends StyledElement<T>>
      Parameters:
      pages - The pages value.
    • setOnClickNavigateTo

      public void setOnClickNavigateTo(String url)
      Sets the CSS on-click-navigate-to property.
      Overrides:
      setOnClickNavigateTo in class VisualElement<T extends StyledElement<T>>
      Parameters:
      url - The URL value.
    • setOnClickNavigateBack

      public void setOnClickNavigateBack()
      Sets the CSS on-click-navigate-back property.
      Overrides:
      setOnClickNavigateBack in class VisualElement<T extends StyledElement<T>>
    • setShow

      public void setShow(boolean flag)
      Sets the CSS show property.
      Parameters:
      flag - true to enable, false to disable.
    • show

      public void show()
      Makes this element visible by restoring its display value and setting visibility to visible.

      Calls onShow() after updating styles, then cascades shown() to notify this element and all descendants.

    • hide

      public void hide()
      Hides this element by setting its CSS display to none.

      Preserves the current display value so it can be restored by show(). Calls onHide() after updating the style, then cascades hidden() to notify this element and all descendants.

    • isDisplayed

      public final boolean isDisplayed()
      Returns whether the displayed property is set.
      Returns:
      The current displayed value.
    • setKeyFrames

      public StyledElement setKeyFrames(String attrValue)
      Sets the CSS @keyframes animation name.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAnimation

      public StyledElement setAnimation(String attrValue)
      Sets the CSS animation property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAnimationDelay

      public StyledElement setAnimationDelay(String attrValue)
      Sets the CSS animation-delay property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAnimationDelay

      public StyledElement setAnimationDelay(int delayInSecs)
      Sets the CSS animation-delay property.
      Parameters:
      delayInSecs - The delay in secs value.
      Returns:
      This instance for method chaining.
    • setAnimationDelay

      public StyledElement setAnimationDelay(long delayInMsecs)
      Sets the CSS animation-delay property.
      Parameters:
      delayInMsecs - The long value.
      Returns:
      This instance for method chaining.
    • setAnimationDirection

      public StyledElement setAnimationDirection(String attrValue)
      Sets the CSS animation-direction property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAnimationDirection

      public StyledElement setAnimationDirection(AnimationDirection attrValue)
      Sets the CSS animation-direction property.
      Parameters:
      attrValue - The animation direction value.
      Returns:
      This instance for method chaining.
    • setAnimationDuration

      public StyledElement setAnimationDuration(String attrValue)
      Sets the CSS animation-duration property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAnimationDuration

      public StyledElement setAnimationDuration(int secs)
      Sets the CSS animation-duration property.
      Parameters:
      secs - The secs value.
      Returns:
      This instance for method chaining.
    • setAnimationDuration

      public StyledElement setAnimationDuration(long msecs)
      Sets the CSS animation-duration property.
      Parameters:
      msecs - The long value.
      Returns:
      This instance for method chaining.
    • setAnimationFillMode

      public StyledElement setAnimationFillMode(String attrValue)
      Sets the CSS animation-fill-mode property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAnimationFillMode

      public StyledElement setAnimationFillMode(AnimationFillMode attrValue)
      Sets the CSS animation-fill-mode property.
      Parameters:
      attrValue - The animation fill mode value.
      Returns:
      This instance for method chaining.
    • setAnimationIterationCount

      public StyledElement setAnimationIterationCount(String attrValue)
      Sets the CSS animation-iteration-count property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAnimationIterationCount

      public StyledElement setAnimationIterationCount(int count)
      Sets the CSS animation-iteration-count property.
      Parameters:
      count - The iteration count.
      Returns:
      This instance for method chaining.
    • setAnimationIterationCount

      public StyledElement setAnimationIterationCount(AnimationIterationCount attrValue)
      Sets the CSS animation-iteration-count property.
      Parameters:
      attrValue - The animation iteration count value.
      Returns:
      This instance for method chaining.
    • setAnimationName

      public StyledElement setAnimationName(String attrValue)
      Sets the CSS animation-name property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAnimationPlayState

      public StyledElement setAnimationPlayState(String attrValue)
      Sets the CSS animation-play-state property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAnimationPlayState

      public StyledElement setAnimationPlayState(AnimationPlayState attrValue)
      Sets the CSS animation-play-state property.
      Parameters:
      attrValue - The animation play state value.
      Returns:
      This instance for method chaining.
    • setAnimationTimingFunction

      public StyledElement setAnimationTimingFunction(String attrValue)
      Sets the CSS animation-timing-function property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAnimationTimingFunction

      public StyledElement setAnimationTimingFunction(AnimationTimingFunction attrValue)
      Sets the CSS animation-timing-function property.
      Parameters:
      attrValue - The animation timing function value.
      Returns:
      This instance for method chaining.
    • setAnimationTimingFunction

      public StyledElement setAnimationTimingFunction(int intervals, boolean start)
      Sets the CSS animation-timing-function property.
      Parameters:
      intervals - The number of intervals.
      start - true to start the steps from the beginning.
      Returns:
      This instance for method chaining.
    • setAnimationTimingFunction

      public StyledElement setAnimationTimingFunction(float n1, float n2, float n3, float n4)
      Sets the CSS animation-timing-function property.
      Parameters:
      n1 - The first cubic-bezier control point value.
      n2 - The second cubic-bezier control point value.
      n3 - The third cubic-bezier control point value.
      n4 - The fourth cubic-bezier control point value.
      Returns:
      This instance for method chaining.
    • setBackground

      public StyledElement setBackground(String attrValue)
      Sets the CSS background property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBackground

      public StyledElement setBackground(Color color)
      Sets the CSS background property using a Color object.
      Parameters:
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBackgroundAttachment

      public StyledElement setBackgroundAttachment(String attrValue)
      Sets the CSS background-attachment property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBackgroundAttachment

      public StyledElement setBackgroundAttachment(BackgroundAttachment attrValue)
      Sets the CSS background-attachment property.
      Parameters:
      attrValue - The background attachment value.
      Returns:
      This instance for method chaining.
    • setBackgroundBlendMode

      public StyledElement setBackgroundBlendMode(String attrValue)
      Sets the CSS background-blend-mode property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBackgroundBlendMode

      public StyledElement setBackgroundBlendMode(BackgroundBlendMode attrValue)
      Sets the CSS background-blend-mode property.
      Parameters:
      attrValue - The background blend mode value.
      Returns:
      This instance for method chaining.
    • setBackgroundColor

      public StyledElement setBackgroundColor(String attrValue)
      Sets the CSS background-color property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBackgroundColor

      public StyledElement setBackgroundColor(Color attrValue)
      Sets the CSS background-color property using a Color object.
      Parameters:
      attrValue - The attrValue color.
      Returns:
      This instance for method chaining.
    • setBackgroundColor

      public StyledElement setBackgroundColor(BackgroundColor attrValue)
      Sets the CSS background-color property.
      Parameters:
      attrValue - The background color value.
      Returns:
      This instance for method chaining.
    • setBackgroundImage

      public StyledElement setBackgroundImage(String attrValue)
      Sets the CSS background-image property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBackgroundImage

      public StyledElement setBackgroundImage(Gradient gradient)
      Sets the CSS background-image property from a Gradient builder.
      Parameters:
      gradient - the Gradient builder containing the gradient definition.
      Returns:
      This instance for method chaining.
      See Also:
    • setBackgroundPosition

      public StyledElement setBackgroundPosition(String attrValue)
      Sets the CSS background-position property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBackgroundPosition

      public StyledElement setBackgroundPosition(BackgroundPosition attrValue)
      Sets the CSS background-position property.
      Parameters:
      attrValue - The background position value.
      Returns:
      This instance for method chaining.
    • setBackgroundPosition

      public StyledElement setBackgroundPosition(String xpos, String ypos)
      Sets the CSS background-position property.
      Parameters:
      xpos - The xpos value.
      ypos - The ypos value.
      Returns:
      This instance for method chaining.
    • setBackgroundPosition

      public StyledElement setBackgroundPosition(int xpos, int ypos)
      Sets the CSS background-position property.
      Parameters:
      xpos - The xpos value.
      ypos - The ypos value.
      Returns:
      This instance for method chaining.
    • setBackgroundPosition

      public StyledElement setBackgroundPosition(Units xpos, Units ypos)
      Sets the CSS background-position property.
      Parameters:
      xpos - The value as a CSS unit.
      ypos - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBackgroundRepeat

      public StyledElement setBackgroundRepeat(String attrValue)
      Sets the CSS background-repeat property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBackgroundRepeat

      public StyledElement setBackgroundRepeat(BackgroundRepeat attrValue)
      Sets the CSS background-repeat property.
      Parameters:
      attrValue - The background repeat value.
      Returns:
      This instance for method chaining.
    • setBackgroundClip

      public StyledElement setBackgroundClip(String attrValue)
      Sets the CSS background-clip property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBackgroundClip

      public StyledElement setBackgroundClip(BackgroundClip attrValue)
      Sets the CSS background-clip property.
      Parameters:
      attrValue - The background clip value.
      Returns:
      This instance for method chaining.
    • setBackgroundOrigin

      public StyledElement setBackgroundOrigin(String attrValue)
      Sets the CSS background-origin property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBackgroundOrigin

      public StyledElement setBackgroundOrigin(BackgroundOrigin attrValue)
      Sets the CSS background-origin property.
      Parameters:
      attrValue - The background origin value.
      Returns:
      This instance for method chaining.
    • setBackgroundSize

      public StyledElement setBackgroundSize(String attrValue)
      Sets the CSS background-size property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBackgroundSize

      public StyledElement setBackgroundSize(BackgroundSize attrValue)
      Sets the CSS background-size property.
      Parameters:
      attrValue - The background size value.
      Returns:
      This instance for method chaining.
    • setBackgroundSize

      public StyledElement setBackgroundSize(String width, String height)
      Sets the CSS background-size property.
      Parameters:
      width - The width value.
      height - The height value.
      Returns:
      This instance for method chaining.
    • setBackgroundSize

      public StyledElement setBackgroundSize(int width, int height)
      Sets the CSS background-size property.
      Parameters:
      width - The width value.
      height - The height value.
      Returns:
      This instance for method chaining.
    • setBackgroundSize

      public StyledElement setBackgroundSize(Units width, Units height)
      Sets the CSS background-size property.
      Parameters:
      width - The value as a CSS unit.
      height - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setClear

      public StyledElement setClear(String attrValue)
      Sets the CSS clear property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setClear

      public StyledElement setClear(Clear attrValue)
      Sets the CSS clear property.
      Parameters:
      attrValue - The clear value.
      Returns:
      This instance for method chaining.
    • setClip

      public StyledElement setClip(String attrValue)
      Sets the CSS clip property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setClipPath

      public StyledElement setClipPath(String attrValue)
      Sets the CSS clip-path property.
      Parameters:
      attrValue - The CSS clip-path value (e.g., "circle(50%)", "polygon(50% 0%, 100% 100%, 0% 100%)").
      Returns:
      This instance for method chaining.
    • setClipPath

      public StyledElement setClipPath(ClipPath clipPath)
      Sets the CSS clip-path property from a ClipPath builder.
      Parameters:
      clipPath - the ClipPath builder containing the shape definition.
      Returns:
      This instance for method chaining.
      See Also:
    • setDisplay

      public StyledElement setDisplay(String attrValue)
      Sets the CSS display property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setDisplay

      public StyledElement setDisplay(Display attrValue)
      Sets the CSS display property.
      Parameters:
      attrValue - The display value.
      Returns:
      This instance for method chaining.
    • setFloat

      public StyledElement setFloat(String attrValue)
      Sets the CSS float property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFloat

      public StyledElement setFloat(Float attrValue)
      Sets the CSS float property.
      Parameters:
      attrValue - The float value.
      Returns:
      This instance for method chaining.
    • setMargin

      public StyledElement setMargin(String attrValue)
      Sets the CSS margin property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMargin

      public StyledElement setMargin(int pixels)
      Sets the CSS margin property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setMargin

      public StyledElement setMargin(Units units)
      Sets the CSS margin property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setMargin

      public StyledElement setMargin(int top, int right, int bottom, int left)
      Sets the CSS margin property using individual values for each side.
      Parameters:
      top - The top value in pixels.
      right - The right value in pixels.
      bottom - The bottom value in pixels.
      left - The left value in pixels.
      Returns:
      This instance for method chaining.
    • setMargin

      public StyledElement setMargin(Units top, Units right, Units bottom, Units left)
      Sets the CSS margin property using individual values for each side.
      Parameters:
      top - The top value as a CSS unit.
      right - The right value as a CSS unit.
      bottom - The bottom value as a CSS unit.
      left - The left value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setMarginBottom

      public StyledElement setMarginBottom(String attrValue)
      Sets the CSS margin-bottom property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMarginBottom

      public StyledElement setMarginBottom(int pixels)
      Sets the CSS margin-bottom property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setMarginBottom

      public StyledElement setMarginBottom(Units units)
      Sets the CSS margin-bottom property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setMarginLeft

      public StyledElement setMarginLeft(String attrValue)
      Sets the CSS margin-left property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMarginLeft

      public StyledElement setMarginLeft(int pixels)
      Sets the CSS margin-left property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setMarginLeft

      public StyledElement setMarginLeft(Units units)
      Sets the CSS margin-left property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setMarginRight

      public StyledElement setMarginRight(String attrValue)
      Sets the CSS margin-right property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMarginRight

      public StyledElement setMarginRight(int pixels)
      Sets the CSS margin-right property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setMarginRight

      public StyledElement setMarginRight(Units units)
      Sets the CSS margin-right property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setMarginTop

      public StyledElement setMarginTop(String attrValue)
      Sets the CSS margin-top property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMarginTop

      public StyledElement setMarginTop(int pixels)
      Sets the CSS margin-top property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setMarginTop

      public StyledElement setMarginTop(Units units)
      Sets the CSS margin-top property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setOverflow

      public StyledElement setOverflow(String attrValue)
      Sets the CSS overflow property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setOverflow

      public StyledElement setOverflow(Overflow attrValue)
      Sets the CSS overflow property.
      Parameters:
      attrValue - The overflow value.
      Returns:
      This instance for method chaining.
    • setOverflow

      public StyledElement setOverflow(Overflow x, Overflow y)
      Sets the CSS overflow property.
      Parameters:
      x - The overflow value.
      y - The overflow value.
      Returns:
      This instance for method chaining.
    • setOverflowX

      public StyledElement setOverflowX(String attrValue)
      Sets the CSS overflow-x property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setOverflowX

      public StyledElement setOverflowX(Overflow attrValue)
      Sets the CSS overflow-x property.
      Parameters:
      attrValue - The overflow value.
      Returns:
      This instance for method chaining.
    • setOverflowY

      public StyledElement setOverflowY(String attrValue)
      Sets the CSS overflow-y property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setOverflowY

      public StyledElement setOverflowY(Overflow attrValue)
      Sets the CSS overflow-y property.
      Parameters:
      attrValue - The overflow value.
      Returns:
      This instance for method chaining.
    • setPadding

      public StyledElement setPadding(String attrValue)
      Sets the CSS padding property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPadding

      public StyledElement setPadding(int pixels)
      Sets the CSS padding property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setPadding

      public StyledElement setPadding(Units units)
      Sets the CSS padding property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setPadding

      public StyledElement setPadding(int topBottom, int leftRight)
    • setPadding

      public StyledElement setPadding(Units topBottom, Units leftRight)
    • setPadding

      public StyledElement setPadding(String top, String right, String bottom, String left)
      Sets the CSS padding property using individual values for each side.
      Parameters:
      top - The top value as a CSS string.
      right - The right value as a CSS string.
      bottom - The bottom value as a CSS string.
      left - The left value as a CSS string.
      Returns:
      This instance for method chaining.
    • setPadding

      public StyledElement setPadding(int top, int right, int bottom, int left)
      Sets the CSS padding property using individual values for each side.
      Parameters:
      top - The top value in pixels.
      right - The right value in pixels.
      bottom - The bottom value in pixels.
      left - The left value in pixels.
      Returns:
      This instance for method chaining.
    • setPadding

      public StyledElement setPadding(Units top, Units right, Units bottom, Units left)
      Sets the CSS padding property using individual values for each side.
      Parameters:
      top - The top value as a CSS unit.
      right - The right value as a CSS unit.
      bottom - The bottom value as a CSS unit.
      left - The left value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setPaddingBottom

      public StyledElement setPaddingBottom(String attrValue)
      Sets the CSS padding-bottom property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPaddingBottom

      public StyledElement setPaddingBottom(int pixels)
      Sets the CSS padding-bottom property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setPaddingBottom

      public StyledElement setPaddingBottom(Units units)
      Sets the CSS padding-bottom property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setPaddingLeft

      public StyledElement setPaddingLeft(String attrValue)
      Sets the CSS padding-left property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPaddingLeft

      public StyledElement setPaddingLeft(int pixels)
      Sets the CSS padding-left property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setPaddingLeft

      public StyledElement setPaddingLeft(Units units)
      Sets the CSS padding-left property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setPaddingRight

      public StyledElement setPaddingRight(String attrValue)
      Sets the CSS padding-right property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPaddingRight

      public StyledElement setPaddingRight(int pixels)
      Sets the CSS padding-right property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setPaddingRight

      public StyledElement setPaddingRight(Units units)
      Sets the CSS padding-right property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setPaddingTop

      public StyledElement setPaddingTop(String attrValue)
      Sets the CSS padding-top property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPaddingTop

      public StyledElement setPaddingTop(int pixels)
      Sets the CSS padding-top property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setPaddingTop

      public StyledElement setPaddingTop(Units units)
      Sets the CSS padding-top property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setPosition

      public StyledElement setPosition(String attrValue)
      Sets the CSS position property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPosition

      public StyledElement setPosition(Position attrValue)
      Sets the CSS position property.
      Parameters:
      attrValue - The position value.
      Returns:
      This instance for method chaining.
    • setPosition

      public StyledElement setPosition(String left, String top)
      Sets the CSS position property using individual values for each side.
      Parameters:
      left - The left value as a CSS string.
      top - The top value as a CSS string.
      Returns:
      This instance for method chaining.
    • setPosition

      public StyledElement setPosition(int left, int top)
      Sets the CSS position property using individual values for each side.
      Parameters:
      left - The left value in pixels.
      top - The top value in pixels.
      Returns:
      This instance for method chaining.
    • setPosition

      public StyledElement setPosition(Units left, Units top)
      Sets the CSS position property using individual values for each side.
      Parameters:
      left - The left value as a CSS unit.
      top - The top value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBottom

      public StyledElement setBottom(String attrValue)
      Sets the CSS bottom property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBottom

      public StyledElement setBottom(int pixels)
      Sets the CSS bottom property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setBottom

      public StyledElement setBottom(Units units)
      Sets the CSS bottom property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setLeft

      public StyledElement setLeft(String attrValue)
      Sets the CSS left property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setLeft

      public StyledElement setLeft(int pixels)
      Sets the CSS left property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setLeft

      public StyledElement setLeft(Units units)
      Sets the CSS left property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setRight

      public StyledElement setRight(String attrValue)
      Sets the CSS right property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setRight

      public StyledElement setRight(int pixels)
      Sets the CSS right property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setRight

      public StyledElement setRight(Units units)
      Sets the CSS right property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setTop

      public StyledElement setTop(String attrValue)
      Sets the CSS top property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTop

      public StyledElement setTop(int pixels)
      Sets the CSS top property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setTop

      public StyledElement setTop(Units units)
      Sets the CSS top property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setVerticalAlign

      public StyledElement setVerticalAlign(String attrValue)
      Sets the CSS vertical-align property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setVerticalAlign

      public StyledElement setVerticalAlign(VerticalAlign attrValue)
      Sets the CSS vertical-align property.
      Parameters:
      attrValue - The vertical align value.
      Returns:
      This instance for method chaining.
    • setVisibility

      public StyledElement setVisibility(String attrValue)
      Sets the CSS visibility property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setVisibility

      public StyledElement setVisibility(Visibility attrValue)
      Sets the CSS visibility property.
      Parameters:
      attrValue - The visibility value.
      Returns:
      This instance for method chaining.
    • setHeight

      public StyledElement setHeight(String attrValue)
      Sets the CSS height property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setHeight

      public StyledElement setHeight(int pixels)
      Sets the CSS height property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setHeight

      public StyledElement setHeight(Units units)
      Sets the CSS height property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setMaxHeight

      public StyledElement setMaxHeight(String attrValue)
      Sets the CSS max-height property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMaxHeight

      public StyledElement setMaxHeight(int pixels)
      Sets the CSS max-height property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setMaxHeight

      public StyledElement setMaxHeight(Units units)
      Sets the CSS max-height property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setMinHeight

      public StyledElement setMinHeight(String attrValue)
      Sets the CSS min-height property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMinHeight

      public StyledElement setMinHeight(int pixels)
      Sets the CSS min-height property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setMinHeight

      public StyledElement setMinHeight(Units units)
      Sets the CSS min-height property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setWidth

      public StyledElement setWidth(String attrValue)
      Sets the CSS width property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setWidth

      public StyledElement setWidth(int pixels)
      Sets the CSS width property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setWidth

      public StyledElement setWidth(Units units)
      Sets the CSS width property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setMaxWidth

      public StyledElement setMaxWidth(String maxWidth)
      Sets the CSS max-width property.
      Parameters:
      maxWidth - The max width value.
      Returns:
      This instance for method chaining.
    • setMaxWidth

      public StyledElement setMaxWidth(int pixels)
      Sets the CSS max-width property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setMaxWidth

      public StyledElement setMaxWidth(Units units)
      Sets the CSS max-width property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setMinWidth

      public StyledElement setMinWidth(String attrValue)
      Sets the CSS min-width property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMinWidth

      public StyledElement setMinWidth(int pixels)
      Sets the CSS min-width property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setMinWidth

      public StyledElement setMinWidth(Units units)
      Sets the CSS min-width property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setSize

      public StyledElement setSize(String width, String height)
      Sets the CSS size property.
      Parameters:
      width - The width value.
      height - The height value.
      Returns:
      This instance for method chaining.
    • setSize

      public StyledElement setSize(int width, int height)
      Sets the CSS size property.
      Parameters:
      width - The width value.
      height - The height value.
      Returns:
      This instance for method chaining.
    • setSize

      public StyledElement setSize(Units width, Units height)
      Sets the CSS size property.
      Parameters:
      width - The value as a CSS unit.
      height - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setZIndex

      public StyledElement setZIndex(String attrValue)
      Sets the CSS z-index property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setZIndex

      public StyledElement setZIndex(int attrValue)
      Sets the CSS z-index property.
      Parameters:
      attrValue - The value.
      Returns:
      This instance for method chaining.
    • setBoxSizing

      public StyledElement setBoxSizing(String attrValue)
    • setBoxSizing

      public StyledElement setBoxSizing(BoxSizing attrValue)
    • setCursor

      public StyledElement setCursor(String attrValue)
    • setCursor

      public StyledElement setCursor(Cursor attrValue)
    • setImeMode

      public StyledElement setImeMode(String attrValue)
    • setNavDown

      public StyledElement setNavDown(String attrValue)
    • setNavIndex

      public StyledElement setNavIndex(String attrValue)
    • setNavIndex

      public StyledElement setNavIndex(int index)
    • setNavLeft

      public StyledElement setNavLeft(String attrValue)
    • setNavRight

      public StyledElement setNavRight(String attrValue)
    • setNavUp

      public StyledElement setNavUp(String attrValue)
    • setOutline

      public StyledElement setOutline(String attrValue)
    • setOutline

      public StyledElement setOutline(String color, String style, String width)
    • setOutline

      public StyledElement setOutline(Color color, OutlineStyle style, int width)
    • setOutline

      public StyledElement setOutline(Color color, OutlineStyle style, Units width)
    • setOutlineColor

      public StyledElement setOutlineColor(String attrValue)
    • setOutlineColor

      public StyledElement setOutlineColor(Color attrValue)
    • setOutlineOffset

      public StyledElement setOutlineOffset(String attrValue)
    • setOutlineOffset

      public StyledElement setOutlineOffset(int pixels)
    • setOutlineOffset

      public StyledElement setOutlineOffset(Units units)
    • setOutlineStyle

      public StyledElement setOutlineStyle(String attrValue)
    • setOutlineStyle

      public StyledElement setOutlineStyle(OutlineStyle attrValue)
    • setOutlineWidth

      public StyledElement setOutlineWidth(String attrValue)
    • setOutlineWidth

      public StyledElement setOutlineWidth(OutlineWidth attrValue)
    • setOutlineWidth

      public StyledElement setOutlineWidth(int pixels)
    • setOutlineWidth

      public StyledElement setOutlineWidth(Units units)
    • setResize

      public StyledElement setResize(String attrValue)
    • setResize

      public StyledElement setResize(Resize attrValue)
    • setTextOverflow

      public StyledElement setTextOverflow(String attrValue)
    • setTextOverflow

      public StyledElement setTextOverflow(TextOverflow attrValue)
    • setBorder

      public StyledElement setBorder(String attrValue)
      Sets the CSS border property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorder

      public StyledElement setBorder(String width, String style, String color)
      Sets the CSS border shorthand property.
      Parameters:
      width - The width value.
      style - The style value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorder

      public StyledElement setBorder(int width, BorderStyle style, Color color)
      Sets the CSS border shorthand property.
      Parameters:
      width - The width value.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorder

      public StyledElement setBorder(int width, Color color)
      Sets the CSS border shorthand property.
      Parameters:
      width - The width value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorder

      public StyledElement setBorder(Color color)
      Sets the CSS border property using a Color object.
      Parameters:
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorder

      public StyledElement setBorder(Units width, BorderStyle style, Color color)
      Sets the CSS border shorthand property.
      Parameters:
      width - The value as a CSS unit.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorder

      public StyledElement setBorder(Units width, Color color)
      Sets the CSS border shorthand property.
      Parameters:
      width - The value as a CSS unit.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorder

      public StyledElement setBorder(BorderWidth width, BorderStyle style, Color color)
      Sets the CSS border shorthand property.
      Parameters:
      width - The border width.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorder

      public StyledElement setBorder(BorderWidth width, Color color)
      Sets the CSS border shorthand property.
      Parameters:
      width - The border width.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderBottom

      public StyledElement setBorderBottom(String attrValue)
      Sets the CSS border-bottom property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderBottom

      public StyledElement setBorderBottom(String width, String style, String color)
      Sets the CSS border-bottom shorthand property.
      Parameters:
      width - The width value.
      style - The style value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderBottom

      public StyledElement setBorderBottom(int width, BorderStyle style, Color color)
      Sets the CSS border-bottom shorthand property.
      Parameters:
      width - The width value.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderBottom

      public StyledElement setBorderBottom(int width, Color color)
      Sets the CSS border-bottom shorthand property.
      Parameters:
      width - The width value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderBottom

      public StyledElement setBorderBottom(Units width, BorderStyle style, Color color)
      Sets the CSS border-bottom shorthand property.
      Parameters:
      width - The value as a CSS unit.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderBottom

      public StyledElement setBorderBottom(Units width, Color color)
      Sets the CSS border-bottom shorthand property.
      Parameters:
      width - The value as a CSS unit.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderBottom

      public StyledElement setBorderBottom(BorderWidth width, BorderStyle style, Color color)
      Sets the CSS border-bottom shorthand property.
      Parameters:
      width - The border width.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderBottom

      public StyledElement setBorderBottom(BorderWidth width, Color color)
      Sets the CSS border-bottom shorthand property.
      Parameters:
      width - The border width.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderBottomColor

      public StyledElement setBorderBottomColor(String attrValue)
      Sets the CSS border-bottom-color property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderBottomColor

      public StyledElement setBorderBottomColor(Color attrValue)
      Sets the CSS border-bottom-color property using a Color object.
      Parameters:
      attrValue - The attrValue color.
      Returns:
      This instance for method chaining.
    • setBorderBottomLeftRadius

      public StyledElement setBorderBottomLeftRadius(String attrValue)
      Sets the CSS border-bottom-left-radius property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderBottomLeftRadius

      public StyledElement setBorderBottomLeftRadius(int pixels)
      Sets the CSS border-bottom-left-radius property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setBorderBottomLeftRadius

      public StyledElement setBorderBottomLeftRadius(Units units)
      Sets the CSS border-bottom-left-radius property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBorderBottomRightRadius

      public StyledElement setBorderBottomRightRadius(String attrValue)
      Sets the CSS border-bottom-right-radius property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderBottomRightRadius

      public StyledElement setBorderBottomRightRadius(int pixels)
      Sets the CSS border-bottom-right-radius property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setBorderBottomRightRadius

      public StyledElement setBorderBottomRightRadius(Units units)
      Sets the CSS border-bottom-right-radius property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBorderBottomStyle

      public StyledElement setBorderBottomStyle(String attrValue)
      Sets the CSS border-bottom-style property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderBottomStyle

      public StyledElement setBorderBottomStyle(BorderStyle attrValue)
      Sets the CSS border-bottom-style property.
      Parameters:
      attrValue - The border style.
      Returns:
      This instance for method chaining.
    • setBorderBottomWidth

      public StyledElement setBorderBottomWidth(String attrValue)
      Sets the CSS border-bottom-width property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderBottomWidth

      public StyledElement setBorderBottomWidth(BorderWidth attrValue)
      Sets the CSS border-bottom-width property.
      Parameters:
      attrValue - The border width.
      Returns:
      This instance for method chaining.
    • setBorderBottomWidth

      public StyledElement setBorderBottomWidth(int pixels)
      Sets the CSS border-bottom-width property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setBorderBottomWidth

      public StyledElement setBorderBottomWidth(Units units)
      Sets the CSS border-bottom-width property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBorderColor

      public StyledElement setBorderColor(String attrValue)
      Sets the CSS border-color property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderColor

      public StyledElement setBorderColor(Color color)
      Sets the CSS border-color property using a Color object.
      Parameters:
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderColor

      public StyledElement setBorderColor(String top, String right, String bottom, String left)
      Sets the CSS border-color property using individual values for each side.
      Parameters:
      top - The top value as a CSS string.
      right - The right value as a CSS string.
      bottom - The bottom value as a CSS string.
      left - The left value as a CSS string.
      Returns:
      This instance for method chaining.
    • setBorderColor

      public StyledElement setBorderColor(Color top, Color right, Color bottom, Color left)
      Sets the CSS border-color property using individual values for each side.
      Parameters:
      top - The top value.
      right - The right value.
      bottom - The bottom value.
      left - The left value.
      Returns:
      This instance for method chaining.
    • setBorderImage

      public StyledElement setBorderImage(String attrValue)
      Sets the CSS border-image property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderImage

      public StyledElement setBorderImage(String srcUrl, String slice, String width, String outset, String repeat)
      Sets the CSS border-image shorthand property.
      Parameters:
      srcUrl - The src url value.
      slice - The slice value.
      width - The width value.
      outset - The outset value.
      repeat - The repeat value.
      Returns:
      This instance for method chaining.
    • setBorderImageOutset

      public StyledElement setBorderImageOutset(String attrValue)
      Sets the CSS border-image-outset property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderImageRepeat

      public StyledElement setBorderImageRepeat(String attrValue)
      Sets the CSS border-image-repeat property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderImageSlice

      public StyledElement setBorderImageSlice(String attrValue)
      Sets the CSS border-image-slice property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderImageSource

      public StyledElement setBorderImageSource(String attrValue)
      Sets the CSS border-image-source property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderImageWidth

      public StyledElement setBorderImageWidth(String attrValue)
      Sets the CSS border-image-width property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderLeft

      public StyledElement setBorderLeft(String attrValue)
      Sets the CSS border-left property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderLeft

      public StyledElement setBorderLeft(String width, String style, String color)
      Sets the CSS border-left shorthand property.
      Parameters:
      width - The width value.
      style - The style value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderLeft

      public StyledElement setBorderLeft(int width, BorderStyle style, Color color)
      Sets the CSS border-left shorthand property.
      Parameters:
      width - The width value.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderLeft

      public StyledElement setBorderLeft(int width, Color color)
      Sets the CSS border-left shorthand property.
      Parameters:
      width - The width value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderLeft

      public StyledElement setBorderLeft(Units width, BorderStyle style, Color color)
      Sets the CSS border-left shorthand property.
      Parameters:
      width - The value as a CSS unit.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderLeft

      public StyledElement setBorderLeft(Units width, Color color)
      Sets the CSS border-left shorthand property.
      Parameters:
      width - The value as a CSS unit.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderLeft

      public StyledElement setBorderLeft(BorderWidth width, BorderStyle style, Color color)
      Sets the CSS border-left shorthand property.
      Parameters:
      width - The border width.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderLeft

      public StyledElement setBorderLeft(BorderWidth width, Color color)
      Sets the CSS border-left shorthand property.
      Parameters:
      width - The border width.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderLeftColor

      public StyledElement setBorderLeftColor(String attrValue)
      Sets the CSS border-left-color property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderLeftColor

      public StyledElement setBorderLeftColor(Color attrValue)
      Sets the CSS border-left-color property using a Color object.
      Parameters:
      attrValue - The attrValue color.
      Returns:
      This instance for method chaining.
    • setBorderLeftStyle

      public StyledElement setBorderLeftStyle(String attrValue)
      Sets the CSS border-left-style property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderLeftStyle

      public StyledElement setBorderLeftStyle(BorderStyle attrValue)
      Sets the CSS border-left-style property.
      Parameters:
      attrValue - The border style.
      Returns:
      This instance for method chaining.
    • setBorderLeftWidth

      public StyledElement setBorderLeftWidth(String attrValue)
      Sets the CSS border-left-width property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderLeftWidth

      public StyledElement setBorderLeftWidth(BorderWidth attrValue)
      Sets the CSS border-left-width property.
      Parameters:
      attrValue - The border width.
      Returns:
      This instance for method chaining.
    • setBorderLeftWidth

      public StyledElement setBorderLeftWidth(int pixels)
      Sets the CSS border-left-width property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setBorderLeftWidth

      public StyledElement setBorderLeftWidth(Units units)
      Sets the CSS border-left-width property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBorderRadius

      public StyledElement setBorderRadius(String attrValue)
      Sets the CSS border-radius property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderRadius

      public StyledElement setBorderRadius(int pixels)
      Sets the CSS border-radius property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setBorderRadius

      public StyledElement setBorderRadius(Units units)
      Sets the CSS border-radius property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBorderRadius

      public StyledElement setBorderRadius(String topLeft, String topRight, String bottomRight, String bottomLeft)
      Sets the CSS border-radius property.
      Parameters:
      topLeft - The top left value.
      topRight - The top right value.
      bottomRight - The bottom right value.
      bottomLeft - The bottom left value.
      Returns:
      This instance for method chaining.
    • setBorderRadius

      public StyledElement setBorderRadius(int topLeft, int topRight, int bottomRight, int bottomLeft)
      Sets the CSS border-radius property.
      Parameters:
      topLeft - The top left value.
      topRight - The top right value.
      bottomRight - The bottom right value.
      bottomLeft - The bottom left value.
      Returns:
      This instance for method chaining.
    • setBorderRadius

      public StyledElement setBorderRadius(Units topLeft, Units topRight, Units bottomRight, Units bottomLeft)
      Sets the CSS border-radius property.
      Parameters:
      topLeft - The value as a CSS unit.
      topRight - The value as a CSS unit.
      bottomRight - The value as a CSS unit.
      bottomLeft - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBorderRight

      public StyledElement setBorderRight(String attrValue)
      Sets the CSS border-right property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderRight

      public StyledElement setBorderRight(String width, String style, String color)
      Sets the CSS border-right shorthand property.
      Parameters:
      width - The width value.
      style - The style value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderRight

      public StyledElement setBorderRight(int width, BorderStyle style, Color color)
      Sets the CSS border-right shorthand property.
      Parameters:
      width - The width value.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderRight

      public StyledElement setBorderRight(int width, Color color)
      Sets the CSS border-right shorthand property.
      Parameters:
      width - The width value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderRight

      public StyledElement setBorderRight(Units width, BorderStyle style, Color color)
      Sets the CSS border-right shorthand property.
      Parameters:
      width - The value as a CSS unit.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderRight

      public StyledElement setBorderRight(Units width, Color color)
      Sets the CSS border-right shorthand property.
      Parameters:
      width - The value as a CSS unit.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderRight

      public StyledElement setBorderRight(BorderWidth width, BorderStyle style, Color color)
      Sets the CSS border-right shorthand property.
      Parameters:
      width - The border width.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderRight

      public StyledElement setBorderRight(BorderWidth width, Color color)
      Sets the CSS border-right shorthand property.
      Parameters:
      width - The border width.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderRightColor

      public StyledElement setBorderRightColor(String attrValue)
      Sets the CSS border-right-color property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderRightColor

      public StyledElement setBorderRightColor(Color attrValue)
      Sets the CSS border-right-color property using a Color object.
      Parameters:
      attrValue - The attrValue color.
      Returns:
      This instance for method chaining.
    • setBorderRightStyle

      public StyledElement setBorderRightStyle(String attrValue)
      Sets the CSS border-right-style property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderRightStyle

      public StyledElement setBorderRightStyle(BorderStyle attrValue)
      Sets the CSS border-right-style property.
      Parameters:
      attrValue - The border style.
      Returns:
      This instance for method chaining.
    • setBorderRightWidth

      public StyledElement setBorderRightWidth(String attrValue)
      Sets the CSS border-right-width property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderRightWidth

      public StyledElement setBorderRightWidth(BorderWidth attrValue)
      Sets the CSS border-right-width property.
      Parameters:
      attrValue - The border width.
      Returns:
      This instance for method chaining.
    • setBorderRightWidth

      public StyledElement setBorderRightWidth(int pixels)
      Sets the CSS border-right-width property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setBorderRightWidth

      public StyledElement setBorderRightWidth(Units units)
      Sets the CSS border-right-width property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBorderStyle

      public StyledElement setBorderStyle(String attrValue)
      Sets the CSS border-style property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderStyle

      public StyledElement setBorderStyle(BorderStyle attrValue)
      Sets the CSS border-style property.
      Parameters:
      attrValue - The border style.
      Returns:
      This instance for method chaining.
    • setBorderTop

      public StyledElement setBorderTop(String attrValue)
      Sets the CSS border-top property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderTop

      public StyledElement setBorderTop(String width, String style, String color)
      Sets the CSS border-top shorthand property.
      Parameters:
      width - The width value.
      style - The style value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderTop

      public StyledElement setBorderTop(int width, BorderStyle style, Color color)
      Sets the CSS border-top shorthand property.
      Parameters:
      width - The width value.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderTop

      public StyledElement setBorderTop(int width, Color color)
      Sets the CSS border-top shorthand property.
      Parameters:
      width - The width value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderTop

      public StyledElement setBorderTop(Units width, BorderStyle style, Color color)
      Sets the CSS border-top shorthand property.
      Parameters:
      width - The value as a CSS unit.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderTop

      public StyledElement setBorderTop(Units width, Color color)
      Sets the CSS border-top shorthand property.
      Parameters:
      width - The value as a CSS unit.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderTop

      public StyledElement setBorderTop(BorderWidth width, BorderStyle style, Color color)
      Sets the CSS border-top shorthand property.
      Parameters:
      width - The border width.
      style - The border style.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderTop

      public StyledElement setBorderTop(BorderWidth width, Color color)
      Sets the CSS border-top shorthand property.
      Parameters:
      width - The border width.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBorderTopColor

      public StyledElement setBorderTopColor(String attrValue)
      Sets the CSS border-top-color property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderTopColor

      public StyledElement setBorderTopColor(Color attrValue)
      Sets the CSS border-top-color property using a Color object.
      Parameters:
      attrValue - The attrValue color.
      Returns:
      This instance for method chaining.
    • setBorderTopLeftRadius

      public StyledElement setBorderTopLeftRadius(String attrValue)
      Sets the CSS border-top-left-radius property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderTopLeftRadius

      public StyledElement setBorderTopLeftRadius(int pixels)
      Sets the CSS border-top-left-radius property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setBorderTopLeftRadius

      public StyledElement setBorderTopLeftRadius(Units units)
      Sets the CSS border-top-left-radius property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBorderTopRightRadius

      public StyledElement setBorderTopRightRadius(String attrValue)
      Sets the CSS border-top-right-radius property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderTopRightRadius

      public StyledElement setBorderTopRightRadius(int pixels)
      Sets the CSS border-top-right-radius property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setBorderTopRightRadius

      public StyledElement setBorderTopRightRadius(Units units)
      Sets the CSS border-top-right-radius property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBorderTopStyle

      public StyledElement setBorderTopStyle(String attrValue)
      Sets the CSS border-top-style property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderTopStyle

      public StyledElement setBorderTopStyle(BorderStyle attrValue)
      Sets the CSS border-top-style property.
      Parameters:
      attrValue - The border style.
      Returns:
      This instance for method chaining.
    • setBorderTopWidth

      public StyledElement setBorderTopWidth(String attrValue)
      Sets the CSS border-top-width property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderTopWidth

      public StyledElement setBorderTopWidth(BorderWidth attrValue)
      Sets the CSS border-top-width property.
      Parameters:
      attrValue - The border width.
      Returns:
      This instance for method chaining.
    • setBorderTopWidth

      public StyledElement setBorderTopWidth(int pixels)
      Sets the CSS border-top-width property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setBorderTopWidth

      public StyledElement setBorderTopWidth(Units units)
      Sets the CSS border-top-width property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBorderWidth

      public StyledElement setBorderWidth(String attrValue)
      Sets the CSS border-width property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBorderWidth

      public StyledElement setBorderWidth(BorderWidth attrValue)
      Sets the CSS border-width property.
      Parameters:
      attrValue - The border width.
      Returns:
      This instance for method chaining.
    • setBorderWidth

      public StyledElement setBorderWidth(int pixels)
      Sets the CSS border-width property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setBorderWidth

      public StyledElement setBorderWidth(Units units)
      Sets the CSS border-width property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBorderWidth

      public StyledElement setBorderWidth(String top, String right, String bottom, String left)
      Sets the CSS border-width property using individual values for each side.
      Parameters:
      top - The top value as a CSS string.
      right - The right value as a CSS string.
      bottom - The bottom value as a CSS string.
      left - The left value as a CSS string.
      Returns:
      This instance for method chaining.
    • setBorderWidth

      public StyledElement setBorderWidth(int top, int right, int bottom, int left)
      Sets the CSS border-width property using individual values for each side.
      Parameters:
      top - The top value in pixels.
      right - The right value in pixels.
      bottom - The bottom value in pixels.
      left - The left value in pixels.
      Returns:
      This instance for method chaining.
    • setBorderWidth

      public StyledElement setBorderWidth(Units top, Units right, Units bottom, Units left)
      Sets the CSS border-width property using individual values for each side.
      Parameters:
      top - The top value as a CSS unit.
      right - The right value as a CSS unit.
      bottom - The bottom value as a CSS unit.
      left - The left value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setBoxShadow

      public StyledElement setBoxShadow(String attrValue)
      Sets the CSS box-shadow property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBoxShadow

      public StyledElement setBoxShadow(String hShadow, String vShadow, String blur, String spread, String color)
      Sets the CSS box-shadow property.
      Parameters:
      hShadow - The h shadow value.
      vShadow - The v shadow value.
      blur - The blur value.
      spread - The spread value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBoxShadow

      public StyledElement setBoxShadow(int hShadow, int vShadow, int blur, int spread, Color color)
      Sets the CSS box-shadow property.
      Parameters:
      hShadow - The h shadow value.
      vShadow - The v shadow value.
      blur - The blur value.
      spread - The spread value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBoxShadow

      public StyledElement setBoxShadow(Units hShadow, Units vShadow, Units blur, Units spread, Color color)
      Sets the CSS box-shadow property.
      Parameters:
      hShadow - The value as a CSS unit.
      vShadow - The value as a CSS unit.
      blur - The value as a CSS unit.
      spread - The value as a CSS unit.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setBoxShadow

      public StyledElement setBoxShadow(BoxShadow boxShadow)
      Sets the CSS box-shadow property from a BoxShadow builder.
      Parameters:
      boxShadow - the BoxShadow builder containing the shadow definitions.
      Returns:
      This instance for method chaining.
      See Also:
    • setColor

      public StyledElement setColor(String attrValue)
      Sets the CSS color property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColor

      public StyledElement setColor(Color color)
      Sets the CSS color property using a Color object.
      Parameters:
      color - The color value.
      Returns:
      This instance for method chaining.
    • setOpacity

      public StyledElement setOpacity(String attrValue)
      Sets the CSS opacity property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setOpacity

      public StyledElement setOpacity(int opacity)
      Sets the CSS opacity property.
      Parameters:
      opacity - The opacity value.
      Returns:
      This instance for method chaining.
    • setCounterIncrement

      public StyledElement setCounterIncrement(String attrValue)
      Sets the CSS counter-increment property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setCounterReset

      public StyledElement setCounterReset(String keyFrameName)
      Sets the CSS counter-reset property.
      Parameters:
      keyFrameName - The key frame name value.
      Returns:
      This instance for method chaining.
    • setFilter

      public StyledElement setFilter(String attrValue)
      Sets the CSS filter property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFilter

      public StyledElement setFilter(Filter filter)
      Sets the CSS filter property from a Filter builder.
      Parameters:
      filter - the Filter builder containing the functions to apply.
      Returns:
      This instance for method chaining.
      See Also:
    • setBackdropFilter

      public StyledElement setBackdropFilter(String attrValue)
      Sets the CSS backdrop-filter property.
      Parameters:
      attrValue - The CSS backdrop-filter value (e.g., "blur(10px)", "brightness(0.5)").
      Returns:
      This instance for method chaining.
    • setBackdropFilter

      public StyledElement setBackdropFilter(Filter filter)
      Sets the CSS backdrop-filter property from a Filter builder.
      Parameters:
      filter - the Filter builder containing the functions to apply.
      Returns:
      This instance for method chaining.
      See Also:
    • setBlur

      public StyledElement setBlur(String value)
      Sets the blur() function within the CSS filter property.
      Parameters:
      value - the CSS length value (e.g., "5px", "0.5rem").
      Returns:
      This instance for method chaining.
    • setBrightness

      public StyledElement setBrightness(float value)
      Sets the brightness() function within the CSS filter property.
      Parameters:
      value - the brightness factor (e.g., 1.5f for 150%).
      Returns:
      This instance for method chaining.
    • setContrast

      public StyledElement setContrast(float value)
      Sets the contrast() function within the CSS filter property.
      Parameters:
      value - the contrast factor (e.g., 1.5f for 150%).
      Returns:
      This instance for method chaining.
    • setGrayscale

      public StyledElement setGrayscale(float value)
      Sets the grayscale() function within the CSS filter property.
      Parameters:
      value - the grayscale amount from 0.0f to 1.0f.
      Returns:
      This instance for method chaining.
    • setHueRotate

      public StyledElement setHueRotate(float degrees)
      Sets the hue-rotate() function within the CSS filter property.
      Parameters:
      degrees - the rotation angle in degrees.
      Returns:
      This instance for method chaining.
    • setInvert

      public StyledElement setInvert(float value)
      Sets the invert() function within the CSS filter property.
      Parameters:
      value - the inversion amount from 0.0f to 1.0f.
      Returns:
      This instance for method chaining.
    • setFilterOpacity

      public StyledElement setFilterOpacity(float value)
      Sets the opacity() function within the CSS filter property.

      This controls the filter opacity, distinct from the CSS opacity property.

      Parameters:
      value - the opacity amount from 0.0f to 1.0f.
      Returns:
      This instance for method chaining.
    • setSaturate

      public StyledElement setSaturate(float value)
      Sets the saturate() function within the CSS filter property.
      Parameters:
      value - the saturation factor (e.g., 1.5f for 150%).
      Returns:
      This instance for method chaining.
    • setSepia

      public StyledElement setSepia(float value)
      Sets the sepia() function within the CSS filter property.
      Parameters:
      value - the sepia amount from 0.0f to 1.0f.
      Returns:
      This instance for method chaining.
    • setAlignContent

      public StyledElement setAlignContent(String attrValue)
      Sets the CSS align-content property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAlignContent

      public StyledElement setAlignContent(AlignContent attrValue)
      Sets the CSS align-content property.
      Parameters:
      attrValue - The align content value.
      Returns:
      This instance for method chaining.
    • setAlignItems

      public StyledElement setAlignItems(String attrValue)
      Sets the CSS align-items property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAlignItems

      public StyledElement setAlignItems(AlignItems attrValue)
      Sets the CSS align-items property.
      Parameters:
      attrValue - The align items value.
      Returns:
      This instance for method chaining.
    • setAlignSelf

      public StyledElement setAlignSelf(String attrValue)
      Sets the CSS align-self property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setAlignSelf

      public StyledElement setAlignSelf(AlignSelf attrValue)
      Sets the CSS align-self property.
      Parameters:
      attrValue - The align self value.
      Returns:
      This instance for method chaining.
    • setFlex

      public StyledElement setFlex(String attrValue)
      Sets the CSS flex property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFlexBasis

      public StyledElement setFlexBasis(String attrValue)
      Sets the CSS flex-basis property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFlexDirection

      public StyledElement setFlexDirection(String attrValue)
      Sets the CSS flex-direction property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFlexDirection

      public StyledElement setFlexDirection(FlexDirection attrValue)
      Sets the CSS flex-direction property.
      Parameters:
      attrValue - The flex direction value.
      Returns:
      This instance for method chaining.
    • setFlexFlow

      public StyledElement setFlexFlow(String attrValue)
      Sets the CSS flex-flow property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFlexGrow

      public StyledElement setFlexGrow(String attrValue)
      Sets the CSS flex-grow property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFlexGrow

      public StyledElement setFlexGrow(int attrValue)
      Sets the CSS flex-grow property.
      Parameters:
      attrValue - The value.
      Returns:
      This instance for method chaining.
    • setFlexShrink

      public StyledElement setFlexShrink(String attrValue)
      Sets the CSS flex-shrink property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFlexShrink

      public StyledElement setFlexShrink(int attrValue)
      Sets the CSS flex-shrink property.
      Parameters:
      attrValue - The value.
      Returns:
      This instance for method chaining.
    • setFlexWrap

      public StyledElement setFlexWrap(String attrValue)
      Sets the CSS flex-wrap property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFlexWrap

      public StyledElement setFlexWrap(FlexWrap attrValue)
      Sets the CSS flex-wrap property.
      Parameters:
      attrValue - The flex wrap value.
      Returns:
      This instance for method chaining.
    • setJustifyContent

      public StyledElement setJustifyContent(String attrValue)
      Sets the CSS justify-content property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setJustifyContent

      public StyledElement setJustifyContent(JustifyContent attrValue)
      Sets the CSS justify-content property.
      Parameters:
      attrValue - The justify content value.
      Returns:
      This instance for method chaining.
    • setOrder

      public StyledElement setOrder(String attrValue)
      Sets the CSS order property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setOrder

      public StyledElement setOrder(int order)
      Sets the CSS order property.
      Parameters:
      order - The order value.
      Returns:
      This instance for method chaining.
    • setColGap

      public StyledElement setColGap(String colgap)
    • setColGap

      public StyledElement setColGap(int colgap)
    • setGap

      public StyledElement setGap(String gap)
    • setGap

      public StyledElement setGap(int gap)
    • setGap

      public StyledElement setGap(String rowgap, String colgap)
    • setGap

      public StyledElement setGap(int rowgap, int colgap)
    • setRowGap

      public StyledElement setRowGap(String rowgap)
    • setRowGap

      public StyledElement setRowGap(int rowgap)
    • setFont

      public StyledElement setFont(String attrValue)
      Sets the CSS font property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFont

      public StyledElement setFont(Font font)
      Sets the CSS font property.
      Parameters:
      font - The font value.
      Returns:
      This instance for method chaining.
    • setFont

      public StyledElement setFont(String family, String size)
      Sets the CSS font property.
      Parameters:
      family - The family value.
      size - The size value.
      Returns:
      This instance for method chaining.
    • setFont

      public StyledElement setFont(FontFamily family, float size)
      Sets the CSS font property.
      Parameters:
      family - The font family value.
      size - The float value.
      Returns:
      This instance for method chaining.
    • setFont

      public StyledElement setFont(String family, float size)
      Sets the CSS font property.
      Parameters:
      family - The family value.
      size - The float value.
      Returns:
      This instance for method chaining.
    • setFont

      public StyledElement setFont(FontFamily family, Units size)
      Sets the CSS font property.
      Parameters:
      family - The font family value.
      size - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setFont

      public StyledElement setFont(String family, Units size)
      Sets the CSS font property.
      Parameters:
      family - The family value.
      size - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setFont

      public StyledElement setFont(String family, String size, String weight)
      Sets the CSS font property.
      Parameters:
      family - The family value.
      size - The size value.
      weight - The weight value.
      Returns:
      This instance for method chaining.
    • setFont

      public StyledElement setFont(FontFamily family, float size, FontWeight weight)
      Sets the CSS font property.
      Parameters:
      family - The font family value.
      size - The float value.
      weight - The font weight value.
      Returns:
      This instance for method chaining.
    • setFont

      public StyledElement setFont(String family, float size, FontWeight weight)
      Sets the CSS font property.
      Parameters:
      family - The family value.
      size - The float value.
      weight - The font weight value.
      Returns:
      This instance for method chaining.
    • setFont

      public StyledElement setFont(FontFamily family, Units size, FontWeight weight)
      Sets the CSS font property.
      Parameters:
      family - The font family value.
      size - The value as a CSS unit.
      weight - The font weight value.
      Returns:
      This instance for method chaining.
    • setFont

      public StyledElement setFont(String family, Units size, FontWeight weight)
      Sets the CSS font property.
      Parameters:
      family - The family value.
      size - The value as a CSS unit.
      weight - The font weight value.
      Returns:
      This instance for method chaining.
    • setFontFamily

      public StyledElement setFontFamily(String attrValue)
      Sets the CSS font-family property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontFamily

      public StyledElement setFontFamily(FontFamily attrValue)
      Sets the CSS font-family property.
      Parameters:
      attrValue - The font family value.
      Returns:
      This instance for method chaining.
    • setFontSize

      public StyledElement setFontSize(String attrValue)
      Sets the CSS font-size property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontSize

      public StyledElement setFontSize(float pts)
      Sets the CSS font-size property.
      Parameters:
      pts - The float value.
      Returns:
      This instance for method chaining.
    • setFontSize

      public StyledElement setFontSize(Units units)
      Sets the CSS font-size property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setFontStretch

      public StyledElement setFontStretch(String attrValue)
      Sets the CSS font-stretch property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontStretch

      public StyledElement setFontStretch(FontStretch attrValue)
      Sets the CSS font-stretch property.
      Parameters:
      attrValue - The font stretch value.
      Returns:
      This instance for method chaining.
    • setFontStyle

      public StyledElement setFontStyle(String attrValue)
      Sets the CSS font-style property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontStyle

      public StyledElement setFontStyle(FontStyle attrValue)
      Sets the CSS font-style property.
      Parameters:
      attrValue - The font style value.
      Returns:
      This instance for method chaining.
    • setFontVariant

      public StyledElement setFontVariant(String attrValue)
      Sets the CSS font-variant property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontVariant

      public StyledElement setFontVariant(FontVariant attrValue)
      Sets the CSS font-variant property.
      Parameters:
      attrValue - The font variant value.
      Returns:
      This instance for method chaining.
    • setFontWeight

      public StyledElement setFontWeight(String attrValue)
      Sets the CSS font-weight property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontWeight

      public StyledElement setFontWeight(FontWeight attrValue)
      Sets the CSS font-weight property.
      Parameters:
      attrValue - The font weight value.
      Returns:
      This instance for method chaining.
    • setFontFace

      public StyledElement setFontFace(String attrValue)
      Sets the CSS font-face property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontFeatureSettings

      public StyledElement setFontFeatureSettings(String attrValue)
      Sets the CSS font-feature-settings property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontKerning

      public StyledElement setFontKerning(String attrValue)
      Sets the CSS font-kerning property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontLanguageOverride

      public StyledElement setFontLanguageOverride(String attrValue)
      Sets the CSS font-language-override property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontSizeAdjust

      public StyledElement setFontSizeAdjust(String attrValue)
      Sets the CSS font-size-adjust property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontSynthesis

      public StyledElement setFontSynthesis(String attrValue)
      Sets the CSS font-synthesis property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontVariantAlternates

      public StyledElement setFontVariantAlternates(String attrValue)
      Sets the CSS font-variant-alternates property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontVariantCaps

      public StyledElement setFontVariantCaps(String attrValue)
      Sets the CSS font-variant-caps property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontVariantEastAsian

      public StyledElement setFontVariantEastAsian(String attrValue)
      Sets the CSS font-variant-east-asian property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontVariantLigatures

      public StyledElement setFontVariantLigatures(String attrValue)
      Sets the CSS font-variant-ligatures property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontVariantNumeric

      public StyledElement setFontVariantNumeric(String attrValue)
      Sets the CSS font-variant-numeric property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setFontVariantPosition

      public StyledElement setFontVariantPosition(String attrValue)
      Sets the CSS font-variant-position property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMarks

      public StyledElement setMarks(String attrValue)
      Sets the CSS marks property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setQuotes

      public StyledElement setQuotes(String attrValue)
      Sets the CSS quotes property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setImageOrientation

      public StyledElement setImageOrientation(String attrValue)
      Sets the CSS image-orientation property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setImageRendering

      public StyledElement setImageRendering(String attrValue)
      Sets the CSS image-rendering property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setImageResolution

      public StyledElement setImageResolution(String attrValue)
      Sets the CSS image-resolution property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setObjectFit

      public StyledElement setObjectFit(String attrValue)
      Sets the CSS object-fit property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setObjectPosition

      public StyledElement setObjectPosition(String attrValue)
      Sets the CSS object-position property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMarqueeDirection

      public StyledElement setMarqueeDirection(String attrValue)
    • setMarqueePlayCount

      public StyledElement setMarqueePlayCount(String attrValue)
    • setMarqueeSpeed

      public StyledElement setMarqueeSpeed(String attrValue)
    • setMarqueeStyle

      public StyledElement setMarqueeStyle(String attrValue)
    • setMask

      public StyledElement setMask(String attrValue)
    • setMaskType

      public StyledElement setMaskType(String attrValue)
    • setBreakAfter

      public StyledElement setBreakAfter(String attrValue)
      Sets the CSS break-after property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBreakBefore

      public StyledElement setBreakBefore(String attrValue)
      Sets the CSS break-before property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBreakInside

      public StyledElement setBreakInside(String attrValue)
      Sets the CSS break-inside property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColumnCount

      public StyledElement setColumnCount(String attrValue)
      Sets the CSS column-count property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColumnCount

      public StyledElement setColumnCount(int count)
      Sets the CSS column-count property.
      Parameters:
      count - The iteration count.
      Returns:
      This instance for method chaining.
    • setColumnFill

      public StyledElement setColumnFill(String attrValue)
      Sets the CSS column-fill property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColumnFill

      public StyledElement setColumnFill(ColumnFill attrValue)
      Sets the CSS column-fill property.
      Parameters:
      attrValue - The column fill value.
      Returns:
      This instance for method chaining.
    • setColumnGap

      public StyledElement setColumnGap(String attrValue)
      Sets the CSS column-gap property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColumnRule

      public StyledElement setColumnRule(String attrValue)
      Sets the CSS column-rule property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColumnRuleColor

      public StyledElement setColumnRuleColor(String attrValue)
      Sets the CSS column-rule-color property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColumnRuleColor

      public StyledElement setColumnRuleColor(Color color)
      Sets the CSS column-rule-color property using a Color object.
      Parameters:
      color - The color value.
      Returns:
      This instance for method chaining.
    • setColumnRuleStyle

      public StyledElement setColumnRuleStyle(String attrValue)
      Sets the CSS column-rule-style property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColumnRuleStyle

      public StyledElement setColumnRuleStyle(ColumnRuleStyle attrValue)
      Sets the CSS column-rule-style property.
      Parameters:
      attrValue - The column rule style.
      Returns:
      This instance for method chaining.
    • setColumnRuleWidth

      public StyledElement setColumnRuleWidth(String attrValue)
      Sets the CSS column-rule-width property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColumnRuleWidth

      public StyledElement setColumnRuleWidth(ColumnRuleWidth attrValue)
      Sets the CSS column-rule-width property.
      Parameters:
      attrValue - The column rule width.
      Returns:
      This instance for method chaining.
    • setColumnSpan

      public StyledElement setColumnSpan(String attrValue)
      Sets the CSS column-span property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColumnWidth

      public StyledElement setColumnWidth(String attrValue)
      Sets the CSS column-width property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColumnWidth

      public StyledElement setColumnWidth(int pixels)
      Sets the CSS column-width property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setColumnWidth

      public StyledElement setColumnWidth(Units units)
      Sets the CSS column-width property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setColumns

      public StyledElement setColumns(String attrValue)
      Sets the CSS columns property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setColumns

      public StyledElement setColumns(int count, int width)
      Sets the CSS columns property.
      Parameters:
      count - The iteration count.
      width - The width value.
      Returns:
      This instance for method chaining.
    • setColumns

      public StyledElement setColumns(int count, Units width)
      Sets the CSS columns property.
      Parameters:
      count - The iteration count.
      width - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setWidows

      public StyledElement setWidows(String attrValue)
      Sets the CSS widows property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setOrphans

      public StyledElement setOrphans(String attrValue)
      Sets the CSS orphans property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPageBreakAfter

      public StyledElement setPageBreakAfter(String attrValue)
      Sets the CSS page-break-after property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPageBreakAfter

      public StyledElement setPageBreakAfter(PageBreakAfter attrValue)
      Sets the CSS page-break-after property.
      Parameters:
      attrValue - The page break after value.
      Returns:
      This instance for method chaining.
    • setPageBreakBefore

      public StyledElement setPageBreakBefore(String attrValue)
      Sets the CSS page-break-before property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPageBreakBefore

      public StyledElement setPageBreakBefore(PageBreakBefore attrValue)
      Sets the CSS page-break-before property.
      Parameters:
      attrValue - The page break before value.
      Returns:
      This instance for method chaining.
    • setPageBreakInside

      public StyledElement setPageBreakInside(String attrValue)
      Sets the CSS page-break-inside property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPageBreakInside

      public StyledElement setPageBreakInside(PageBreakInside attrValue)
      Sets the CSS page-break-inside property.
      Parameters:
      attrValue - The page break inside value.
      Returns:
      This instance for method chaining.
    • setMark

      public StyledElement setMark(String attrValue)
      Sets the CSS mark property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMarkAfter

      public StyledElement setMarkAfter(String attrValue)
      Sets the CSS mark-after property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setMarkBefore

      public StyledElement setMarkBefore(String attrValue)
      Sets the CSS mark-before property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPhonemes

      public StyledElement setPhonemes(String attrValue)
      Sets the CSS phonemes property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setRest

      public StyledElement setRest(String attrValue)
      Sets the CSS rest property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setRestAfter

      public StyledElement setRestAfter(String attrValue)
      Sets the CSS rest-after property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setRestBefore

      public StyledElement setRestBefore(String attrValue)
      Sets the CSS rest-before property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setVoiceBalance

      public StyledElement setVoiceBalance(String attrValue)
      Sets the CSS voice-balance property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setVoiceDuration

      public StyledElement setVoiceDuration(String attrValue)
      Sets the CSS voice-duration property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setVoicePitch

      public StyledElement setVoicePitch(String attrValue)
      Sets the CSS voice-pitch property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setVoicePitchRange

      public StyledElement setVoicePitchRange(String attrValue)
      Sets the CSS voice-pitch-range property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setVoiceRate

      public StyledElement setVoiceRate(String attrValue)
      Sets the CSS voice-rate property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setVoiceStress

      public StyledElement setVoiceStress(String attrValue)
      Sets the CSS voice-stress property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setVoiceVolume

      public StyledElement setVoiceVolume(String attrValue)
      Sets the CSS voice-volume property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextDecoration

      public StyledElement setTextDecoration(String attrValue)
      Sets the CSS text-decoration property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextDecoration

      public StyledElement setTextDecoration(TextDecoration attrValue)
      Sets the CSS text-decoration property.
      Parameters:
      attrValue - The text decoration value.
      Returns:
      This instance for method chaining.
    • setTextDecorationColor

      public StyledElement setTextDecorationColor(String attrValue)
      Sets the CSS text-decoration-color property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextDecorationColor

      public StyledElement setTextDecorationColor(Color color)
      Sets the CSS text-decoration-color property using a Color object.
      Parameters:
      color - The color value.
      Returns:
      This instance for method chaining.
    • setTextDecorationLine

      public StyledElement setTextDecorationLine(String attrValue)
      Sets the CSS text-decoration-line property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextDecorationLine

      public StyledElement setTextDecorationLine(TextDecorationLine attrValue)
      Sets the CSS text-decoration-line property.
      Parameters:
      attrValue - The text decoration line value.
      Returns:
      This instance for method chaining.
    • setTextDecorationStyle

      public StyledElement setTextDecorationStyle(String attrValue)
      Sets the CSS text-decoration-style property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextDecorationStyle

      public StyledElement setTextDecorationStyle(TextDecorationStyle attrValue)
      Sets the CSS text-decoration-style property.
      Parameters:
      attrValue - The text decoration style value.
      Returns:
      This instance for method chaining.
    • setTextShadow

      public StyledElement setTextShadow(String attrValue)
      Sets the CSS text-shadow property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextShadow

      public StyledElement setTextShadow(int hShadow, int vShadow)
      Sets the CSS text-shadow property.
      Parameters:
      hShadow - The h shadow value.
      vShadow - The v shadow value.
      Returns:
      This instance for method chaining.
    • setTextShadow

      public StyledElement setTextShadow(int hShadow, int vShadow, int blurRadius)
      Sets the CSS text-shadow property.
      Parameters:
      hShadow - The h shadow value.
      vShadow - The v shadow value.
      blurRadius - The blur radius value.
      Returns:
      This instance for method chaining.
    • setTextShadow

      public StyledElement setTextShadow(int hShadow, int vShadow, int blurRadius, Color color)
      Sets the CSS text-shadow property.
      Parameters:
      hShadow - The h shadow value.
      vShadow - The v shadow value.
      blurRadius - The blur radius value.
      color - The color value.
      Returns:
      This instance for method chaining.
    • setTextShadow

      public StyledElement setTextShadow(BoxShadow boxShadow)
      Sets the CSS text-shadow property from a BoxShadow builder.
      Parameters:
      boxShadow - the BoxShadow builder containing the shadow definitions.
      Returns:
      This instance for method chaining.
      See Also:
    • setTextUnderlinePosition

      public StyledElement setTextUnderlinePosition(String attrValue)
      Sets the CSS text-underline-position property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setHangingPunctuation

      public StyledElement setHangingPunctuation(String attrValue)
      Sets the CSS hanging-punctuation property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setHangingPunctuation

      public StyledElement setHangingPunctuation(HangingPunctuation attrValue)
      Sets the CSS hanging-punctuation property.
      Parameters:
      attrValue - The hanging punctuation value.
      Returns:
      This instance for method chaining.
    • setHyphens

      public StyledElement setHyphens(String attrValue)
      Sets the CSS hyphens property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setLetterSpacing

      public StyledElement setLetterSpacing(String attrValue)
      Sets the CSS letter-spacing property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setLetterSpacing

      public StyledElement setLetterSpacing(int pixels)
      Sets the CSS letter-spacing property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setLetterSpacing

      public StyledElement setLetterSpacing(float pts)
      Sets the CSS letter-spacing property.
      Parameters:
      pts - The float value.
      Returns:
      This instance for method chaining.
    • setLetterSpacing

      public StyledElement setLetterSpacing(Units units)
      Sets the CSS letter-spacing property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setLineBreak

      public StyledElement setLineBreak(String attrValue)
      Sets the CSS line-break property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setLineHeight

      public StyledElement setLineHeight(String attrValue)
      Sets the CSS line-height property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setLineHeight

      public StyledElement setLineHeight(int pixels)
      Sets the CSS line-height property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setLineHeight

      public StyledElement setLineHeight(float pts)
      Sets the CSS line-height property.
      Parameters:
      pts - The float value.
      Returns:
      This instance for method chaining.
    • setLineHeight

      public StyledElement setLineHeight(Units units)
      Sets the CSS line-height property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setOverflowWrap

      public StyledElement setOverflowWrap(String attrValue)
      Sets the CSS overflow-wrap property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTabSize

      public StyledElement setTabSize(String attrValue)
      Sets the CSS tab-size property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTabSize

      public StyledElement setTabSize(int pixels)
      Sets the CSS tab-size property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setTabSize

      public StyledElement setTabSize(float pts)
      Sets the CSS tab-size property.
      Parameters:
      pts - The float value.
      Returns:
      This instance for method chaining.
    • setTabSize

      public StyledElement setTabSize(Units units)
      Sets the CSS tab-size property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setTextAlign

      public StyledElement setTextAlign(String attrValue)
      Sets the CSS text-align property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextAlign

      public StyledElement setTextAlign(TextAlign attrValue)
      Sets the CSS text-align property.
      Parameters:
      attrValue - The text align value.
      Returns:
      This instance for method chaining.
    • setTextAlignLast

      public StyledElement setTextAlignLast(String attrValue)
      Sets the CSS text-align-last property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextAlignLast

      public StyledElement setTextAlignLast(TextAlignLast attrValue)
      Sets the CSS text-align-last property.
      Parameters:
      attrValue - The text align last value.
      Returns:
      This instance for method chaining.
    • setTextCombineUpright

      public StyledElement setTextCombineUpright(String attrValue)
      Sets the CSS text-combine-upright property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextIndent

      public StyledElement setTextIndent(String attrValue)
      Sets the CSS text-indent property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextIndent

      public StyledElement setTextIndent(int pixels)
      Sets the CSS text-indent property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setTextIndent

      public StyledElement setTextIndent(float pts)
      Sets the CSS text-indent property.
      Parameters:
      pts - The float value.
      Returns:
      This instance for method chaining.
    • setTextIndent

      public StyledElement setTextIndent(Units units)
      Sets the CSS text-indent property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setTextJustify

      public StyledElement setTextJustify(String attrValue)
      Sets the CSS text-justify property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextJustify

      public StyledElement setTextJustify(TextJustify attrValue)
      Sets the CSS text-justify property.
      Parameters:
      attrValue - The text justify value.
      Returns:
      This instance for method chaining.
    • setTextTransform

      public StyledElement setTextTransform(String attrValue)
      Sets the CSS text-transform property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextTransform

      public StyledElement setTextTransform(TextTransform attrValue)
      Sets the CSS text-transform property.
      Parameters:
      attrValue - The text transform value.
      Returns:
      This instance for method chaining.
    • setWhiteSpace

      public StyledElement setWhiteSpace(String attrValue)
      Sets the CSS white-space property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setWhiteSpace

      public StyledElement setWhiteSpace(WhiteSpace attrValue)
      Sets the CSS white-space property.
      Parameters:
      attrValue - The white space value.
      Returns:
      This instance for method chaining.
    • setWordBreak

      public StyledElement setWordBreak(String attrValue)
      Sets the CSS word-break property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setWordBreak

      public StyledElement setWordBreak(WordBreak attrValue)
      Sets the CSS word-break property.
      Parameters:
      attrValue - The word break value.
      Returns:
      This instance for method chaining.
    • setWordSpacing

      public StyledElement setWordSpacing(String attrValue)
      Sets the CSS word-spacing property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setWordSpacing

      public StyledElement setWordSpacing(int pixels)
      Sets the CSS word-spacing property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setWordSpacing

      public StyledElement setWordSpacing(float pts)
      Sets the CSS word-spacing property.
      Parameters:
      pts - The float value.
      Returns:
      This instance for method chaining.
    • setWordSpacing

      public StyledElement setWordSpacing(Units units)
      Sets the CSS word-spacing property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setWordWrap

      public StyledElement setWordWrap(String attrValue)
      Sets the CSS word-wrap property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setWordWrap

      public StyledElement setWordWrap(WordWrap attrValue)
      Sets the CSS word-wrap property.
      Parameters:
      attrValue - The word wrap value.
      Returns:
      This instance for method chaining.
    • setTextSelectDisabled

      public StyledElement setTextSelectDisabled(boolean flag)
      Sets the CSS text-select-disabled property.
      Parameters:
      flag - true to enable, false to disable.
      Returns:
      This instance for method chaining.
    • setBackfaceVisibility

      public StyledElement setBackfaceVisibility(String attrValue)
      Sets the CSS backface-visibility property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setBackfaceVisibility

      public StyledElement setBackfaceVisibility(BackfaceVisibility attrValue)
      Sets the CSS backface-visibility property.
      Parameters:
      attrValue - The backface visibility value.
      Returns:
      This instance for method chaining.
    • setPerspective

      public StyledElement setPerspective(String attrValue)
      Sets the CSS perspective property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPerspective

      public StyledElement setPerspective(int pixels)
      Sets the CSS perspective property in pixels.
      Parameters:
      pixels - The value in pixels.
      Returns:
      This instance for method chaining.
    • setPerspective

      public StyledElement setPerspective(Units units)
      Sets the CSS perspective property using a CSS unit value.
      Parameters:
      units - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setPerspectiveOrigin

      public StyledElement setPerspectiveOrigin(String attrValue)
      Sets the CSS perspective-origin property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setPerspectiveOrigin

      public StyledElement setPerspectiveOrigin(String xAxis, String yAxis)
      Sets the CSS perspective-origin property.
      Parameters:
      xAxis - The x axis value.
      yAxis - The y axis value.
      Returns:
      This instance for method chaining.
    • setPerspectiveOrigin

      public StyledElement setPerspectiveOrigin(Units xAxis, Units yAxis)
      Sets the CSS perspective-origin property.
      Parameters:
      xAxis - The value as a CSS unit.
      yAxis - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setPerspectiveOrigin

      public StyledElement setPerspectiveOrigin(Origin xAxis, Origin yAxis)
      Sets the CSS perspective-origin property.
      Parameters:
      xAxis - The origin value.
      yAxis - The origin value.
      Returns:
      This instance for method chaining.
    • setTransform

      public StyledElement setTransform(String attrValue)
      Sets the CSS transform property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTransform

      public StyledElement setTransform(Transform transform)
      Sets the CSS transform property from a Transform builder.
      Parameters:
      transform - the Transform builder containing the functions to apply.
      Returns:
      This instance for method chaining.
      See Also:
    • setTranslateX

      public StyledElement setTranslateX(String value)
      Sets the translateX() function within the CSS transform property.
      Parameters:
      value - the CSS length value (e.g., "50px", "10%").
      Returns:
      This instance for method chaining.
    • setTranslateY

      public StyledElement setTranslateY(String value)
      Sets the translateY() function within the CSS transform property.
      Parameters:
      value - the CSS length value (e.g., "50px", "10%").
      Returns:
      This instance for method chaining.
    • setTranslateZ

      public StyledElement setTranslateZ(String value)
      Sets the translateZ() function within the CSS transform property.
      Parameters:
      value - the CSS length value (e.g., "50px").
      Returns:
      This instance for method chaining.
    • setRotate

      public StyledElement setRotate(float degrees)
      Sets the rotate() function within the CSS transform property.
      Parameters:
      degrees - the rotation angle in degrees.
      Returns:
      This instance for method chaining.
    • setRotate

      public StyledElement setRotate(String value)
      Sets the rotate() function within the CSS transform property.
      Parameters:
      value - the CSS angle value (e.g., "45deg", "0.5turn").
      Returns:
      This instance for method chaining.
    • setScale

      public StyledElement setScale(float value)
      Sets the scale() function within the CSS transform property.
      Parameters:
      value - the scale factor (e.g., 1.5f for 150%).
      Returns:
      This instance for method chaining.
    • setScale

      public StyledElement setScale(String value)
      Sets the scale() function within the CSS transform property.
      Parameters:
      value - the CSS scale value (e.g., "1.5", "2, 0.5").
      Returns:
      This instance for method chaining.
    • setSkewX

      public StyledElement setSkewX(String value)
      Sets the skewX() function within the CSS transform property.
      Parameters:
      value - the CSS angle value (e.g., "15deg").
      Returns:
      This instance for method chaining.
    • setSkewY

      public StyledElement setSkewY(String value)
      Sets the skewY() function within the CSS transform property.
      Parameters:
      value - the CSS angle value (e.g., "15deg").
      Returns:
      This instance for method chaining.
    • setTransformOrigin

      public StyledElement setTransformOrigin(String attrValue)
      Sets the CSS transform-origin property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTransformOrigin

      public StyledElement setTransformOrigin(String xAxis, String yAxis, String zAxis)
      Sets the CSS transform-origin property.
      Parameters:
      xAxis - The x axis value.
      yAxis - The y axis value.
      zAxis - The z axis value.
      Returns:
      This instance for method chaining.
    • setTransformOrigin

      public StyledElement setTransformOrigin(int xAxis, int yAxis, int zAxis)
      Sets the CSS transform-origin property.
      Parameters:
      xAxis - The x axis value.
      yAxis - The y axis value.
      zAxis - The z axis value.
      Returns:
      This instance for method chaining.
    • setTransformOrigin

      public StyledElement setTransformOrigin(Units xAxis, Units yAxis, Units zAxis)
      Sets the CSS transform-origin property.
      Parameters:
      xAxis - The value as a CSS unit.
      yAxis - The value as a CSS unit.
      zAxis - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setTransformOrigin

      public StyledElement setTransformOrigin(Origin xAxis, Origin yAxis, Units zAxis)
      Sets the CSS transform-origin property.
      Parameters:
      xAxis - The origin value.
      yAxis - The origin value.
      zAxis - The value as a CSS unit.
      Returns:
      This instance for method chaining.
    • setTransformStyle

      public StyledElement setTransformStyle(String attrValue)
      Sets the CSS transform-style property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTransformStyle

      public StyledElement setTransformStyle(TransformStyle attrValue)
      Sets the CSS transform-style property.
      Parameters:
      attrValue - The transform style value.
      Returns:
      This instance for method chaining.
    • setTransition

      public StyledElement setTransition(String attrValue)
      Sets the CSS transition property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTransitionProperty

      public StyledElement setTransitionProperty(String attrValue)
      Sets the CSS transition-property property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTransitionDuration

      public StyledElement setTransitionDuration(String attrValue)
      Sets the CSS transition-duration property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTransitionDuration

      public StyledElement setTransitionDuration(float secs)
      Sets the CSS transition-duration property.
      Parameters:
      secs - The float value.
      Returns:
      This instance for method chaining.
    • setTransitionDuration

      public StyledElement setTransitionDuration(long msecs)
      Sets the CSS transition-duration property.
      Parameters:
      msecs - The long value.
      Returns:
      This instance for method chaining.
    • setTransitionTimingFunction

      public StyledElement setTransitionTimingFunction(String attrValue)
      Sets the CSS transition-timing-function property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTransitionTimingFunction

      public StyledElement setTransitionTimingFunction(TransitionTimingFunction attrValue)
      Sets the CSS transition-timing-function property.
      Parameters:
      attrValue - The transition timing function value.
      Returns:
      This instance for method chaining.
    • setTransitionTimingFunction

      public StyledElement setTransitionTimingFunction(int intervals, boolean start)
      Sets the CSS transition-timing-function property.
      Parameters:
      intervals - The number of intervals.
      start - true to start the steps from the beginning.
      Returns:
      This instance for method chaining.
    • setTransitionTimingFunction

      public StyledElement setTransitionTimingFunction(float n1, float n2, float n3, float n4)
      Sets the CSS transition-timing-function property.
      Parameters:
      n1 - The first cubic-bezier control point value.
      n2 - The second cubic-bezier control point value.
      n3 - The third cubic-bezier control point value.
      n4 - The fourth cubic-bezier control point value.
      Returns:
      This instance for method chaining.
    • setTransitionDelay

      public StyledElement setTransitionDelay(String attrValue)
      Sets the CSS transition-delay property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTransitionDelay

      public StyledElement setTransitionDelay(int secs)
      Sets the CSS transition-delay property.
      Parameters:
      secs - The secs value.
      Returns:
      This instance for method chaining.
    • setTransitionDelay

      public StyledElement setTransitionDelay(long msecs)
      Sets the CSS transition-delay property.
      Parameters:
      msecs - The long value.
      Returns:
      This instance for method chaining.
    • setDirection

      public StyledElement setDirection(String attrValue)
      Sets the CSS direction property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setDirection

      public StyledElement setDirection(TextDirection attrValue)
      Sets the CSS direction property.
      Parameters:
      attrValue - The text direction value.
      Returns:
      This instance for method chaining.
    • setTextOrientation

      public StyledElement setTextOrientation(String attrValue)
      Sets the CSS text-orientation property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setTextCombineWeight

      public StyledElement setTextCombineWeight(String attrValue)
      Sets the CSS text-combine-weight property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setUnicodeBidi

      public StyledElement setUnicodeBidi(String attrValue)
      Sets the CSS unicode-bidi property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setUnicodeBidi

      public StyledElement setUnicodeBidi(UnicodeBidi attrValue)
      Sets the CSS unicode-bidi property.
      Parameters:
      attrValue - The unicode bidi value.
      Returns:
      This instance for method chaining.
    • setWritingMode

      public StyledElement setWritingMode(String attrValue)
      Sets the CSS writing-mode property.
      Parameters:
      attrValue - The CSS value.
      Returns:
      This instance for method chaining.
    • setResizeToWindowHeight

      public void setResizeToWindowHeight(int dy)
      Sets the CSS resize-to-window-height property.
      Parameters:
      dy - The dy value.
    • setResizeToWindowHeight

      public void setResizeToWindowHeight(int dy, String otherElementId)
      Sets the CSS resize-to-window-height property.
      Parameters:
      dy - The dy value.
      otherElementId - The other element id value.
    • setResizeToWindowWidth

      public void setResizeToWindowWidth(int dx)
      Sets the CSS resize-to-window-width property.
      Parameters:
      dx - The dx value.
    • setMinHeightToWindowHeight

      public void setMinHeightToWindowHeight(int dy)
      Sets the CSS min-height-to-window-height property.
      Parameters:
      dy - The dy value.
    • setMinWidthToWindowWidth

      public void setMinWidthToWindowWidth(int dx)
      Sets the CSS min-width-to-window-width property.
      Parameters:
      dx - The dx value.
    • setMaxHeightToWindowHeight

      public void setMaxHeightToWindowHeight(int dy)
      Sets the CSS max-height-to-window-height property.
      Parameters:
      dy - The dy value.
    • setMaxWidthToWindowWidth

      public void setMaxWidthToWindowWidth(int dx)
      Sets the CSS max-width-to-window-width property.
      Parameters:
      dx - The dx value.
    • getCssClass

      public String getCssClass()
      Returns the class attribute value.
      Returns:
      The CSS class string, or null if not set.
    • getStyle

      public final CssStyle getStyle()
      Returns the inline CssStyle object for this element.
      Returns:
      The element's CssStyle instance.
    • updateStyle

      protected final void updateStyle()
    • updateStyleIfChanged

      protected final void updateStyleIfChanged()
      Updates the style attribute if any CSS properties have been modified.

      This method checks the internal modification flag of the CssStyle object and only triggers an update if actual changes occurred, preventing unnecessary browser updates.

    • updateStyle

      protected final boolean updateStyle(boolean changeOccurred)
      Conditionally updates the element's style attribute if a change occurred.
      Parameters:
      changeOccurred - true if a style change occurred that requires updating.
      Returns:
      The value of changeOccurred for convenience.
    • getHtml

      public void getHtml(StringBuilder sb)
      Generates the HTML representation of this element, including state-based styles and interactive cursor attributes.
      Overrides:
      getHtml in class Element<T extends StyledElement<T>>
      Parameters:
      sb - The StringBuilder to append the HTML output to.
    • onShow

      protected void onShow()
      Hook method called immediately when show() is invoked on this element.

      Unlike Element.onShown(), this is called directly by show() and does not cascade to children. Override this to perform actions specific to this element being explicitly shown.

    • onHide

      protected void onHide()
      Hook method called immediately when hide() is invoked on this element.

      Unlike Element.onHidden(), this is called directly by hide() and does not cascade to children. Override this to perform actions specific to this element being explicitly hidden.

    • shown

      protected final void shown()
      Handles the visibility cascade when this element becomes visible.

      Checks the current CSS display and visibility properties to confirm this element is actually shown. If so, calls Element.onShown() on this element and then cascades shown() to all child elements.

      Overrides:
      shown in class Element<T extends StyledElement<T>>
    • hidden

      protected final void hidden()
      Handles the visibility cascade when this element becomes hidden.

      Calls Element.onHidden() on this element and then cascades hidden() to all child elements.

      Overrides:
      hidden in class Element<T extends StyledElement<T>>
    • addTransition

      public T addTransition(Transition transition)
      Adds a transition to this element.

      Multiple transitions can be added and will play simultaneously when transitionForward() or transitionReverse() is called. No CSS is applied until a transition is triggered.

      Parameters:
      transition - the transition to add
      Returns:
      this element for method chaining
    • clearTransitions

      public void clearTransitions()
      Removes all transitions from this element.

      Clears the transition list, any saved snapshot, and removes the CSS transition property from the element's style.

    • transitionForward

      public void transitionForward()
      Plays all registered transitions forward.

      Snapshots the current values of all animated CSS properties, sets the CSS transition shorthand, then applies each transition's end state. The browser animates from the current values to the end-state values.

    • transitionForward

      public void transitionForward(long delayMs)
      Plays all registered transitions forward after a delay.

      Same as transitionForward() but each transition includes the specified delay before starting. This is used by TransitionSequence to stagger transitions across multiple elements.

      Parameters:
      delayMs - the delay in milliseconds before the transition starts
    • transitionReverse

      public void transitionReverse()
      Plays all registered transitions in reverse, returning to the original state.

      Rebuilds the CSS transition shorthand and restores property values from the snapshot taken during transitionForward(). The browser animates from the current (end) state back to the original values.

      Has no effect if transitionForward() has not been called.

    • transitionReverse

      public void transitionReverse(long delayMs)
      Plays all registered transitions in reverse after a delay.

      Same as transitionReverse() but each transition includes the specified delay before starting.

      Parameters:
      delayMs - the delay in milliseconds before the reverse transition starts
    • isTransitionForwardActive

      public boolean isTransitionForwardActive()
      Returns whether a forward transition is currently active on this element.
      Returns:
      true if the element is in a transitioned-forward state
    • animate

      public T animate(Animation animation)
      Applies a CSS keyframe animation to this element.

      Injects the animation's @keyframes definition into the page <head> (deduplicated by keyframes ID) and sets all animation CSS properties on this element's inline style.

      Note: This method requires the element to be attached to a page tree (i.e., getPage() must return non-null). For elements not yet attached, set the animation name on the inline style and inject keyframes manually in createHead() via head.addCssStyleSheet(animation.getStyleSheet()).

      Parameters:
      animation - the animation to apply
      Returns:
      this element for method chaining
      See Also:
    • stopAnimation

      public T stopAnimation()
      Stops any active CSS keyframe animation on this element.

      Removes the animation CSS properties from this element's inline style, causing the browser to stop the animation immediately.

      Returns:
      this element for method chaining
    • initialize

      protected void initialize()
      Description copied from class: Element
      Hook method called during element initialization.

      Override this method to set up the element's structure by adding child elements. This is called before Element.create() and only once during the element's lifecycle.

      Overrides:
      initialize in class Element<T extends StyledElement<T>>
    • onRemovedFromPage

      protected void onRemovedFromPage()
      Description copied from class: Element
      Hook method called when this element is removed from a page.

      Override this method to perform cleanup when the element is detached.

      Overrides:
      onRemovedFromPage in class Element<T extends StyledElement<T>>