info.magnolia.ui.vaadin.gwt.client.tabsheet.widget
Class MagnoliaTabSheetViewImpl

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.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.FlowPanel
                      extended by info.magnolia.ui.vaadin.gwt.client.tabsheet.widget.MagnoliaTabSheetViewImpl
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.InsertPanel, com.google.gwt.user.client.ui.InsertPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, ActiveTabChangedEvent.HasActiveTabChangeHandlers, TabSetChangedEvent.HasTabSetChangedHandlers, MagnoliaTabSheetView, Iterable<com.google.gwt.user.client.ui.Widget>

public class MagnoliaTabSheetViewImpl
extends com.google.gwt.user.client.ui.FlowPanel
implements MagnoliaTabSheetView

Contains the tabs at the top and the tabs themselves. The tabs are all contained in a ScrollPanel, this enables a single showing tab to be scrolled - or the contents of all the tabs to be scrolled together when they are stacked in the 'ShowAllTabs' mode.


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.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
MagnoliaTabSheetViewImpl(com.google.web.bindery.event.shared.EventBus eventBus)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addActiveTabChangedHandler(ActiveTabChangedEvent.Handler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addTabSetChangedHandler(TabSetChangedEvent.Handler handler)
           
 void clearTabs()
           
 MagnoliaTabWidget getActiveTab()
           
 TabBarWidget getTabContainer()
           
 List<MagnoliaTabWidget> getTabs()
           
protected  void onLoad()
           
 void removePreloader()
           
 void removeTab(MagnoliaTabWidget tabToOrphan)
           
 void setActiveTab(MagnoliaTabWidget tab)
           
 void setLogo(String logo, String logoBgColor)
           
 void setMaxHeight(int height)
           
 void showAllTabContents(boolean visible)
           
 void showPreloader()
           
 void updateTab(MagnoliaTabWidget tab)
           
 
Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insert
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 
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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets
add, clear, iterator, remove
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 
Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
add
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Constructor Detail

MagnoliaTabSheetViewImpl

public MagnoliaTabSheetViewImpl(com.google.web.bindery.event.shared.EventBus eventBus)
Method Detail

getTabContainer

public TabBarWidget getTabContainer()
Specified by:
getTabContainer in interface MagnoliaTabSheetView

removeTab

public void removeTab(MagnoliaTabWidget tabToOrphan)
Specified by:
removeTab in interface MagnoliaTabSheetView

setActiveTab

public void setActiveTab(MagnoliaTabWidget tab)
Specified by:
setActiveTab in interface MagnoliaTabSheetView

getActiveTab

public MagnoliaTabWidget getActiveTab()
Specified by:
getActiveTab in interface MagnoliaTabSheetView

getTabs

public List<MagnoliaTabWidget> getTabs()
Specified by:
getTabs in interface MagnoliaTabSheetView

showAllTabContents

public void showAllTabContents(boolean visible)
Specified by:
showAllTabContents in interface MagnoliaTabSheetView

updateTab

public void updateTab(MagnoliaTabWidget tab)
Specified by:
updateTab in interface MagnoliaTabSheetView

onLoad

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

addTabSetChangedHandler

public com.google.gwt.event.shared.HandlerRegistration addTabSetChangedHandler(TabSetChangedEvent.Handler handler)
Specified by:
addTabSetChangedHandler in interface TabSetChangedEvent.HasTabSetChangedHandlers

addActiveTabChangedHandler

public com.google.gwt.event.shared.HandlerRegistration addActiveTabChangedHandler(ActiveTabChangedEvent.Handler handler)
Specified by:
addActiveTabChangedHandler in interface ActiveTabChangedEvent.HasActiveTabChangeHandlers

setLogo

public void setLogo(String logo,
                    String logoBgColor)
Specified by:
setLogo in interface MagnoliaTabSheetView

setMaxHeight

public void setMaxHeight(int height)
Specified by:
setMaxHeight in interface MagnoliaTabSheetView

showPreloader

public void showPreloader()
Specified by:
showPreloader in interface MagnoliaTabSheetView

removePreloader

public void removePreloader()
Specified by:
removePreloader in interface MagnoliaTabSheetView

clearTabs

public void clearTabs()
Specified by:
clearTabs in interface MagnoliaTabSheetView


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.