info.magnolia.ui.vaadin.tabsheet
Class MagnoliaTabSheet

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.ui.AbstractComponent
          extended by com.vaadin.ui.AbstractComponentContainer
              extended by info.magnolia.ui.vaadin.tabsheet.MagnoliaTabSheet
All Implemented Interfaces:
com.vaadin.event.MethodEventSource, com.vaadin.server.ClientConnector, com.vaadin.server.Sizeable, com.vaadin.shared.Connector, com.vaadin.ui.Component, com.vaadin.ui.ComponentContainer, com.vaadin.ui.HasComponents, com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, Serializable, Iterable<com.vaadin.ui.Component>

public class MagnoliaTabSheet
extends com.vaadin.ui.AbstractComponentContainer

Simple lightweight tabsheet component.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
 
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit
 
Field Summary
 
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Constructor Summary
MagnoliaTabSheet()
           
 
Method Summary
 void addComponent(com.vaadin.ui.Component c)
           
 MagnoliaTab addTab(String caption, com.vaadin.ui.Component c)
           
protected  void closeTab(MagnoliaTab tab)
           
 void closeTabFromServer(MagnoliaTab tab)
          Send a rpc call to the client, which will remove the tab related views and call back to the server.
protected  void doAddTab(MagnoliaTab tab)
           
 MagnoliaTab getActiveTab()
           
 int getComponentCount()
           
 MagnoliaTab getNextTab(MagnoliaTab tab)
           
protected  MagnoliaTabSheetState getState()
           
protected  MagnoliaTabSheetState getState(boolean markDirty)
           
 Iterator<com.vaadin.ui.Component> iterator()
           
 void removeComponent(com.vaadin.ui.Component c)
           
 void replaceComponent(com.vaadin.ui.Component oldComponent, com.vaadin.ui.Component newComponent)
           
 void setActiveTab(MagnoliaTab tab)
           
 void setLogo(String logo, String bgcolor)
           
 void setName(String name)
           
protected  void showAll()
           
 void showAllTab(boolean showAll, String label)
           
 
Methods inherited from class com.vaadin.ui.AbstractComponentContainer
addComponentAttachListener, addComponentDetachListener, addComponents, addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, removeListener, removeListener, setHeight, setWidth
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth
 
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 
Methods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setSizeFull, setSizeUndefined, setWidth
 

Constructor Detail

MagnoliaTabSheet

public MagnoliaTabSheet()
Method Detail

showAll

protected void showAll()

addComponent

public void addComponent(com.vaadin.ui.Component c)
Specified by:
addComponent in interface com.vaadin.ui.ComponentContainer
Overrides:
addComponent in class com.vaadin.ui.AbstractComponentContainer

addTab

public MagnoliaTab addTab(String caption,
                          com.vaadin.ui.Component c)

getState

protected MagnoliaTabSheetState getState()
Overrides:
getState in class com.vaadin.ui.AbstractComponent

getState

protected MagnoliaTabSheetState getState(boolean markDirty)
Overrides:
getState in class com.vaadin.ui.AbstractComponent

showAllTab

public void showAllTab(boolean showAll,
                       String label)

closeTab

protected void closeTab(MagnoliaTab tab)

doAddTab

protected void doAddTab(MagnoliaTab tab)

getActiveTab

public MagnoliaTab getActiveTab()

getNextTab

public MagnoliaTab getNextTab(MagnoliaTab tab)

removeComponent

public void removeComponent(com.vaadin.ui.Component c)
Specified by:
removeComponent in interface com.vaadin.ui.ComponentContainer
Overrides:
removeComponent in class com.vaadin.ui.AbstractComponentContainer

setActiveTab

public void setActiveTab(MagnoliaTab tab)

replaceComponent

public void replaceComponent(com.vaadin.ui.Component oldComponent,
                             com.vaadin.ui.Component newComponent)

getComponentCount

public int getComponentCount()

iterator

public Iterator<com.vaadin.ui.Component> iterator()

closeTabFromServer

public void closeTabFromServer(MagnoliaTab tab)
Send a rpc call to the client, which will remove the tab related views and call back to the server.

See Also:
closeTab(MagnoliaTab)

setLogo

public void setLogo(String logo,
                    String bgcolor)

setName

public void setName(String name)


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