List of usage examples for com.google.gwt.gdata.client.calendar CalendarEntry getUpdated
public final native Updated getUpdated() ;
From source file:com.google.gwt.gdata.sample.hellogdata.client.CalendarRetrieveCalendarsDemo.java
License:Apache License
/** * Displays a set of Calendar entries in a tabular fashion with * the help of a GWT FlexTable widget. The data fields Title, Color * and Updated are displayed./*www . jav a 2 s.c o m*/ * * @param entries The Calendar entries to display. */ private void showData(CalendarEntry[] entries) { mainPanel.clear(); String[] labels = new String[] { "Title", "Color", "Updated" }; mainPanel.insertRow(0); for (int i = 0; i < labels.length; i++) { mainPanel.addCell(0); mainPanel.setWidget(0, i, new Label(labels[i])); mainPanel.getFlexCellFormatter().setStyleName(0, i, "hm-tableheader"); } for (int i = 0; i < entries.length; i++) { CalendarEntry entry = entries[i]; int row = mainPanel.insertRow(i + 1); mainPanel.addCell(row); mainPanel.setWidget(row, 0, new Label(entry.getTitle().getText())); mainPanel.addCell(row); mainPanel.setWidget(row, 1, new Label(entry.getColor().getValue())); mainPanel.addCell(row); mainPanel.setWidget(row, 2, new Label(entry.getUpdated().getValue().getDate().toString())); } }