+++ /dev/null
-/*
- * Copyright 2011 Vaadin Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-
-package com.vaadin;
-
-import java.util.Properties;
-import java.util.logging.Logger;
-
-import com.vaadin.server.Constants;
-import com.vaadin.server.DeploymentConfiguration;
-
-/**
- * The default implementation of {@link DeploymentConfiguration} based on a base
- * class for resolving system properties and a set of init parameters.
- *
- * @author Vaadin Ltd
- * @since 7.0.0
- */
-public class DefaultDeploymentConfiguration implements DeploymentConfiguration {
- private final Properties initParameters;
- private boolean productionMode;
- private boolean xsrfProtectionEnabled;
- private int resourceCacheTime;
- private int heartbeatInterval;
- private boolean idleRootCleanupEnabled;
- private final Class<?> systemPropertyBaseClass;
-
- /**
- * Create a new deployment configuration instance.
- *
- * @param systemPropertyBaseClass
- * the class that should be used as a basis when reading system
- * properties
- * @param initParameters
- * the init parameters that should make up the foundation for
- * this configuration
- */
- public DefaultDeploymentConfiguration(Class<?> systemPropertyBaseClass,
- Properties initParameters) {
- this.initParameters = initParameters;
- this.systemPropertyBaseClass = systemPropertyBaseClass;
-
- checkProductionMode();
- checkXsrfProtection();
- checkResourceCacheTime();
- checkHeartbeatInterval();
- checkIdleUICleanup();
- }
-
- @Override
- public String getApplicationOrSystemProperty(String propertyName,
- String defaultValue) {
- String val = null;
-
- // Try application properties
- val = getApplicationProperty(propertyName);
- if (val != null) {
- return val;
- }
-
- // Try system properties
- val = getSystemProperty(propertyName);
- if (val != null) {
- return val;
- }
-
- return defaultValue;
- }
-
- /**
- * Gets an system property value.
- *
- * @param parameterName
- * the Name or the parameter.
- * @return String value or null if not found
- */
- protected String getSystemProperty(String parameterName) {
- String val = null;
-
- String pkgName;
- final Package pkg = systemPropertyBaseClass.getPackage();
- if (pkg != null) {
- pkgName = pkg.getName();
- } else {
- final String className = systemPropertyBaseClass.getName();
- pkgName = new String(className.toCharArray(), 0,
- className.lastIndexOf('.'));
- }
- val = System.getProperty(pkgName + "." + parameterName);
- if (val != null) {
- return val;
- }
-
- // Try lowercased system properties
- val = System.getProperty(pkgName + "." + parameterName.toLowerCase());
- return val;
- }
-
- /**
- * Gets an application property value.
- *
- * @param parameterName
- * the Name or the parameter.
- * @return String value or null if not found
- */
- public String getApplicationProperty(String parameterName) {
-
- String val = initParameters.getProperty(parameterName);
- if (val != null) {
- return val;
- }
-
- // Try lower case application properties for backward compatibility with
- // 3.0.2 and earlier
- val = initParameters.getProperty(parameterName.toLowerCase());
-
- return val;
- }
-
- /**
- * {@inheritDoc}
- *
- * The default is false.
- */
- @Override
- public boolean isProductionMode() {
- return productionMode;
- }
-
- /**
- * {@inheritDoc}
- * <p>
- * The default is true.
- */
- @Override
- public boolean isXsrfProtectionEnabled() {
- return xsrfProtectionEnabled;
- }
-
- /**
- * {@inheritDoc}
- * <p>
- * The default interval is 3600 seconds (1 hour).
- */
- @Override
- public int getResourceCacheTime() {
- return resourceCacheTime;
- }
-
- /**
- * {@inheritDoc}
- * <p>
- * The default interval is 300 seconds (5 minutes).
- */
- @Override
- public int getHeartbeatInterval() {
- return heartbeatInterval;
- }
-
- @Override
- public boolean isIdleUICleanupEnabled() {
- return idleRootCleanupEnabled;
- }
-
- /**
- * Log a warning if Vaadin is not running in production mode.
- */
- private void checkProductionMode() {
- productionMode = getApplicationOrSystemProperty(
- Constants.SERVLET_PARAMETER_PRODUCTION_MODE, "false").equals(
- "true");
- if (!productionMode) {
- getLogger().warning(Constants.NOT_PRODUCTION_MODE_INFO);
- }
- }
-
- /**
- * Log a warning if cross-site request forgery protection is disabled.
- */
- private void checkXsrfProtection() {
- xsrfProtectionEnabled = !getApplicationOrSystemProperty(
- Constants.SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION, "false")
- .equals("true");
- if (!xsrfProtectionEnabled) {
- getLogger().warning(Constants.WARNING_XSRF_PROTECTION_DISABLED);
- }
- }
-
- /**
- * Log a warning if resource cache time is set but is not an integer.
- */
- private void checkResourceCacheTime() {
- try {
- resourceCacheTime = Integer
- .parseInt(getApplicationOrSystemProperty(
- Constants.SERVLET_PARAMETER_RESOURCE_CACHE_TIME,
- "3600"));
- } catch (NumberFormatException e) {
- getLogger().warning(
- Constants.WARNING_RESOURCE_CACHING_TIME_NOT_NUMERIC);
- resourceCacheTime = 3600;
- }
- }
-
- private void checkHeartbeatInterval() {
- try {
- heartbeatInterval = Integer
- .parseInt(getApplicationOrSystemProperty(
- Constants.SERVLET_PARAMETER_HEARTBEAT_INTERVAL,
- "300"));
- } catch (NumberFormatException e) {
- getLogger().warning(
- Constants.WARNING_HEARTBEAT_INTERVAL_NOT_NUMERIC);
- heartbeatInterval = 300;
- }
- }
-
- private void checkIdleUICleanup() {
- idleRootCleanupEnabled = getApplicationOrSystemProperty(
- Constants.SERVLET_PARAMETER_CLOSE_IDLE_UIS, "false").equals(
- "true");
- }
-
- private Logger getLogger() {
- return Logger.getLogger(getClass().getName());
- }
-
- @Override
- public Properties getInitParameters() {
- return initParameters;
- }
-
-}
+++ /dev/null
-/*
- * Copyright 2011 Vaadin Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-
-package com.vaadin;
-
-import java.net.URL;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Map.Entry;
-
-import com.vaadin.server.DefaultErrorListener;
-import com.vaadin.server.Terminal.ErrorEvent;
-import com.vaadin.server.Terminal.ErrorListener;
-import com.vaadin.server.VaadinServiceSession;
-import com.vaadin.ui.LegacyWindow;
-import com.vaadin.ui.UI;
-
-/**
- * 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.
- *
- * @deprecated This class is only intended to ease migration and should not be
- * used for new projects.
- *
- * @since 7.0
- */
-@Deprecated
-public abstract class LegacyApplication implements ErrorListener {
- private LegacyWindow mainWindow;
- private String theme;
-
- private Map<String, LegacyWindow> legacyUINames = new HashMap<String, LegacyWindow>();
-
- private boolean isRunning = true;
-
- /**
- * URL where the user is redirected to on application close, or null if
- * application is just closed without redirection.
- */
- private String logoutURL = null;
- private URL url;
-
- /**
- * Sets the main window of this application. Setting window as a main window
- * of this application also adds the window to this application.
- *
- * @param mainWindow
- * the UI to set as the default window
- */
- public void setMainWindow(LegacyWindow mainWindow) {
- if (this.mainWindow != null) {
- throw new IllegalStateException("mainWindow has already been set");
- }
- if (mainWindow.getSession() != null) {
- throw new IllegalStateException(
- "mainWindow is attached to another application");
- }
- if (UI.getCurrent() == null) {
- // Assume setting a main window from Application.init if there's
- // no current UI -> set the main window as the current UI
- UI.setCurrent(mainWindow);
- }
- addWindow(mainWindow);
- this.mainWindow = mainWindow;
- }
-
- public void doInit(URL url) {
- this.url = url;
- VaadinServiceSession.getCurrent().setErrorHandler(this);
- init();
- }
-
- protected abstract void init();
-
- /**
- * Gets the mainWindow of the application.
- *
- * <p>
- * The main window is the window attached to the application URL (
- * {@link #getURL()}) and thus which is show by default to the user.
- * </p>
- * <p>
- * Note that each application must have at least one main window.
- * </p>
- *
- * @return the UI used as the default window
- */
- public LegacyWindow getMainWindow() {
- return mainWindow;
- }
-
- /**
- * Sets the application's theme.
- * <p>
- * Note that this theme can be overridden for a specific UI with
- * {@link VaadinServiceSession#getThemeForUI(UI)}. Setting theme to be
- * <code>null</code> selects the default theme. For the available theme
- * names, see the contents of the VAADIN/themes directory.
- * </p>
- *
- * @param theme
- * the new theme for this application.
- */
- public void setTheme(String theme) {
- this.theme = theme;
- }
-
- /**
- * Gets the application's theme. The application's theme is the default
- * theme used by all the uIs for which a theme is not explicitly defined. If
- * the application theme is not explicitly set, <code>null</code> is
- * returned.
- *
- * @return the name of the application's theme.
- */
- public String getTheme() {
- return theme;
- }
-
- /**
- * <p>
- * Gets a UI by name. Returns <code>null</code> if the application is not
- * running or it does not contain a window corresponding to the name.
- * </p>
- *
- * @param name
- * the name of the requested window
- * @return a UI corresponding to the name, or <code>null</code> to use the
- * default window
- */
- public LegacyWindow getWindow(String name) {
- return legacyUINames.get(name);
- }
-
- /**
- * Counter to get unique names for windows with no explicit name
- */
- private int namelessUIIndex = 0;
-
- /**
- * Adds a new browser level window to this application. Please note that UI
- * doesn't have a name that is used in the URL - to add a named window you
- * should instead use {@link #addWindow(UI, String)}
- *
- * @param uI
- * the UI window to add to the application
- * @return returns the name that has been assigned to the window
- *
- * @see #addWindow(UI, String)
- */
- public void addWindow(LegacyWindow uI) {
- if (uI.getName() == null) {
- String name = Integer.toString(namelessUIIndex++);
- uI.setName(name);
- }
-
- uI.setApplication(this);
-
- legacyUINames.put(uI.getName(), uI);
- uI.setSession(VaadinServiceSession.getCurrent());
- }
-
- /**
- * Removes the specified window from the application. This also removes all
- * name mappings for the window (see {@link #addWindow(UI, String) and
- * #getWindowName(UI)}.
- *
- * <p>
- * Note that removing window from the application does not close the browser
- * window - the window is only removed from the server-side.
- * </p>
- *
- * @param uI
- * the UI to remove
- */
- public void removeWindow(LegacyWindow uI) {
- for (Entry<String, LegacyWindow> entry : legacyUINames.entrySet()) {
- if (entry.getValue() == uI) {
- legacyUINames.remove(entry.getKey());
- }
- }
- }
-
- /**
- * Gets the set of windows contained by the application.
- *
- * <p>
- * Note that the returned set of windows can not be modified.
- * </p>
- *
- * @return the unmodifiable collection of windows.
- */
- public Collection<LegacyWindow> getWindows() {
- return Collections.unmodifiableCollection(legacyUINames.values());
- }
-
- @Override
- public void terminalError(ErrorEvent event) {
- DefaultErrorListener.doDefault(event);
- }
-
- public VaadinServiceSession getContext() {
- return VaadinServiceSession.getCurrent();
- }
-
- public void close() {
- isRunning = false;
- Collection<LegacyWindow> windows = getWindows();
- for (LegacyWindow legacyWindow : windows) {
- String logoutUrl = getLogoutURL();
- if (logoutUrl == null) {
- URL url = getURL();
- if (url != null) {
- logoutUrl = url.toString();
- }
- }
- if (logoutUrl != null) {
- legacyWindow.getPage().setLocation(logoutUrl);
- }
- legacyWindow.getSession().cleanupUI(legacyWindow);
- }
- }
-
- public boolean isRunning() {
- return isRunning;
- }
-
- public URL getURL() {
- return url;
- }
-
- /**
- * Returns the URL user is redirected to on application close. If the URL is
- * <code>null</code>, the application is closed normally as defined by the
- * application running environment.
- * <p>
- * Desktop application just closes the application window and
- * web-application redirects the browser to application main URL.
- * </p>
- *
- * @return the URL.
- *
- * @deprecated might be refactored or removed before 7.0.0
- */
- @Deprecated
- public String getLogoutURL() {
- return logoutURL;
- }
-
- /**
- * Sets the URL user is redirected to on application close. If the URL is
- * <code>null</code>, 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.
- *
- * @param logoutURL
- * the logoutURL to set.
- *
- * @deprecated might be refactored or removed before 7.0.0
- */
- @Deprecated
- public void setLogoutURL(String logoutURL) {
- this.logoutURL = logoutURL;
- }
-}
\ No newline at end of file
--- /dev/null
+/*
+ * Copyright 2011 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.vaadin.server;
+
+import java.util.Properties;
+import java.util.logging.Logger;
+
+
+/**
+ * The default implementation of {@link DeploymentConfiguration} based on a base
+ * class for resolving system properties and a set of init parameters.
+ *
+ * @author Vaadin Ltd
+ * @since 7.0.0
+ */
+public class DefaultDeploymentConfiguration implements DeploymentConfiguration {
+ private final Properties initParameters;
+ private boolean productionMode;
+ private boolean xsrfProtectionEnabled;
+ private int resourceCacheTime;
+ private int heartbeatInterval;
+ private boolean idleRootCleanupEnabled;
+ private final Class<?> systemPropertyBaseClass;
+
+ /**
+ * Create a new deployment configuration instance.
+ *
+ * @param systemPropertyBaseClass
+ * the class that should be used as a basis when reading system
+ * properties
+ * @param initParameters
+ * the init parameters that should make up the foundation for
+ * this configuration
+ */
+ public DefaultDeploymentConfiguration(Class<?> systemPropertyBaseClass,
+ Properties initParameters) {
+ this.initParameters = initParameters;
+ this.systemPropertyBaseClass = systemPropertyBaseClass;
+
+ checkProductionMode();
+ checkXsrfProtection();
+ checkResourceCacheTime();
+ checkHeartbeatInterval();
+ checkIdleUICleanup();
+ }
+
+ @Override
+ public String getApplicationOrSystemProperty(String propertyName,
+ String defaultValue) {
+ String val = null;
+
+ // Try application properties
+ val = getApplicationProperty(propertyName);
+ if (val != null) {
+ return val;
+ }
+
+ // Try system properties
+ val = getSystemProperty(propertyName);
+ if (val != null) {
+ return val;
+ }
+
+ return defaultValue;
+ }
+
+ /**
+ * Gets an system property value.
+ *
+ * @param parameterName
+ * the Name or the parameter.
+ * @return String value or null if not found
+ */
+ protected String getSystemProperty(String parameterName) {
+ String val = null;
+
+ String pkgName;
+ final Package pkg = systemPropertyBaseClass.getPackage();
+ if (pkg != null) {
+ pkgName = pkg.getName();
+ } else {
+ final String className = systemPropertyBaseClass.getName();
+ pkgName = new String(className.toCharArray(), 0,
+ className.lastIndexOf('.'));
+ }
+ val = System.getProperty(pkgName + "." + parameterName);
+ if (val != null) {
+ return val;
+ }
+
+ // Try lowercased system properties
+ val = System.getProperty(pkgName + "." + parameterName.toLowerCase());
+ return val;
+ }
+
+ /**
+ * Gets an application property value.
+ *
+ * @param parameterName
+ * the Name or the parameter.
+ * @return String value or null if not found
+ */
+ public String getApplicationProperty(String parameterName) {
+
+ String val = initParameters.getProperty(parameterName);
+ if (val != null) {
+ return val;
+ }
+
+ // Try lower case application properties for backward compatibility with
+ // 3.0.2 and earlier
+ val = initParameters.getProperty(parameterName.toLowerCase());
+
+ return val;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * The default is false.
+ */
+ @Override
+ public boolean isProductionMode() {
+ return productionMode;
+ }
+
+ /**
+ * {@inheritDoc}
+ * <p>
+ * The default is true.
+ */
+ @Override
+ public boolean isXsrfProtectionEnabled() {
+ return xsrfProtectionEnabled;
+ }
+
+ /**
+ * {@inheritDoc}
+ * <p>
+ * The default interval is 3600 seconds (1 hour).
+ */
+ @Override
+ public int getResourceCacheTime() {
+ return resourceCacheTime;
+ }
+
+ /**
+ * {@inheritDoc}
+ * <p>
+ * The default interval is 300 seconds (5 minutes).
+ */
+ @Override
+ public int getHeartbeatInterval() {
+ return heartbeatInterval;
+ }
+
+ @Override
+ public boolean isIdleUICleanupEnabled() {
+ return idleRootCleanupEnabled;
+ }
+
+ /**
+ * Log a warning if Vaadin is not running in production mode.
+ */
+ private void checkProductionMode() {
+ productionMode = getApplicationOrSystemProperty(
+ Constants.SERVLET_PARAMETER_PRODUCTION_MODE, "false").equals(
+ "true");
+ if (!productionMode) {
+ getLogger().warning(Constants.NOT_PRODUCTION_MODE_INFO);
+ }
+ }
+
+ /**
+ * Log a warning if cross-site request forgery protection is disabled.
+ */
+ private void checkXsrfProtection() {
+ xsrfProtectionEnabled = !getApplicationOrSystemProperty(
+ Constants.SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION, "false")
+ .equals("true");
+ if (!xsrfProtectionEnabled) {
+ getLogger().warning(Constants.WARNING_XSRF_PROTECTION_DISABLED);
+ }
+ }
+
+ /**
+ * Log a warning if resource cache time is set but is not an integer.
+ */
+ private void checkResourceCacheTime() {
+ try {
+ resourceCacheTime = Integer
+ .parseInt(getApplicationOrSystemProperty(
+ Constants.SERVLET_PARAMETER_RESOURCE_CACHE_TIME,
+ "3600"));
+ } catch (NumberFormatException e) {
+ getLogger().warning(
+ Constants.WARNING_RESOURCE_CACHING_TIME_NOT_NUMERIC);
+ resourceCacheTime = 3600;
+ }
+ }
+
+ private void checkHeartbeatInterval() {
+ try {
+ heartbeatInterval = Integer
+ .parseInt(getApplicationOrSystemProperty(
+ Constants.SERVLET_PARAMETER_HEARTBEAT_INTERVAL,
+ "300"));
+ } catch (NumberFormatException e) {
+ getLogger().warning(
+ Constants.WARNING_HEARTBEAT_INTERVAL_NOT_NUMERIC);
+ heartbeatInterval = 300;
+ }
+ }
+
+ private void checkIdleUICleanup() {
+ idleRootCleanupEnabled = getApplicationOrSystemProperty(
+ Constants.SERVLET_PARAMETER_CLOSE_IDLE_UIS, "false").equals(
+ "true");
+ }
+
+ private Logger getLogger() {
+ return Logger.getLogger(getClass().getName());
+ }
+
+ @Override
+ public Properties getInitParameters() {
+ return initParameters;
+ }
+
+}
--- /dev/null
+/*
+ * Copyright 2011 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.vaadin.server;
+
+import java.net.URL;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+
+import com.vaadin.server.Terminal.ErrorEvent;
+import com.vaadin.server.Terminal.ErrorListener;
+import com.vaadin.ui.LegacyWindow;
+import com.vaadin.ui.UI;
+
+/**
+ * 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.
+ *
+ * @deprecated This class is only intended to ease migration and should not be
+ * used for new projects.
+ *
+ * @since 7.0
+ */
+@Deprecated
+public abstract class LegacyApplication implements ErrorListener {
+ private LegacyWindow mainWindow;
+ private String theme;
+
+ private Map<String, LegacyWindow> legacyUINames = new HashMap<String, LegacyWindow>();
+
+ private boolean isRunning = true;
+
+ /**
+ * URL where the user is redirected to on application close, or null if
+ * application is just closed without redirection.
+ */
+ private String logoutURL = null;
+ private URL url;
+
+ /**
+ * Sets the main window of this application. Setting window as a main window
+ * of this application also adds the window to this application.
+ *
+ * @param mainWindow
+ * the UI to set as the default window
+ */
+ public void setMainWindow(LegacyWindow mainWindow) {
+ if (this.mainWindow != null) {
+ throw new IllegalStateException("mainWindow has already been set");
+ }
+ if (mainWindow.getSession() != null) {
+ throw new IllegalStateException(
+ "mainWindow is attached to another application");
+ }
+ if (UI.getCurrent() == null) {
+ // Assume setting a main window from Application.init if there's
+ // no current UI -> set the main window as the current UI
+ UI.setCurrent(mainWindow);
+ }
+ addWindow(mainWindow);
+ this.mainWindow = mainWindow;
+ }
+
+ public void doInit(URL url) {
+ this.url = url;
+ VaadinServiceSession.getCurrent().setErrorHandler(this);
+ init();
+ }
+
+ protected abstract void init();
+
+ /**
+ * Gets the mainWindow of the application.
+ *
+ * <p>
+ * The main window is the window attached to the application URL (
+ * {@link #getURL()}) and thus which is show by default to the user.
+ * </p>
+ * <p>
+ * Note that each application must have at least one main window.
+ * </p>
+ *
+ * @return the UI used as the default window
+ */
+ public LegacyWindow getMainWindow() {
+ return mainWindow;
+ }
+
+ /**
+ * Sets the application's theme.
+ * <p>
+ * Note that this theme can be overridden for a specific UI with
+ * {@link VaadinServiceSession#getThemeForUI(UI)}. Setting theme to be
+ * <code>null</code> selects the default theme. For the available theme
+ * names, see the contents of the VAADIN/themes directory.
+ * </p>
+ *
+ * @param theme
+ * the new theme for this application.
+ */
+ public void setTheme(String theme) {
+ this.theme = theme;
+ }
+
+ /**
+ * Gets the application's theme. The application's theme is the default
+ * theme used by all the uIs for which a theme is not explicitly defined. If
+ * the application theme is not explicitly set, <code>null</code> is
+ * returned.
+ *
+ * @return the name of the application's theme.
+ */
+ public String getTheme() {
+ return theme;
+ }
+
+ /**
+ * <p>
+ * Gets a UI by name. Returns <code>null</code> if the application is not
+ * running or it does not contain a window corresponding to the name.
+ * </p>
+ *
+ * @param name
+ * the name of the requested window
+ * @return a UI corresponding to the name, or <code>null</code> to use the
+ * default window
+ */
+ public LegacyWindow getWindow(String name) {
+ return legacyUINames.get(name);
+ }
+
+ /**
+ * Counter to get unique names for windows with no explicit name
+ */
+ private int namelessUIIndex = 0;
+
+ /**
+ * Adds a new browser level window to this application. Please note that UI
+ * doesn't have a name that is used in the URL - to add a named window you
+ * should instead use {@link #addWindow(UI, String)}
+ *
+ * @param uI
+ * the UI window to add to the application
+ * @return returns the name that has been assigned to the window
+ *
+ * @see #addWindow(UI, String)
+ */
+ public void addWindow(LegacyWindow uI) {
+ if (uI.getName() == null) {
+ String name = Integer.toString(namelessUIIndex++);
+ uI.setName(name);
+ }
+
+ uI.setApplication(this);
+
+ legacyUINames.put(uI.getName(), uI);
+ uI.setSession(VaadinServiceSession.getCurrent());
+ }
+
+ /**
+ * Removes the specified window from the application. This also removes all
+ * name mappings for the window (see {@link #addWindow(UI, String) and
+ * #getWindowName(UI)}.
+ *
+ * <p>
+ * Note that removing window from the application does not close the browser
+ * window - the window is only removed from the server-side.
+ * </p>
+ *
+ * @param uI
+ * the UI to remove
+ */
+ public void removeWindow(LegacyWindow uI) {
+ for (Entry<String, LegacyWindow> entry : legacyUINames.entrySet()) {
+ if (entry.getValue() == uI) {
+ legacyUINames.remove(entry.getKey());
+ }
+ }
+ }
+
+ /**
+ * Gets the set of windows contained by the application.
+ *
+ * <p>
+ * Note that the returned set of windows can not be modified.
+ * </p>
+ *
+ * @return the unmodifiable collection of windows.
+ */
+ public Collection<LegacyWindow> getWindows() {
+ return Collections.unmodifiableCollection(legacyUINames.values());
+ }
+
+ @Override
+ public void terminalError(ErrorEvent event) {
+ DefaultErrorListener.doDefault(event);
+ }
+
+ public VaadinServiceSession getContext() {
+ return VaadinServiceSession.getCurrent();
+ }
+
+ public void close() {
+ isRunning = false;
+ Collection<LegacyWindow> windows = getWindows();
+ for (LegacyWindow legacyWindow : windows) {
+ String logoutUrl = getLogoutURL();
+ if (logoutUrl == null) {
+ URL url = getURL();
+ if (url != null) {
+ logoutUrl = url.toString();
+ }
+ }
+ if (logoutUrl != null) {
+ legacyWindow.getPage().setLocation(logoutUrl);
+ }
+ legacyWindow.getSession().cleanupUI(legacyWindow);
+ }
+ }
+
+ public boolean isRunning() {
+ return isRunning;
+ }
+
+ public URL getURL() {
+ return url;
+ }
+
+ /**
+ * Returns the URL user is redirected to on application close. If the URL is
+ * <code>null</code>, the application is closed normally as defined by the
+ * application running environment.
+ * <p>
+ * Desktop application just closes the application window and
+ * web-application redirects the browser to application main URL.
+ * </p>
+ *
+ * @return the URL.
+ *
+ * @deprecated might be refactored or removed before 7.0.0
+ */
+ @Deprecated
+ public String getLogoutURL() {
+ return logoutURL;
+ }
+
+ /**
+ * Sets the URL user is redirected to on application close. If the URL is
+ * <code>null</code>, 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.
+ *
+ * @param logoutURL
+ * the logoutURL to set.
+ *
+ * @deprecated might be refactored or removed before 7.0.0
+ */
+ @Deprecated
+ public void setLogoutURL(String logoutURL) {
+ this.logoutURL = logoutURL;
+ }
+}
\ No newline at end of file
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import com.vaadin.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.UI;
import javax.portlet.PortletException;
import javax.portlet.PortletRequest;
-import com.vaadin.LegacyApplication;
public class LegacyVaadinPortlet extends VaadinPortlet {
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
-import com.vaadin.LegacyApplication;
public class LegacyVaadinServlet extends VaadinServlet {
import java.util.Locale;
import java.util.Properties;
-import com.vaadin.LegacyApplication;
import com.vaadin.shared.ApplicationConstants;
import com.vaadin.ui.Component;
import com.vaadin.ui.UI;
import com.liferay.portal.kernel.util.PortalClassInvoker;
import com.liferay.portal.kernel.util.PropsUtil;
-import com.vaadin.DefaultDeploymentConfiguration;
import com.vaadin.server.AbstractCommunicationManager.Callback;
import com.vaadin.ui.UI;
import com.vaadin.util.CurrentInstance;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
-import com.vaadin.LegacyApplication;
import com.vaadin.annotations.PreserveOnRefresh;
import com.vaadin.event.EventRouter;
import com.vaadin.shared.ui.ui.UIConstants;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;
-import com.vaadin.LegacyApplication;
import com.vaadin.annotations.PreserveOnRefresh;
import com.vaadin.data.util.converter.Converter;
import com.vaadin.data.util.converter.ConverterFactory;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import com.vaadin.DefaultDeploymentConfiguration;
import com.vaadin.sass.ScssStylesheet;
import com.vaadin.server.AbstractCommunicationManager.Callback;
import com.vaadin.shared.ApplicationConstants;
import java.net.MalformedURLException;
import java.net.URL;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Page;
import com.vaadin.server.Resource;
import com.vaadin.server.VaadinRequest;
/**
* Helper class to emulate the main window from Vaadin 6 using UIs. This
* class should be used in the same way as Window used as a browser level
- * window in Vaadin 6 with {@link com.vaadin.LegacyApplication}
+ * window in Vaadin 6 with {@link com.vaadin.server.LegacyApplication}
*/
@Deprecated
public class LegacyWindow extends UI {
import junit.framework.TestCase;
-import com.vaadin.DefaultDeploymentConfiguration;
public class TestAbstractApplicationServletStaticFilesLocation extends TestCase {
import org.easymock.EasyMock;
-import com.vaadin.DefaultDeploymentConfiguration;
+import com.vaadin.server.DefaultDeploymentConfiguration;
import com.vaadin.server.DefaultUIProvider;
import com.vaadin.server.DeploymentConfiguration;
import com.vaadin.server.UIClassSelectionEvent;
import org.junit.Test;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.VaadinServiceSession;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.UI;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.LegacyVaadinServlet;
import com.vaadin.server.ServiceException;
import com.vaadin.server.SessionInitEvent;
import java.util.Map;
import java.util.Set;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
import com.vaadin.data.util.DefaultItemSorter;
import com.vaadin.data.util.HierarchicalContainer;
import com.vaadin.event.ItemClickEvent;
import com.vaadin.event.ItemClickEvent.ItemClickListener;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Sizeable;
import com.vaadin.shared.MouseEventDetails.MouseButton;
import com.vaadin.shared.ui.label.ContentMode;
* @since 4.0.0
*
*/
-public class CustomLayoutDemo extends com.vaadin.LegacyApplication implements
+public class CustomLayoutDemo extends com.vaadin.server.LegacyApplication implements
Listener {
private CustomLayout mainLayout = null;
* @since 4.0.0
*
*/
-public class LayoutDemo extends com.vaadin.LegacyApplication {
+public class LayoutDemo extends com.vaadin.server.LegacyApplication {
/**
* Initialize Application. Demo components are added to main window.
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Select;
-public class ListenerOrder extends com.vaadin.LegacyApplication implements
+public class ListenerOrder extends com.vaadin.server.LegacyApplication implements
Button.ClickListener, PropertySetChangeListener, ItemSetChangeListener,
ValueChangeListener {
* @see com.vaadin.ui.Window
* @see com.vaadin.ui.Label
*/
-public class ModalWindow extends com.vaadin.LegacyApplication implements
+public class ModalWindow extends com.vaadin.server.LegacyApplication implements
ClickListener {
private Window test;
import java.net.MalformedURLException;
import java.net.URL;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
*
* @since 3.1.1
*/
-public class Parameters extends com.vaadin.LegacyApplication implements
+public class Parameters extends com.vaadin.server.LegacyApplication implements
RequestHandler {
private final Label context = new Label();
* @author Vaadin Ltd.
*
*/
-public class RandomLayoutStress extends com.vaadin.LegacyApplication {
+public class RandomLayoutStress extends com.vaadin.server.LegacyApplication {
private final Random seededRandom = new Random(1);
package com.vaadin.tests;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import java.util.Iterator;
import java.util.List;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.util.HierarchicalContainer;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Page;
import com.vaadin.server.Page.FragmentChangedEvent;
import com.vaadin.ui.Component;
* @author Vaadin Ltd.
*
*/
-public class TestBench extends com.vaadin.LegacyApplication implements
+public class TestBench extends com.vaadin.server.LegacyApplication implements
Property.ValueChangeListener {
// Add here packages which are used for finding testable classes
package com.vaadin.tests;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import java.net.MalformedURLException;
import java.net.URL;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import java.lang.management.ManagementFactory;
import java.lang.management.MemoryMXBean;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.StreamResource;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
-public class TestSetVisibleAndCaching extends com.vaadin.LegacyApplication {
+public class TestSetVisibleAndCaching extends com.vaadin.server.LegacyApplication {
Panel panelA = new Panel("Panel A");
Panel panelB = new Panel("Panel B");
import java.util.ArrayList;
import java.util.Iterator;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Container;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.util.IndexedContainer;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.ThemeResource;
import com.vaadin.shared.ui.combobox.FilteringMode;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.VerticalSplitPanel;
-public class TestSplitPanel extends com.vaadin.LegacyApplication {
+public class TestSplitPanel extends com.vaadin.server.LegacyApplication {
VerticalSplitPanel verticalSplit = new VerticalSplitPanel();
* @since 4.0.0
*
*/
-public class TreeFilesystem extends com.vaadin.LegacyApplication implements
+public class TreeFilesystem extends com.vaadin.server.LegacyApplication implements
Tree.ExpandListener {
// Filesystem explorer panel and it's components
* @since 4.0.0
*
*/
-public class TreeFilesystemContainer extends com.vaadin.LegacyApplication
+public class TreeFilesystemContainer extends com.vaadin.server.LegacyApplication
implements Listener {
// Filesystem explorer panel and it's components
import com.vaadin.ui.Panel;
import com.vaadin.ui.Select;
-public class UsingObjectsInSelect extends com.vaadin.LegacyApplication
+public class UsingObjectsInSelect extends com.vaadin.server.LegacyApplication
implements ValueChangeListener {
private final Select select = new Select();
package com.vaadin.tests.appengine;
import com.google.apphosting.api.DeadlineExceededException;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.server.ClassResource;
import com.vaadin.server.DownloadStream;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Embedded;
package com.vaadin.tests.components;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.VaadinServiceSession;
import com.vaadin.server.WebBrowser;
package com.vaadin.tests.components.combobox;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Container;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.data.util.IndexedContainer;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.combobox.FilteringMode;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.Label;
package com.vaadin.tests.components.form;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.Form;
package com.vaadin.tests.components.loginform;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.LoginForm;
import com.vaadin.ui.LoginForm.LoginEvent;
package com.vaadin.tests.components.orderedlayout;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.ThemeResource;
import com.vaadin.ui.Button;
import com.vaadin.ui.Embedded;
package com.vaadin.tests.components.table;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Container;
import com.vaadin.data.util.IndexedContainer;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.ProgressIndicator;
package com.vaadin.tests.components.textfield;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Component;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
import java.sql.SQLException;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Container.ItemSetChangeEvent;
import com.vaadin.data.Container.ItemSetChangeListener;
import com.vaadin.data.Item;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Form;
package com.vaadin.tests.containers.sqlcontainer;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.combobox.FilteringMode;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.LegacyWindow;
import java.sql.SQLException;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.util.sqlcontainer.SQLContainer;
import com.vaadin.data.util.sqlcontainer.connection.JDBCConnectionPool;
import com.vaadin.data.util.sqlcontainer.connection.SimpleJDBCConnectionPool;
import com.vaadin.data.util.sqlcontainer.query.TableQuery;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
package com.vaadin.tests.integration;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.server.ClassResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Resource;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import javax.portlet.ResourceResponse;
import javax.portlet.WindowState;
-import com.vaadin.LegacyApplication;
import com.vaadin.annotations.StyleSheet;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.VaadinPortletSession;
import com.vaadin.server.VaadinPortletSession.PortletListener;
import com.vaadin.shared.ui.label.ContentMode;
import java.util.Iterator;
import java.util.Locale;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.event.Action;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Page;
import com.vaadin.server.Resource;
import com.vaadin.server.ThemeResource;
package com.vaadin.tests.integration;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
package com.vaadin.tests.layouts;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
import java.util.Date;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Resource;
import com.vaadin.server.SystemError;
import com.vaadin.server.ThemeResource;
package com.vaadin.tests.layouts.layouttester;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Resource;
import com.vaadin.server.SystemError;
import com.vaadin.server.ThemeResource;
package com.vaadin.tests.layouts.layouttester;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Resource;
import com.vaadin.server.SystemError;
import com.vaadin.server.ThemeResource;
import com.vaadin.ui.NativeButton;
@SuppressWarnings("serial")
-public class ButtonsTest extends com.vaadin.LegacyApplication {
+public class ButtonsTest extends com.vaadin.server.LegacyApplication {
final LegacyWindow main = new LegacyWindow("Button states & themes");
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.Alignment;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.Reindeer;
-public class Ticket1245 extends com.vaadin.LegacyApplication {
+public class Ticket1245 extends com.vaadin.server.LegacyApplication {
TextField f = new TextField();
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1365 extends com.vaadin.LegacyApplication implements Handler {
+public class Ticket1365 extends com.vaadin.server.LegacyApplication implements Handler {
TextField f = new TextField();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.LegacyWindow;
import java.util.Date;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.util.ObjectProperty;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.InlineDateField;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
-public class Ticket1572 extends com.vaadin.LegacyApplication {
+public class Ticket1572 extends com.vaadin.server.LegacyApplication {
private Label state;
private GridLayout gl;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.ProgressIndicator;
-public class Ticket1581 extends com.vaadin.LegacyApplication {
+public class Ticket1581 extends com.vaadin.server.LegacyApplication {
private Label time;
private ProgressIndicator poller;
import javax.imageio.ImageIO;
-import com.vaadin.LegacyApplication;
import com.vaadin.server.DownloadStream;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinResponse;
import java.util.ArrayList;
import java.util.List;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.ThemeResource;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.MenuBar;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Container;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1663 extends com.vaadin.LegacyApplication {
+public class Ticket1663 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
-public class Ticket1673 extends com.vaadin.LegacyApplication {
+public class Ticket1673 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1710 extends com.vaadin.LegacyApplication {
+public class Ticket1710 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.server.ClassResource;
import com.vaadin.server.DownloadStream;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Resource;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.Label;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.LegacyWindow;
-public class Ticket1767 extends com.vaadin.LegacyApplication {
+public class Ticket1767 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1772 extends com.vaadin.LegacyApplication {
+public class Ticket1772 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
-public class Ticket1775 extends com.vaadin.LegacyApplication {
+public class Ticket1775 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
import com.vaadin.ui.Select;
import com.vaadin.ui.Window;
-public class Ticket1804 extends com.vaadin.LegacyApplication {
+public class Ticket1804 extends com.vaadin.server.LegacyApplication {
LinkedList<Select> listOfAllFields = new LinkedList<Select>();
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1805 extends com.vaadin.LegacyApplication {
+public class Ticket1805 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1806 extends com.vaadin.LegacyApplication {
+public class Ticket1806 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
import com.vaadin.ui.TextField;
import com.vaadin.ui.Window;
-public class Ticket1811 extends com.vaadin.LegacyApplication {
+public class Ticket1811 extends com.vaadin.server.LegacyApplication {
LinkedList<TextField> listOfAllFields = new LinkedList<TextField>();
import com.vaadin.ui.Select;
import com.vaadin.ui.Window;
-public class Ticket1819 extends com.vaadin.LegacyApplication {
+public class Ticket1819 extends com.vaadin.server.LegacyApplication {
LinkedList<Select> listOfAllFields = new LinkedList<Select>();
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
-public class Ticket1834PanelScrolling extends com.vaadin.LegacyApplication {
+public class Ticket1834PanelScrolling extends com.vaadin.server.LegacyApplication {
private static final int ROWS = 50;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.event.Action;
import com.vaadin.event.Action.Handler;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
-public class Ticket1868 extends com.vaadin.LegacyApplication {
+public class Ticket1868 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1869 extends com.vaadin.LegacyApplication {
+public class Ticket1869 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
import java.util.Iterator;
import java.util.Random;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.util.BeanItem;
import com.vaadin.data.validator.StringLengthValidator;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Resource;
import com.vaadin.server.ThemeResource;
import com.vaadin.server.UserError;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Validator;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.HorizontalLayout;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.UserError;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
-public class Ticket1919 extends com.vaadin.LegacyApplication {
+public class Ticket1919 extends com.vaadin.server.LegacyApplication {
private GridLayout lo;
private boolean on = true;
import java.io.IOException;
import java.util.Map;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinResponse;
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1923 extends com.vaadin.LegacyApplication {
+public class Ticket1923 extends com.vaadin.server.LegacyApplication {
private static final int ROWS = 50;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
public class Ticket1925 extends LegacyApplication {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.ThemeResource;
import com.vaadin.server.UserError;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1969 extends com.vaadin.LegacyApplication {
+public class Ticket1969 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
import java.util.Iterator;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1973 extends com.vaadin.LegacyApplication {
+public class Ticket1973 extends com.vaadin.server.LegacyApplication {
LegacyWindow main = new LegacyWindow();
Table table = new Table();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.LegacyWindow;
import java.io.File;
import java.io.FileInputStream;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.VaadinService;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import java.util.ArrayList;
import java.util.List;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.data.util.IndexedContainer;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Sizeable;
import com.vaadin.ui.Button;
import com.vaadin.ui.CheckBox;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.DateField;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket1991 extends com.vaadin.LegacyApplication {
+public class Ticket1991 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Container;
import com.vaadin.data.Container.Filterable;
import com.vaadin.data.Item;
import com.vaadin.data.util.filter.SimpleStringFilter;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Validator;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.data.validator.CompositeValidator;
import com.vaadin.data.validator.CompositeValidator.CombinationMode;
import com.vaadin.data.validator.IntegerValidator;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.util.MethodProperty;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
-public class Ticket2009 extends com.vaadin.LegacyApplication {
+public class Ticket2009 extends com.vaadin.server.LegacyApplication {
TextField f = new TextField();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Select;
import java.util.UUID;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.LegacyWindow;
-public class Ticket2023 extends com.vaadin.LegacyApplication implements
+public class Ticket2023 extends com.vaadin.server.LegacyApplication implements
Button.ClickListener {
AbstractComponent c = new Button();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
import java.util.Random;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.UserError;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Component;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2037 extends com.vaadin.LegacyApplication {
+public class Ticket2037 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Notification;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.TextField;
-public class Ticket2040 extends com.vaadin.LegacyApplication {
+public class Ticket2040 extends com.vaadin.server.LegacyApplication {
TextField f = new TextField();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.BorderStyle;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.ThemeResource;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.DateField;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.data.util.HierarchicalContainer;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Component;
import com.vaadin.ui.CustomComponent;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.data.util.HierarchicalContainer;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Sizeable;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Accordion;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.data.util.HierarchicalContainer;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Component;
import com.vaadin.ui.CustomComponent;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TabSheet;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.UserError;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TabSheet;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
import com.vaadin.data.util.HierarchicalContainer;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Component;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.event.ItemClickEvent;
import com.vaadin.event.ItemClickEvent.ItemClickListener;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.HorizontalLayout;
import java.util.Date;
-import com.vaadin.LegacyApplication;
import com.vaadin.server.CustomizedSystemMessages;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.SystemMessages;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Validator;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Notification;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.util.ObjectProperty;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.util.MethodProperty;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
* client.
*
*/
-public class Ticket2126 extends com.vaadin.LegacyApplication {
+public class Ticket2126 extends com.vaadin.server.LegacyApplication {
LegacyWindow main = new LegacyWindow();
Table table = new Table();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.util.ObjectProperty;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.AbstractField;
import com.vaadin.ui.AbstractOrderedLayout;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Validator;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import java.util.Random;
import java.util.Set;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.ThemeResource;
import com.vaadin.server.UserError;
import com.vaadin.ui.Button;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import java.util.List;
import java.util.Map;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
import com.vaadin.data.util.BeanItem;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.AbstractSplitPanel;
import com.vaadin.ui.Accordion;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.HorizontalLayout;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextArea;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Label;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Item;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.data.util.ObjectProperty;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.util.BeanItem;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Form;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.ComboBox;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.FormLayout;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Link;
-public class Ticket2292 extends com.vaadin.LegacyApplication implements
+public class Ticket2292 extends com.vaadin.server.LegacyApplication implements
RequestHandler {
@Override
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Label;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.LegacyWindow;
import java.io.ByteArrayInputStream;
import java.io.IOException;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.HorizontalSplitPanel;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.RichTextArea;
import com.vaadin.ui.Window;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.VerticalLayout;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.GridLayout;
import java.io.ByteArrayInputStream;
import java.io.IOException;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket2341 extends com.vaadin.LegacyApplication {
+public class Ticket2341 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
LegacyWindow main = new LegacyWindow();
import java.util.Random;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Table;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Form;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Select;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.util.IndexedContainer;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Table;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.server.ExternalResource;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.Embedded;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2407 extends com.vaadin.LegacyApplication {
+public class Ticket2407 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.ProgressIndicator;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.event.Action;
import com.vaadin.event.Action.Handler;
import com.vaadin.event.ShortcutAction;
import com.vaadin.event.ShortcutAction.KeyCode;
import com.vaadin.event.ShortcutAction.ModifierKey;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.HorizontalLayout;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Table;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
*/
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.NativeSelect;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import java.util.Random;
import java.util.Set;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Container;
import com.vaadin.data.Validator;
import com.vaadin.data.util.BeanItemContainer;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.Component;
import com.vaadin.ui.DateField;
import java.util.Collection;
import java.util.HashSet;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
import java.util.HashMap;
import java.util.Map;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.Page;
import com.vaadin.server.Page.FragmentChangedEvent;
import com.vaadin.ui.Button;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.event.ShortcutAction.KeyCode;
import com.vaadin.event.ShortcutListener;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Container;
import com.vaadin.data.Item;
import com.vaadin.data.Property;
import com.vaadin.data.util.BeanItem;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import java.io.IOException;
import java.io.ObjectOutputStream;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.Validator;
import com.vaadin.data.util.BeanItem;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.data.validator.IntegerValidator;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.server.ThemeResource;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Alignment;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.data.validator.IntegerValidator;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.LegacyWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;