Interface TypedModifier

All Known Implementing Classes:
Brightness, ExpandableModifier, GridBreakpoint, Inset, NotificationStatus, Orientation, Padding, Placement, PopperPlacement, Size, Status, Sticky, Visibility, Width

public interface TypedModifier
Interface for enums that represent a CSS modifier class, providing both the raw value and the fully qualified modifier.
  • Method Details

    • swap

      static <T extends TypedModifier, E extends Element, B extends TypedBuilder<E,B>> B swap(B builder, Element element, T value, T[] values)
      Swaps a typed modifier on an element builder. Swapping is done by removing all modifiers given as values and then setting the new modifier given as value.
    • swap

      static <T extends TypedModifier, E extends Element, B extends TypedBuilder<E,B>> B swap(B builder, Element element, T current, T previous, Runnable assignment)
      Swaps a typed modifier on an element builder. Swapping is done by removing the previous modifier, applying the current modifier, and optionally performing an assignment.
    • value

      String value()
    • modifier

      String modifier()