if (selectionChangeTransition != null) {
selectionChangeTransition.start(new TransitionListener() {
@Override
public void transitionCompleted(Transition transition) {
CardPane cardPaneLocal = (CardPane)getComponent();
SelectionChangeTransition selectionChangeTransitionLocal =
(SelectionChangeTransition)transition;
int selectedIndexLocal = cardPaneLocal.indexOf(selectionChangeTransitionLocal.toCard);
cardPaneLocal.setSelectedIndex(selectedIndexLocal);
CardPaneSkin.this.selectionChangeTransition = null;
}
});
}
}