Interface TypedModifier

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

public interface TypedModifier
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static <T extends TypedModifier, E extends Element, B extends TypedBuilder<E, B>>
    B
    swap(B builder, E element, T value, T[] values)
    Swaps a typed modifier on an element builder.
    static <T extends TypedModifier, E extends Element, B extends TypedBuilder<E, B>>
    B
    swap(B builder, E element, T current, T previous, Runnable assignment)
    Swaps a typed modifier on an element builder.
     
  • Method Details

    • swap

      static <T extends TypedModifier, E extends Element, B extends TypedBuilder<E, B>> B swap(B builder, E 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, E 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()