|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.LegacyApplication
@Deprecated public abstract class LegacyApplication
A special application designed to help migrating applications from Vaadin 6 to Vaadin 7. The legacy application supports setting a main window, adding additional browser level windows and defining the theme for the entire application.
| Constructor Summary | |
|---|---|
LegacyApplication()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addWindow(UI.LegacyWindow uI)
Deprecated. Adds a new browser level window to this application. |
void |
close()
Deprecated. |
void |
doInit()
Deprecated. |
VaadinServiceSession |
getContext()
Deprecated. |
java.lang.String |
getLogoutURL()
Deprecated. might be refactored or removed before 7.0.0 |
UI.LegacyWindow |
getMainWindow()
Deprecated. Gets the mainWindow of the application. |
java.lang.String |
getTheme()
Deprecated. Gets the application's theme. |
java.net.URL |
getURL()
Deprecated. |
UI.LegacyWindow |
getWindow(java.lang.String name)
Deprecated. Gets a UI by name. |
java.util.Collection<UI.LegacyWindow> |
getWindows()
Deprecated. Gets the set of windows contained by the application. |
protected abstract void |
init()
Deprecated. |
boolean |
isRunning()
Deprecated. |
void |
removeWindow(UI.LegacyWindow uI)
Deprecated. Removes the specified window from the application. |
void |
setLogoutURL(java.lang.String logoutURL)
Deprecated. might be refactored or removed before 7.0.0 |
void |
setMainWindow(UI.LegacyWindow mainWindow)
Deprecated. Sets the main window of this application. |
void |
setTheme(java.lang.String theme)
Deprecated. Sets the application's theme. |
void |
terminalError(Terminal.ErrorEvent event)
Deprecated. Invoked when a terminal error occurs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LegacyApplication()
| Method Detail |
|---|
public void setMainWindow(UI.LegacyWindow mainWindow)
mainWindow - the UI to set as the default windowpublic void doInit()
protected abstract void init()
public UI.LegacyWindow getMainWindow()
The main window is the window attached to the application URL (
getURL()) and thus which is show by default to the user.
Note that each application must have at least one main window.
public void setTheme(java.lang.String theme)
Note that this theme can be overridden for a specific UI with
VaadinServiceSession#getThemeForUI(UI). Setting theme to be
null selects the default theme. For the available theme
names, see the contents of the VAADIN/themes directory.
theme - the new theme for this application.public java.lang.String getTheme()
null is
returned.
public UI.LegacyWindow getWindow(java.lang.String name)
Gets a UI by name. Returns null if the application is not
running or it does not contain a window corresponding to the name.
name - the name of the requested window
null to use the
default windowpublic void addWindow(UI.LegacyWindow uI)
#addWindow(UI, String)
uI - the UI window to add to the application#addWindow(UI, String)public void removeWindow(UI.LegacyWindow uI)
and
#getWindowName(UI).
Note that removing window from the application does not close the browser window - the window is only removed from the server-side.
uI - the UI to removepublic java.util.Collection<UI.LegacyWindow> getWindows()
Note that the returned set of windows can not be modified.
public void terminalError(Terminal.ErrorEvent event)
Terminal.ErrorListener
terminalError in interface Terminal.ErrorListenerevent - the fired event.public VaadinServiceSession getContext()
public void close()
public boolean isRunning()
public java.net.URL getURL()
@Deprecated public java.lang.String getLogoutURL()
null, the application is closed normally as defined by the
application running environment.
Desktop application just closes the application window and web-application redirects the browser to application main URL.
@Deprecated public void setLogoutURL(java.lang.String logoutURL)
null, the application is closed normally as defined by the
application running environment: Desktop application just closes the
application window and web-application redirects the browser to
application main URL.
logoutURL - the logoutURL to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||