private void buildLinks() {
VerticalPanel panel = new VerticalPanel();
panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);
panel.setStylePrimaryName("lab-Explorer-Links");
mainPanel.getFlexCellFormatter().setStyleName(1, 0, ""); //cancel default style
Anchor refreshLink = new Anchor("Refresh");
refreshLink.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
event.preventDefault();
event.stopPropagation();
loadEntries(false);
}
});
Anchor newDocumentLink = new Anchor("New Document", "/docs", "_blank");
Anchor acLink = new Anchor("Google Access Control", "https://www.google.com/accounts/IssuedAuthSubTokens", "_blank");
Anchor docsLink = new Anchor("Google Documents", "http://docs.google.com/", "_blank");
panel.add(new HTML("<br /><b>Actions</b>"));
panel.add(refreshLink);
panel.add(newDocumentLink);
panel.add(new HTML("<br /><b>Links</b>"));
panel.add(acLink);