@Override
public void onAfterAnimate(AfterAnimateEvent event) {
afterCollapse();
}
});
fx.run(new SlideOut(getAppearance().getBodyWrap(getElement()), Direction.UP));
addStyleDependentName("animated");
} else {
getAppearance().getBodyWrap(getElement()).hide();
afterCollapse();