collapseButton.setDisabled(true);
expandButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
expandButton.setDisabled(true);
flow.animateResize(310,45, new AnimationCallback() {
public void execute(boolean earlyFinish) {
flow.animateResize(310,195);
}
});
collapseButton.setDisabled(false);
}
});
collapseButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
collapseButton.setDisabled(true);
flow.animateResize(310,45, new AnimationCallback() {
public void execute(boolean earlyFinish) {
flow.animateResize(75,45);
}
});
expandButton.setDisabled(false);