Class VoidStylesheet

  • All Implemented Interfaces:
    Stylesheet

    public class VoidStylesheet
    extends java.lang.Object
    implements Stylesheet
    Stylesheet that always returns the default style.
    • Constructor Summary

      Constructors 
      Constructor Description
      VoidStylesheet()
      Creates a void stylesheet.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Style getStyle​(Widget widget)
      Gets the style for a widget.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VoidStylesheet

        public VoidStylesheet()
        Creates a void stylesheet.
    • Method Detail

      • getStyle

        public Style getStyle​(Widget widget)
        Description copied from interface: Stylesheet
        Gets the style for a widget.
        Specified by:
        getStyle in interface Stylesheet
        Parameters:
        widget - the widget to get the style for.
        Returns:
        the style applied to the widget.