List of usage examples for com.google.gwt.gdata.client GData getVersion
public static String getVersion()
From source file:com.google.gwt.gdata.sample.hellogdata.client.HelloGData.java
License:Apache License
/** * Instantiates and runs a given GData demo. * @param info An instance of an info object describing the demo *///ww w . ja v a 2 s .com public void show(GDataDemoInfo info) { // Don't bother re-displaying the existing GDataDemo. if (info == curInfo) { return; } curInfo = info; // Remove the old GDataDemo from the display area. if (curGDataDemo != null) { innerPanel.remove(curGDataDemo); } // Get the new GDataDemo instance, and display its description in the // MapsDemo list. curGDataDemo = info.getInstance(); list.setGDataDemoSelection(info.getName()); // Display the new GDataDemo and update the description panel. innerPanel.add(curGDataDemo); description.setHTML(info.getDescription()); // info is an inner class of the class we want to display. Strip off the // generated anonymous class name. String strippedClassName = info.getClass().getName(); int lastIndex = strippedClassName.lastIndexOf('$'); if (lastIndex > 0) { strippedClassName = strippedClassName.substring(0, lastIndex); } outerPanel.setWidget(3, 0, new HTML("<h5> See source in " + strippedClassName + "</h5><h5>GData API version: " + GData.getVersion() + "</h5>")); curGDataDemo.onShow(); }