layout.addMember(getAddButton());
return layout;
}
private IconButton getAddButton() {
IconButton button = new IconButton("Fetch completions from my private endpoint");
button.setWidth(250);
button.setShowRollOver(false);
button.setShowDown(false);
button.setIcon(Imgs.ADD.get());
button.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
drawEndpointAddDialogue();
}