Class ScrolledTabLayoutPanel

  • 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.HasVisibility, 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.IsRenderable, 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 ScrolledTabLayoutPanel
    extends com.google.gwt.user.client.ui.TabLayoutPanel
    A TabLayoutPanel that shows scroll buttons in the tab bar if tabs become wider than the panel width.
    • Nested Class Summary

      • 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
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel

        com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      ScrolledTabLayoutPanel​(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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(com.google.gwt.user.client.ui.Widget child, com.google.gwt.user.client.ui.Widget tab)  
      void onResize()  
      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.Composite

        claimElement, initializeClaimedElement, isAttached, onBrowserEvent, render, render
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
      • Methods inherited from interface com.google.gwt.event.shared.HasHandlers

        fireEvent
    • Constructor Detail

      • ScrolledTabLayoutPanel

        public ScrolledTabLayoutPanel​(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
      • onResize

        public void onResize()
        Specified by:
        onResize in interface com.google.gwt.user.client.ui.RequiresResize
        Overrides:
        onResize in class com.google.gwt.user.client.ui.ResizeComposite
      • selectTab

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