Interface TypedModifier

All Known Implementing Classes:
Align, AlignContent, AlignItems, AlignItems, AlignSelf, Brightness, Direction, Display, Display, ExpandableModifier, FlexShorthand, FlexWrap, Gap, GridBreakpoint, IconSize, Inset, JustifyContent, NotificationStatus, Orientation, Padding, Position, RowWrap, Size, SpaceItems, Spacer, Status, Sticky, ToolbarColor, ToolbarGroupType, ToolbarItemType, TreeViewGridBreakpoint, Visibility, Width, Wrap

public interface TypedModifier
  • 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()