addMinimizeClickHandler(new MinimizeClickHandler() {
public void onMinimizeClick(MinimizeClickEvent event) {
maximizeHeaderControl.hide();
}
});
addRestoreClickHandler(new RestoreClickHandler() {
public void onRestoreClick(RestoreClickEvent event) {
maximizeHeaderControl.show();
}
});