Interface Stylesheet

  • All Known Implementing Classes:
    CachedStylesheet, CascadingStylesheet, VoidStylesheet

    public interface Stylesheet
    Represents a stylesheet.

    A stylesheet associates a style to a widget.

    By default, every widget has the same style:

    • black color,
    • white plain rectangular background,
    • no border,
    • no padding,
    • no margin,
    • no dimension,
    • default font,
    • left horizontal alignment,
    • top vertical alignment,
    • no extra field.
    • Method Detail

      • getStyle

        Style getStyle​(Widget widget)
        Gets the style for a widget.
        Parameters:
        widget - the widget to get the style for.
        Returns:
        the style applied to the widget.