@Component(value="cuba_App") @Scope(value="vaadin") public class DefaultApp extends App implements Connection.StateChangeListener, Connection.UserSubstitutionListener
App
implementation that shows AppLoginWindow
on start. Single instance of App is bound to
single HTTP session.APP_THEME_COOKIE_PREFIX, COOKIE_LOCALE, NAME, USER_SESSION_ATTR
Constructor and Description |
---|
DefaultApp() |
Modifier and Type | Method and Description |
---|---|
void |
connectionStateChanged(Connection.StateChangeEvent event) |
void |
loginOnStart() |
void |
navigateTo(java.lang.String topLevelWindowId)
Initialize new TopLevelWindow and replace current
|
void |
userSubstituted(Connection.UserSubstitutedEvent event) |
addBackgroundTask, addCookie, addCookie, cleanupBackgroundTasks, closeAllWindows, createTopLevelWindow, createTopLevelWindow, getAppLog, getAppUI, getAppUIs, getConnection, getCookieMaxAge, getCookieValue, getExceptionHandlers, getInstance, getLocale, getThemeConstants, getTopLevelWindow, getWebResourceTimestamp, getWindowManager, isBound, logout, logout, onHeartbeat, removeBackgroundTask, removeCookie, setLocale, setUserAppTheme
public void connectionStateChanged(Connection.StateChangeEvent event)
connectionStateChanged
in interface Connection.StateChangeListener
public void loginOnStart() throws LoginException
loginOnStart
in class App
LoginException
public void navigateTo(java.lang.String topLevelWindowId)
App
navigateTo
in class App
topLevelWindowId
- target top level window idpublic void userSubstituted(Connection.UserSubstitutedEvent event)
userSubstituted
in interface Connection.UserSubstitutionListener