Java Code Examples for com.google.gwt.dom.client.StyleInjector#injectStylesheetAtEnd()
The following examples show how to use
com.google.gwt.dom.client.StyleInjector#injectStylesheetAtEnd() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TimelineWidget.java From gantt with Apache License 2.0 | 5 votes |
/** * Injects custom stylesheet just for this widget. It helps to update styles * for a big group of elements in the DOM, like resolution blocks. * <p> * Warning, this feature is not working with Internet Explorer reliably * enough. Read more at {@link StyleInjector#injectStylesheetAtEnd(String)}. * This method has no effect when {@link #ie} is set to true. */ private void injectStyle() { if (ie || styleElement != null) { return; } styleElement = StyleInjector.injectStylesheetAtEnd( "." + STYLE_FIRST + " { } ." + STYLE_CENTER + " { } ." + STYLE_LAST + " { } ." + STYLE_COL + " { } "); StyleInjector.flush(); }
Example 2
Source File: TimelineWidget.java From gantt with Apache License 2.0 | 5 votes |
private void injectLeftStyle() { if (ie || styleElementForLeft != null) { return; } styleElementForLeft = StyleInjector.injectStylesheetAtEnd("." + STYLE_COL + " { } "); StyleInjector.flush(); }