Groovy Documentation

org.grails.plugin.vaadin
[Groovy] Class GrailsVaadinApplication

java.lang.Object
  com.vaadin.Application
      org.grails.plugin.vaadin.VaadinApplication
          org.grails.plugin.vaadin.GrailsVaadinApplication

abstract class GrailsVaadinApplication
extends VaadinApplication

A Vaadin Application that provides a request-dispatching framework with a Grails-like Model-View-Controller architecture.

Users should override this class, when creating the Application class for their Vaadin project.

It starts listening to changes to the fragment in the browser URL, and dispatches requests to appropriate Vaadin Controllers.

Note that this functionality is optional - a user can disable this by simply overriding the Application class directly.

Authors:
Francis McKenzie


Property Summary
VaadinDispatcher dispatcher

The dispatcher for routing requests

 
Constructor Summary
GrailsVaadinApplication()

 
Method Summary
protected boolean isBrowserRefresh(HttpServletRequest request)

Detects if specified request is a browser refresh

void onRequestStart(HttpServletRequest request, HttpServletResponse response)

Fixes an issue where a browser refresh does not trigger a repaint of the interface, if the refresh fails to expire the session.

void start(java.net.URL applicationUrl, Properties applicationProperties, ApplicationContext context)

Starts URL Fragment listener and request-dispatching framework.

 
Methods inherited from class VaadinApplication
getSystemMessages, onRequestEnd, onRequestStart
 
Methods inherited from class Application
getProperty, getURL, init, getContext, start, close, getVersion, setLocale, getLocale, isRunning, getWindows, setUser, setErrorHandler, getErrorHandler, addListener, addListener, addListener, getPropertyNames, removeListener, removeListener, removeListener, getWindow, addWindow, removeWindow, getUser, getTheme, setTheme, getMainWindow, setMainWindow, addResource, removeResource, getRelativeLocation, handleURI, getLogoutURL, setLogoutURL, getSystemMessages, terminalError, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

dispatcher

VaadinDispatcher dispatcher
The dispatcher for routing requests


 
Constructor Detail

GrailsVaadinApplication

GrailsVaadinApplication()


 
Method Detail

isBrowserRefresh

protected boolean isBrowserRefresh(HttpServletRequest request)
Detects if specified request is a browser refresh


onRequestStart

void onRequestStart(HttpServletRequest request, HttpServletResponse response)
Fixes an issue where a browser refresh does not trigger a repaint of the interface, if the refresh fails to expire the session.

In this case, we manually dispatch the existing 'request' again.


start

@Override
void start(java.net.URL applicationUrl, Properties applicationProperties, ApplicationContext context)
Starts URL Fragment listener and request-dispatching framework.


 

Groovy Documentation