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