Class CSS

java.lang.Object
ch.bailu.gtk.lib.bridge.CSS

public class CSS extends Object
  • Constructor Details

    • CSS

      public CSS()
  • Method Details

    • addProviderForDisplay

      public static void addProviderForDisplay(Display display, String cssResourcePath) throws IOException
      Add css resource file to applications global style providers
      Parameters:
      display - display this CSS resource will by applied to
      cssResourcePath - absolute path to java resource: "/css/sample.css"
      Throws:
      IOException
    • addProvider

      public static void addProvider(Widget widget, String cssResourcePath) throws IOException
      Add css resource file to widget
      Parameters:
      widget - add css resource to this widget
      cssResourcePath - absolute path to java resource: "/css/sample.css"
      Throws:
      IOException
    • addProviderRecursive

      public static void addProviderRecursive(Widget widget, String cssResourcePath) throws IOException
      Add css resource file to widget and all child widgets
      Parameters:
      widget - top level widget
      cssResourcePath - absolute path to java resource: "/css/sample.css"
      Throws:
      IOException