Interface ICssClassNameProvider

All Superinterfaces:
IClusterable, Serializable
All Known Subinterfaces:
OffsetType, OrderType, SpanType
All Known Implementing Classes:
Alert.Type, AlignmentBehavior.Alignment, BackgroundColorBehavior.Color, BorderBehavior.Color, BorderBehavior.Radius, BorderBehavior.Type, BorderBehavior.Width, ButtonGroup.Size, Buttons.Orientation, Buttons.Size, Buttons.Type, CodeBehavior.Language, ColorBehavior.Color, DropDownAlignmentBehavior.Alignment, DropDownAlignmentBehavior.Size, DropDownVariationBehavior.Variation, ExtraLargeOffsetType, ExtraLargeOrderType, ExtraLargeSpanType, ExtraSmallOffsetType, ExtraSmallOrderType, ExtraSmallSpanType, FormGroup.Size, FormType, IconType, ImageBehavior.Type, InputBehavior.Size, LabelType, LargeOffsetType, LargeOrderType, LargeScreenSpanType, MediumOffsetType, MediumOrderType, MediumSpanType, Modal.Fullscreen, Modal.Size, Navbar.Position, Pagination.Size, SmallOffsetType, SmallOrderType, SmallSpanType, TableContextType, Width

public interface ICssClassNameProvider extends IClusterable
#### Description The ICssClassNameProvider provides an interface to abstract the styling of a component and the rendering of the class attribute.

#### Usage This interface can be used with a Enum: ```java public enum Color implements { Red, Blue; public String cssClassName() { return name().toLowerCase(); } } public MyColoredComponent extends Component { public MyColoredComponent(String id, Color color) { super(id); add(new CssClassNameAppender(color.cssClassName())); } } ```

  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details

    • cssClassName

      String cssClassName()
      Returns:
      a css class name