public class HorizontalSwapPanel extends com.google.gwt.user.client.ui.Composite implements HasSwapHandlers
| Modifier and Type | Class and Description |
|---|---|
static class |
HorizontalSwapPanel.Direction |
| Constructor and Description |
|---|
HorizontalSwapPanel()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addSwapHandler(SwapHandler handler) |
void |
clear() |
com.google.gwt.user.client.ui.Widget |
getCurrentWidget() |
int |
getTransitionDuration() |
boolean |
isUseFadeTransitions()
Get the useFadeTransitions property.
|
void |
setCurrentWidget(com.google.gwt.user.client.ui.Widget widget)
Sets the widget that will be initially visible on this panel.
|
void |
setHeight(String height) |
void |
setTransitionDuration(int transitionDuration)
Sets the duration of the animations in milliseconds.
|
void |
setUseFadeTransitions(boolean useFadeTransitions)
Set the useFadeTransitions property.
|
void |
transitTo(com.google.gwt.user.client.ui.Widget w,
HorizontalSwapPanel.Direction direction)
Changes the widget being shown on this widget.
|
void |
transitTo(com.google.gwt.user.client.ui.Widget w,
HorizontalSwapPanel.Direction direction,
Transition.Callback completeCallback)
Changes the widget being shown on this widget.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic void setHeight(String height)
setHeight in class com.google.gwt.user.client.ui.UIObjectpublic com.google.gwt.event.shared.HandlerRegistration addSwapHandler(SwapHandler handler)
addSwapHandler in interface HasSwapHandlerspublic void setCurrentWidget(com.google.gwt.user.client.ui.Widget widget)
widget - public boolean isUseFadeTransitions()
public void setUseFadeTransitions(boolean useFadeTransitions)
useFadeTransitions - public com.google.gwt.user.client.ui.Widget getCurrentWidget()
public void transitTo(com.google.gwt.user.client.ui.Widget w,
HorizontalSwapPanel.Direction direction)
w - direction - the direction of the animationpublic void transitTo(com.google.gwt.user.client.ui.Widget w,
HorizontalSwapPanel.Direction direction,
Transition.Callback completeCallback)
w - direction - the direction of the animationcompleteCallback - public void setTransitionDuration(int transitionDuration)
transitionDuration - public int getTransitionDuration()
public void clear()
Copyright © 2014. All rights reserved.