}
public void initUI() {
String[] columnWidths = new String[] { "600px", "400px", "60px" };
final ScrollTable table = new ScrollTable(columnWidths, false);
clear();
add(table);
Button refreshButton = new Button("Refresh");
refreshButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
fetchReferrals(table);
}
});
add(refreshButton);
table.setHeaderWidget(0, new Label("Referrer"), HasHorizontalAlignment.ALIGN_LEFT);
table.setHeaderWidget(1, new Label("Search Term"), HasHorizontalAlignment.ALIGN_LEFT);
table.setHeaderWidget(2, new Label("Count"), HasHorizontalAlignment.ALIGN_RIGHT);
// DateTimeFormat dateFormat = DateTimeFormat.getFormat(LocaleInfo.getCurrentLocale().getDateTimeFormatInfo().dateFormatShort());
fetchReferrals(table);