|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectcom.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.
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 |
---|
VaadinDispatcher dispatcher
Constructor Detail |
---|
GrailsVaadinApplication()
Method Detail |
---|
protected boolean isBrowserRefresh(HttpServletRequest request)
void onRequestStart(HttpServletRequest request, HttpServletResponse response)
In this case, we manually dispatch the existing 'request' again.
@Override void start(java.net.URL applicationUrl, Properties applicationProperties, ApplicationContext context)
Groovy Documentation