public class Transition extends Object implements com.google.gwt.user.client.EventListener
| Modifier and Type | Field and Description |
|---|---|
static Transition |
FADE
Defines a transition.
|
static Transition |
FLIP
Defines a transition.
|
protected SWMMobileWidgetBase |
myFrom |
protected com.google.gwt.user.client.ui.HasWidgets |
myParent |
protected boolean |
myReverse |
protected SWMMobileWidgetBase |
myTo |
static Transition |
POP
Defines a transition.
|
static Transition |
SLIDE
Defines a transition.
|
static Transition |
SLIDEDOWN
Defines a transition.
|
static Transition |
SLIDEUP
Defines a transition.
|
static Transition |
SWAP
Defines a transition.
|
protected String |
transitionStyleName |
| Constructor and Description |
|---|
Transition(String transitionStyleName)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onBrowserEvent(com.google.gwt.user.client.Event e) |
protected void |
onTransitionEnd()
Will be called after the transition is completed.
|
protected void |
prepare()
Will prepare the next transition.
|
protected void |
registerTransitionEndEvent()
Event which will be fired, after the transition is completed.
|
protected void |
removeTransitionStyles()
Will remove the transition styles.
|
protected void |
start()
Will start the next transition.
|
static void |
start(SWMMobileWidgetBase from,
SWMMobileWidgetBase to,
com.google.gwt.user.client.ui.HasWidgets parent)
Will perform a transition.
|
void |
start(SWMMobileWidgetBase from,
SWMMobileWidgetBase to,
com.google.gwt.user.client.ui.HasWidgets parent,
boolean reverse)
Will perform a transition.
|
protected String transitionStyleName
protected SWMMobileWidgetBase myFrom
protected SWMMobileWidgetBase myTo
protected boolean myReverse
protected com.google.gwt.user.client.ui.HasWidgets myParent
public static final Transition SLIDE
public static final Transition SLIDEUP
public static final Transition SLIDEDOWN
public static final Transition FADE
public static final Transition POP
public static final Transition FLIP
public static final Transition SWAP
public Transition(String transitionStyleName)
transitionStyleName - the style name.public static void start(SWMMobileWidgetBase from, SWMMobileWidgetBase to, com.google.gwt.user.client.ui.HasWidgets parent)
from - .to - .parent - the parent widget containing form sand to widgets.public void start(SWMMobileWidgetBase from, SWMMobileWidgetBase to, com.google.gwt.user.client.ui.HasWidgets parent, boolean reverse)
from - .to - .parent - the parent widget containing form sand to widgets.reverse - will be executer in the reverse direction.protected void prepare()
protected void start()
protected void removeTransitionStyles()
public void onBrowserEvent(com.google.gwt.user.client.Event e)
onBrowserEvent in interface com.google.gwt.user.client.EventListenerprotected void onTransitionEnd()
protected void registerTransitionEndEvent()
Copyright © 2011–2015 SWM. All rights reserved.