public class SlideTransitionContainer extends TransitionContainer
DURATION
EMPTY_ELEMENT_ARRAY
Constructor and Description |
---|
SlideTransitionContainer(int direction,
boolean overlap)
Creates a slide transition manager.
|
Modifier and Type | Method and Description |
---|---|
protected void |
resetContext()
Cleans up the context after the animation.
|
void |
show(ej.mwt.Widget widget,
boolean forward)
Shows a new widget.
|
protected void |
updateStep(int step)
Updates the current step.
|
addAnimationStepListener, cancelAnimation, createMotion, getDuration, getMotionFactory, hideNotify, notifyAnimationStepListeners, notifyAnimationStepListeners, removeAnimationStepListener, setBoundsContent, setChildBounds, setDuration, setMotionFactory, startAnimation, stopAnimation, tick, validateContent
add, addClassSelector, contains, gainFocus, getAttribute, getChild, getChildrenCount, getChildrenElements, getParentElement, getStyle, hasClassSelector, isInState, isTransparent, lostFocus, mergeStyle, removeAllClassSelectors, removeClassSelector, removeInstanceStyle, render, renderContent, setBounds, setClassSelectors, setEnabled, updateStyle, updateStyleOnly, validate
getFocus, getFocusIndex, getNext, getWidget, getWidgetAt, getWidgets, getWidgetsCount, handleEvent, iterator, remove, removeAllWidgets, requestFocus, requestFocus, requestFocusFrom, showNotify
getAbsoluteX, getAbsoluteX, getAbsoluteY, getAbsoluteY, getEventHandler, getHeight, getPanel, getParent, getPreferredHeight, getPreferredWidth, getRelativeX, getRelativeY, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isShown, isValid, isVisible, repaint, repaint, revalidate, revalidateSubTree, setEventHandler, setLocation, setPreferredSize, setSize, setVisible
public SlideTransitionContainer(int direction, boolean overlap)
The given direction is the way the widgets slide when forward. For example, passing MWT.UP
, the new
widget starts below and goes upward.
direction
- one of MWT.LEFT
, MWT.RIGHT
, MWT.TOP
, MWT.BOTTOM
.overlap
- true
if the new widget overlaps the previous one, false
if the new widget
pushes the previous one.public void show(ej.mwt.Widget widget, boolean forward)
TransitionContainer
show
in class TransitionContainer
widget
- the new widget to show.forward
- true
if going forward, false
otherwise.protected void resetContext()
TransitionContainer
resetContext
in class TransitionContainer
protected void updateStep(int step)
TransitionContainer
Called during the animation using the current value of the motion.
updateStep
in class TransitionContainer
step
- the current step.