org.ow2.orchestra.common.gwt.utils.client.ui
Class ScrollableTabLayoutPanel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.google.gwt.user.client.ui.ResizeComposite
                  extended by com.google.gwt.user.client.ui.TabLayoutPanel
                      extended by org.ow2.orchestra.common.gwt.utils.client.ui.ScrollableTabLayoutPanel
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasBeforeSelectionHandlers<Integer>, com.google.gwt.event.logical.shared.HasSelectionHandlers<Integer>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.AnimatedLayout, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.ProvidesResize, com.google.gwt.user.client.ui.RequiresResize, Iterable<com.google.gwt.user.client.ui.Widget>

public class ScrollableTabLayoutPanel
extends com.google.gwt.user.client.ui.TabLayoutPanel

Author:
Loic Albertin based on https://groups.google.com/group/google-web-toolkit/browse_thread/thread/c0df252d4db7c0f0/af9a3df602ac00f9?hl=de&lnk=gst&q=tablayoutpanel&pli=1#af9a3df602ac00f9 A TabLayoutPanel that shows scroll buttons if necessary

Nested Class Summary
static interface ScrollableTabLayoutPanel.Resources
           
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ScrollableTabLayoutPanel(double barHeight, com.google.gwt.dom.client.Style.Unit barUnit, com.google.gwt.resources.client.ImageResource leftArrowImage, com.google.gwt.resources.client.ImageResource rightArrowImage)
           
 
Method Summary
 void add(com.google.gwt.user.client.ui.Widget child, com.google.gwt.user.client.ui.Widget tab)
           
 void handleScrollRequest(int diff)
           
protected  void onLoad()
           
protected  void onUnload()
           
 boolean remove(com.google.gwt.user.client.ui.Widget w)
           
 void selectTab(int index, boolean fireEvents)
           
 
Methods inherited from class com.google.gwt.user.client.ui.TabLayoutPanel
add, add, add, add, add, add, add, add, addBeforeSelectionHandler, addSelectionHandler, animate, animate, clear, forceLayout, getAnimationDuration, getSelectedIndex, getTabWidget, getTabWidget, getTabWidget, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, insert, insert, insert, insert, insert, insert, insert, isAnimationVertical, iterator, remove, selectTab, selectTab, selectTab, selectTab, selectTab, setAnimationDuration, setAnimationVertical, setTabHTML, setTabHTML, setTabText
 
Methods inherited from class com.google.gwt.user.client.ui.ResizeComposite
initWidget, onResize
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

ScrollableTabLayoutPanel

public ScrollableTabLayoutPanel(double barHeight,
                                com.google.gwt.dom.client.Style.Unit barUnit,
                                com.google.gwt.resources.client.ImageResource leftArrowImage,
                                com.google.gwt.resources.client.ImageResource rightArrowImage)
Method Detail

add

public void add(com.google.gwt.user.client.ui.Widget child,
                com.google.gwt.user.client.ui.Widget tab)
Overrides:
add in class com.google.gwt.user.client.ui.TabLayoutPanel

remove

public boolean remove(com.google.gwt.user.client.ui.Widget w)
Specified by:
remove in interface com.google.gwt.user.client.ui.HasWidgets
Overrides:
remove in class com.google.gwt.user.client.ui.TabLayoutPanel

onLoad

protected void onLoad()
Overrides:
onLoad in class com.google.gwt.user.client.ui.Widget

onUnload

protected void onUnload()
Overrides:
onUnload in class com.google.gwt.user.client.ui.Widget

handleScrollRequest

public void handleScrollRequest(int diff)

selectTab

public void selectTab(int index,
                      boolean fireEvents)
Overrides:
selectTab in class com.google.gwt.user.client.ui.TabLayoutPanel


Copyright © 2012 OW2 Consortium. All Rights Reserved.