use of com.sencha.gxt.fx.client.animation.AfterAnimateEvent in project activityinfo by bedatadriven.
the class LogicalTabPanel method scrollTo.
private void scrollTo(int pos, boolean animate) {
XElement stripWrap = getStripWrap();
if (animate) {
Fx fx = new Fx();
fx.addAfterAnimateHandler(new AfterAnimateHandler() {
@Override
public void onAfterAnimate(AfterAnimateEvent event) {
appearance.updateScrollButtons(getElement());
}
});
stripWrap.<FxElement>cast().scrollTo(ScrollDirection.LEFT, pos, true, fx);
} else {
stripWrap.setScrollLeft(pos);
appearance.updateScrollButtons(getElement());
}
}
Aggregations