header = new HorizontalPanel();
header.setStyleName("table-picker");
header.add(currentDisplayedValue);
Image img = new Image(ConsoleIcons.INSTANCE.tablePicker());
header.add(img);
currentDisplayedValue.getElement().getParentElement().setAttribute("width", "100%");
img.getParent().getElement().setAttribute("width", "18");
header.getElement().setAttribute("width", "100%");
header.getElement().setAttribute("cellspacing", "0");
header.getElement().setAttribute("cellpadding", "0");
header.getElement().setAttribute("border", "0");
ClickHandler clickHandler = new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
openPanel();
}
};
currentDisplayedValue.addClickHandler(clickHandler);
img.addClickHandler(clickHandler);
return header;
}