Package ch.bailu.gtk.lib.bridge
Class CSS
java.lang.Object
ch.bailu.gtk.lib.bridge.CSS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addProvider
(Widget widget, String cssResourcePath) Add css resource file to widgetstatic void
addProviderForDisplay
(Display display, String cssResourcePath) Add css resource file to applications global style providersstatic void
addProviderRecursive
(Widget widget, String cssResourcePath) Add css resource file to widget and all child widgets
-
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 tocssResourcePath
- absolute path to java resource: "/css/sample.css"- Throws:
IOException
-
addProvider
Add css resource file to widget- Parameters:
widget
- add css resource to this widgetcssResourcePath
- absolute path to java resource: "/css/sample.css"- Throws:
IOException
-
addProviderRecursive
Add css resource file to widget and all child widgets- Parameters:
widget
- top level widgetcssResourcePath
- absolute path to java resource: "/css/sample.css"- Throws:
IOException
-