fi.paatti.research.paattiapplication.views
Class ApplicationTabSheet

java.lang.Object
  extended by com.vaadin.ui.AbstractComponent
      extended by com.vaadin.ui.AbstractComponentContainer
          extended by com.vaadin.ui.TabSheet
              extended by fi.paatti.research.paattiapplication.views.ApplicationTabSheet
All Implemented Interfaces:
com.vaadin.event.MethodEventSource, com.vaadin.terminal.Paintable, com.vaadin.terminal.Sizeable, com.vaadin.terminal.VariableOwner, com.vaadin.ui.Component, com.vaadin.ui.ComponentContainer, Serializable, EventListener

public class ApplicationTabSheet
extends com.vaadin.ui.TabSheet

The application tab sheet that holds all the views of the application.

Author:
Tapio Keränen, t.tapio.keranen@student.jyu.fi, Toni Salminen, toni.a.j.salminen@student.jyu.fi, Jari Salokangas, jari.p.t.salokangas@student.jyu.fi, Lauri Satokangas, lauri.n.satokangas@student.jyu.fi
See Also:
Serialized Form
 

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.ui.TabSheet
com.vaadin.ui.TabSheet.CloseHandler, com.vaadin.ui.TabSheet.SelectedTabChangeEvent, com.vaadin.ui.TabSheet.SelectedTabChangeListener, com.vaadin.ui.TabSheet.Tab, com.vaadin.ui.TabSheet.TabSheetTabImpl
 
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler
 
Nested classes/interfaces inherited from interface com.vaadin.ui.ComponentContainer
com.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.ErrorListener, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.Paintable
com.vaadin.terminal.Paintable.RepaintRequestEvent, com.vaadin.terminal.Paintable.RepaintRequestListener
 
Field Summary
static int GROUP_TAB
           
static int SCHEDULE_TAB
           
static int USER_TAB
           
 
Fields inherited from interface com.vaadin.terminal.Sizeable
SIZE_UNDEFINED, UNIT_SYMBOLS, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Constructor Summary
ApplicationTabSheet(PaattiResearchApplication application)
          Creates the application tab sheet.
 
Method Summary
 fi.paatti.paattidatabaseutils.dbservice.PaattiResearchDBService getDBConnection()
          Returns the db connection.
 PaattiResearchApplication getPaattiApplication()
          Returns the PaattiResearchApplication.
 void setActiveTab(int tabIndex, Object itemId)
          Activates the tab at tabIndex.
 
Methods inherited from class com.vaadin.ui.TabSheet
addComponent, addListener, addTab, addTab, addTab, addTab, addTab, areTabsHidden, changeVariables, fireSelectedTabChange, getComponentCount, getComponentIterator, getSelectedTab, getTab, getTab, getTabCaption, getTabIcon, getTabPosition, hideTabs, moveComponentsFrom, paintContent, removeComponent, removeListener, removeListener, removeTab, replaceComponent, setCloseHandler, setSelectedTab, setTabCaption, setTabIcon, setTabPosition
 
Methods inherited from class com.vaadin.ui.AbstractComponentContainer
addListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, removeAllComponents, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidth
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addListener, addListener, addListener, addListener, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, focus, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidthUnits
 
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, childRequestedRepaint, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setIcon, setParent, setReadOnly, setStyleName, setVisible
 
Methods inherited from interface com.vaadin.terminal.Paintable
addListener, getDebugId, paint, requestRepaint, requestRepaintRequests, setDebugId
 
Methods inherited from interface com.vaadin.terminal.VariableOwner
isImmediate
 
Methods inherited from interface com.vaadin.terminal.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUnits, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUnits
 

Field Detail

USER_TAB

public static final int USER_TAB
See Also:
Constant Field Values

GROUP_TAB

public static final int GROUP_TAB
See Also:
Constant Field Values

SCHEDULE_TAB

public static final int SCHEDULE_TAB
See Also:
Constant Field Values
Constructor Detail

ApplicationTabSheet

public ApplicationTabSheet(PaattiResearchApplication application)
Creates the application tab sheet.

Parameters:
application - PaattiResearchApplication application.
Method Detail

setActiveTab

public void setActiveTab(int tabIndex,
                         Object itemId)
Activates the tab at tabIndex. The activated tab uses the given itemId to update its contents.

Parameters:
tabIndex - tab index integer.
itemId - db item row id.

getPaattiApplication

public PaattiResearchApplication getPaattiApplication()
Returns the PaattiResearchApplication.

Returns:
main application.

getDBConnection

public fi.paatti.paattidatabaseutils.dbservice.PaattiResearchDBService getDBConnection()
Returns the db connection.

Returns:
database connection.


Copyright © 2012. All Rights Reserved.