List of usage examples for com.google.gwt.gdata.client.blogger PostEntry getAuthors
public final native Person[] getAuthors() ;
From source file:com.google.gwt.gdata.sample.hellogdata.client.BloggerRetrieveSpecificBlogPostDemo.java
License:Apache License
/** * Displays a Blogger post entry in a tabular fashion with * the help of a GWT FlexTable widget. The data fields Title, * Author, Published and Contents are displayed. * * @param entry The Blogger post entry to display. *///w w w . ja v a 2s. com private void showData(PostEntry entry) { mainPanel.clear(); mainPanel.insertRow(0); mainPanel.addCell(0); mainPanel.setWidget(0, 0, new HTML("<h2>" + entry.getTitle().getText() + "</h2>")); mainPanel.insertRow(1); mainPanel.addCell(1); mainPanel.setWidget(1, 0, new HTML("<i>By " + entry.getAuthors()[0].getName().getValue() + " on " + entry.getPublished().getValue().getDate().toString() + "</i>")); mainPanel.insertRow(2); mainPanel.addCell(2); mainPanel.setWidget(2, 0, new Label(entry.getContent().getText())); }