com.hack23.cia.web.views.common
Class Navigator

Package class diagram package Navigator
java.lang.Object
  extended by com.vaadin.ui.AbstractComponent
      extended by com.vaadin.ui.AbstractComponentContainer
          extended by com.vaadin.ui.CustomComponent
              extended by com.hack23.cia.web.views.common.Navigator
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 Navigator
extends com.vaadin.ui.CustomComponent

The Class Navigator.

See Also:
Serialized Form

Nested Class Summary
static interface Navigator.NavigableApplication
          The Interface NavigableApplication.
static interface Navigator.View
          The Interface View.
 
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
 
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
Navigator()
          Instantiates a new navigator.
 
Method Summary
 void addView(String uri, Class<?> viewClass)
          Adds the view.
 Navigator.View getCurrentView()
          Gets the current view.
 String getMainView()
          Gets the main view.
 String getUri(Class<?> viewClass)
          Gets the uri.
 Class<?> getViewClass(String uri)
          Gets the view class.
static com.vaadin.ui.Window getWindow(Navigator.NavigableApplication application, String name, com.vaadin.ui.Window superGetWindow)
          Gets the window.
 void navigateTo(Class<?> viewClass)
          Navigate to.
 void navigateTo(String uri)
          Navigate to.
 void removeView(String uri)
          Removes the view.
 void setCurrentView(Navigator.View currentView)
          Sets the current view.
 void setMainView(String mainViewUri)
          Sets the main view.
 
Methods inherited from class com.vaadin.ui.CustomComponent
addComponent, getComponentIterator, getComponentType, getCompositionRoot, moveComponentsFrom, paintContent, removeAllComponents, removeComponent, replaceComponent, setComponentType, setCompositionRoot
 
Methods inherited from class com.vaadin.ui.AbstractComponentContainer
addListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidth
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addListener, addListener, addListener, addStyleName, changeVariables, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getLocale, getParent, getStyle, getStyleName, getTag, getWidth, getWidthUnits, getWindow, handleError, 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, removeListener, requestRepaint, requestRepaintRequests, setDebugId
 
Methods inherited from interface com.vaadin.terminal.VariableOwner
changeVariables, isImmediate
 
Methods inherited from interface com.vaadin.terminal.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUnits, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUnits
 

Constructor Detail

Navigator

public Navigator()
Instantiates a new navigator.

Method Detail

getWindow

public static com.vaadin.ui.Window getWindow(Navigator.NavigableApplication application,
                                             String name,
                                             com.vaadin.ui.Window superGetWindow)
Gets the window.

Parameters:
application - the application
name - the name
superGetWindow - the super get window
Returns:
the window

addView

public final void addView(String uri,
                          Class<?> viewClass)
Adds the view.

Parameters:
uri - the uri
viewClass - the view class

getCurrentView

public final Navigator.View getCurrentView()
Gets the current view.

Returns:
the current view

getMainView

public final String getMainView()
Gets the main view.

Returns:
the main view

getUri

public final String getUri(Class<?> viewClass)
Gets the uri.

Parameters:
viewClass - the view class
Returns:
the uri

getViewClass

public final Class<?> getViewClass(String uri)
Gets the view class.

Parameters:
uri - the uri
Returns:
the view class

navigateTo

public final void navigateTo(Class<?> viewClass)
Navigate to.

Parameters:
viewClass - the view class

navigateTo

public final void navigateTo(String uri)
Navigate to.

Parameters:
uri - the uri

removeView

public final void removeView(String uri)
Removes the view.

Parameters:
uri - the uri

setCurrentView

public final void setCurrentView(Navigator.View currentView)
Sets the current view.

Parameters:
currentView - the new current view

setMainView

public final void setMainView(String mainViewUri)
Sets the main view.

Parameters:
mainViewUri - the new main view


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.