Interface BootstrapStyleRule

All Superinterfaces:
Predicate<com.foreach.across.modules.web.ui.elements.HtmlViewElement>, com.foreach.across.modules.web.ui.ViewElement.WitherRemover<com.foreach.across.modules.web.ui.elements.HtmlViewElement>, com.foreach.across.modules.web.ui.ViewElement.WitherSetter<com.foreach.across.modules.web.ui.elements.HtmlViewElement>
All Known Subinterfaces:
BreakpointStyleRule
All Known Implementing Classes:
AcrossBorderStyleRule, AcrossBorderStyleRule.AcrossNoBorderStyleRule, AcrossDisplayStyleRule.DisplayPropertyStyleRule, AcrossFlexStyleRule.Direction, AcrossFlexStyleRule.Wrap, AcrossRoundedStyleRule, AcrossShadowStyleRule, AcrossSimpleBreakpointStyleRule, AcrossStyleRule, AcrossTextStyleRule.Wrap, AlertStyleRule, BadgeStyleRule, BlockQuoteStyleRule, BorderStyleRule, BorderStyleRule.NoBorderStyleRule, BreadcrumbStyleRule, ButtonStyleRule, ButtonStyleRule.Group, CardStyleRule, CarouselStyleRule, CarouselStyleRule.Control.WithIcon, DisplayStyleRule.DisplayPropertyStyleRule, DropdownStyleRule, DropdownStyleRule.Item, DropdownStyleRule.Menu, DropdownStyleRule.Toggle, EmbedStyleRule.Responsive, FigureStyleRule, FlexStyleRule.Direction, FlexStyleRule.Wrap, FormStyleRule.Check, FormStyleRule.Control, FormStyleRule.Custom.Control, FormStyleRule.Custom.File, FormStyleRule.Custom.Select, FormStyleRule.Horizontal.Label, GridStyleRule.Column, GridStyleRule.Container, GridStyleRule.Row, InputGroupStyleRule, JumbotronStyleRule, ListGroupStyleRule, ListGroupStyleRule.Horizontal, ListGroupStyleRule.Item, ListGroupStyleRule.Item.Action, ListStyleRule.Inline, MediaStyleRule, ModalStyleRule, ModalStyleRule.Dialog, NavbarStyleRule, NavbarStyleRule.Toggler, NavStyleRule, PaginationStyleRule, ProgressStyleRule, ProgressStyleRule.Bar, RoundedStyleRule, ScreenReaderOnlyStyleRule, ShadowStyleRule, SimpleBreakpointStyleRule, SpinnerStyleRule.Grow, TableStyleRule, TextStyleRule.Wrap, ToastStyleRule, ValidationStyleRule.State
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BootstrapStyleRule extends com.foreach.across.modules.web.ui.ViewElement.WitherSetter<com.foreach.across.modules.web.ui.elements.HtmlViewElement>, com.foreach.across.modules.web.ui.ViewElement.WitherRemover<com.foreach.across.modules.web.ui.elements.HtmlViewElement>, Predicate<com.foreach.across.modules.web.ui.elements.HtmlViewElement>
Since:
3.0.0
Author:
Arne Vandamme
  • Method Details

    • empty

      static BootstrapStyleRule empty()
    • of

      static BootstrapStyleRule of(String... css)
    • appendOnSet

      static BootstrapStyleRule appendOnSet(BootstrapStyleRule original, String... css)
    • combine

      static BootstrapStyleRule combine(BootstrapStyleRule... rules)
    • toCssClasses

      String[] toCssClasses()
    • removeFrom

      default void removeFrom(com.foreach.across.modules.web.ui.elements.HtmlViewElement target)
      Specified by:
      removeFrom in interface com.foreach.across.modules.web.ui.ViewElement.WitherRemover<com.foreach.across.modules.web.ui.elements.HtmlViewElement>
    • applyTo

      default void applyTo(com.foreach.across.modules.web.ui.elements.HtmlViewElement target)
      Specified by:
      applyTo in interface com.foreach.across.modules.web.ui.ViewElement.WitherSetter<com.foreach.across.modules.web.ui.elements.HtmlViewElement>
    • suffix

      default BootstrapStyleRule suffix(@NonNull @NonNull String suffix)
      Create a new rule with applies a suffix to all css classes from the current rule.
      Parameters:
      suffix - to apply
      Returns:
      new rule instance
    • prefix

      default BootstrapStyleRule prefix(@NonNull @NonNull String prefix)
      Create a new rule with applies a prefix to all css classes from the current rule.
      Parameters:
      prefix - to apply
      Returns:
      new rule instance
    • test

      default boolean test(com.foreach.across.modules.web.ui.elements.HtmlViewElement target)
      Specified by:
      test in interface Predicate<com.foreach.across.modules.web.ui.elements.HtmlViewElement>