|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectcom.vaadin.ui.AbstractComponent
com.vaadin.ui.UriFragmentUtility
org.grails.plugin.vaadin.ui.StartupUriFragmentUtility
class StartupUriFragmentUtility extends UriFragmentUtility
A special UriFragmentUtility that forces the browser to send the initial fragment only when the application first starts. Thereafter, it behaves exactly like the UriFragmentUtility.
Note that UriFragmentUtility will not send a fragment changed event if the server-side fragment is the same as the browser-side fragment. This means that we don't get any fragment information when the app first starts. This class is designed to get around that by forcing the browser to send its fragment when the app first loads.
Property Summary | |
---|---|
boolean |
firstPaintDone
Used to control when to send the garbage fragment to the client to force the new fragment to be sent. |
Constructor Summary | |
StartupUriFragmentUtility()
|
Method Summary | |
---|---|
void
|
paintContent(PaintTarget target)
Send a garbage fragment on first 'paint', to force the browser to send us the true fragment. |
void
|
restart()
Forces utility to send fragment on next paint. |
Property Detail |
---|
boolean firstPaintDone
Set to true after the first call to paintContent(PaintTarget).
Constructor Detail |
---|
StartupUriFragmentUtility()
Method Detail |
---|
@Override void paintContent(PaintTarget target)
void restart()
Groovy Documentation