I have a question about how and when styles are applied. This is in
combination with the GWT API for the Google visualization toolkit.
(Although this example does nothing more than load the toolkit.)
The styles I have defined directly in my uibinder file work when the view
is created directly in onModuleLoad, e.g. the following displays as
expected...
public void onModuleLoad() {
Runnable onLoadCallback = new Runnable() {
public void run() {
Window.alert("Hey, loaded!");
}
};
RootPanel root = RootPanel.get();
SearchView view = new SearchView();
root.add(view);
VisualizationUtils.loadVisualizationApi(onLoadCallback, Table.PACKAGE);
}
However, if I move the lines "RootPanel root = ... ; root.add(view);" into
the callback, the elements and text appear, but the styles have not been
applied as expected.
Is there a section in the documentation for either GWT or the visualization
toolkit that might explain why this is the case?
Thanks
-Patrick
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/iJtpLLIV_kIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.