/** * Shows the widget at the specified index. This causes the currently- visible * widget to be hidden. * * @param index the index of the widget to be shown */ public void showWidget(int index) { checkIndexBoundsForAccess(index); Widget oldWidget = visibleWidget; visibleWidget = getWidget(index); if (visibleWidget != oldWidget) { if (slideAnimation == null) { slideAnimation = new SlideAnimation(); } slideAnimation.showWidget(oldWidget, visibleWidget, isAnimationEnabled && isAttached()); } }
public void setPixelSize(int width, int height) { super.setPixelSize(width, height); int deckPanelHeight = height - tabBar.getOffsetHeight(); deckPanel.setPixelSize(width, deckPanelHeight); for (int i = 0; i < deckPanel.getWidgetCount(); i++) { deckPanel.getWidget(i).setPixelSize(width, deckPanelHeight); } }
public Widget getWidget(int idx) { return deckPanel.getWidget(idx); }
/** * Shows the widget at the specified index. This causes the currently- visible * widget to be hidden. * * @param index the index of the widget to be shown */ public void showWidget(int index) { checkIndexBoundsForAccess(index); Widget oldWidget = visibleWidget; visibleWidget = getWidget(index); if (visibleWidget != oldWidget) { if (slideAnimation == null) { slideAnimation = new SlideAnimation(); } slideAnimation.showWidget(oldWidget, visibleWidget, isAnimationEnabled && isAttached()); } }
/** * Shows the widget at the specified index. This causes the currently- visible * widget to be hidden. * * @param index the index of the widget to be shown */ public void showWidget(int index) { checkIndexBoundsForAccess(index); Widget oldWidget = visibleWidget; visibleWidget = getWidget(index); if (visibleWidget != oldWidget) { if (slideAnimation == null) { slideAnimation = new SlideAnimation(); } slideAnimation.showWidget(oldWidget, visibleWidget, isAnimationEnabled && isAttached()); } }