Interface StyleableComponent

All Known Implementing Classes:
Button, StyledButton, StyledControl, StyledText, Text

public interface StyleableComponent
Provides hooks for applying and updating CSS style classes on components.

This interface allows a component to manage dynamic updates to its style classes, ensuring style consistency. It is implemented by UI components that require specific styles based on their state or context.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Applies the current set of CSS style classes to the UI component.
    void
    Dynamically updates the CSS style classes of a component based on its state or type.
  • Method Details

    • applyStyleClasses

      void applyStyleClasses()
      Applies the current set of CSS style classes to the UI component.
    • updateStyleClasses

      void updateStyleClasses()
      Dynamically updates the CSS style classes of a component based on its state or type.