Hi Experts,
I am new to GWT and trying out the example "SimpleViz". I call the
loadVisualizationApi the library but nothing seems happened:
public class ImageViewer implements EntryPoint
{
private RootPanel rootPanel;
public void onModuleLoad()
{
/*
rootPanel = RootPanel.get();
clickMeButton = new Button();
rootPanel.add(clickMeButton);
clickMeButton.setText("Click me!");
clickMeButton.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent event)
{
Window.alert("Hello, GWT World!");
}
});*/
Runnable onLoadCallback = new Runnable()
{
public void run()
{
Panel rootPanel = RootPanel.get();
Window.alert("2.5");
LineChart line = new LineChart(createTable(),
createOptions());
line.addSelectHandler(createSelectHandler(line));
Window.alert("3");
rootPanel.add(line);
Window.alert("4");
}
};
Window.alert("1.1");
VisualizationUtils.loadVisualizationApi(onLoadCallback,
LineChart.PACKAGE);
Window.alert("2.2");
}
}
When I compile and run it up. the webpage will show "1.1" and "2.2",
nothing was called inside the runnable.
I am completed stucked and the javadoc for this function is not much
help. Can someone shine a light on how to I get this example to work?
Best Regards
Ferdinand Ng
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
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.