Animação de tela com BlackBerry

static TransitionContext transitContextIn;
static TransitionContext transitContextOut;
motor UiEngineInstance estático = Ui.getUiEngineInstance ();

public static void Slide (tela da tela) {

transiçãoContextIn = novo TransitionContext (TransitionContext.TRANSITION SLIDE);
transiçãoContextIn.setIntAttribute (TransitionContext.ATTR
DURATION, 1000);
transactionContextIn.setIntAttribute (TransitionContext.ATTR DIRECTION, TransitionContext.DIRECTION UP);

transiçãoContextOut = novo TransitionContext (TransitionContext.TRANSITION SLIDE);
transactionContextOut.setIntAttribute (TransitionContext.ATTR
DURATION, 1000);
transactionContextOut.setIntAttribute (TransitionContext.ATTR DIRECTION, TransitionContext.DIRECTION DOWN);
transactionContextOut.setIntAttribute (TransitionContext.ATTR KIND, TransitionContext.KIND OUT);

engine.setTransition (nulo, tela, UiEngineInstance.TRIGGER PUSH, transiçãoContextIn);
engine.setTransition (tela, nulo, UiEngineInstance.TRIGGER
POP, transiçãoContextOut);
}

Cenário