--- /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 java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import com.vaadin.server.AbstractUIProvider;
+import com.vaadin.server.VaadinSession;
+import com.vaadin.server.Terminal.ErrorEvent;
+import com.vaadin.server.Terminal.ErrorListener;
+import com.vaadin.server.WrappedRequest;
+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 Application extends AbstractUIProvider implements
+ ErrorListener {
+ /**
+ * Ignore initial / and then get everything up to the next /
+ */
+ private static final Pattern WINDOW_NAME_PATTERN = Pattern
+ .compile("^/?([^/]+).*");
+
+ private UI.LegacyWindow mainWindow;
+ private String theme;
+
+ private Map<String, UI.LegacyWindow> legacyUINames = new HashMap<String, UI.LegacyWindow>();
+
+ /**
+ * 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(UI.LegacyWindow mainWindow) {
+ if (this.mainWindow != null) {
+ throw new IllegalStateException("mainWindow has already been set");
+ }
+ if (mainWindow.getSession() == null) {
+ mainWindow.setSession(VaadinSession.getCurrent());
+ } else if (mainWindow.getSession() != VaadinSession.getCurrent()) {
+ 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);
+ }
+ this.mainWindow = mainWindow;
+ }
+
+ public void doInit() {
+ VaadinSession.getCurrent().setErrorHandler(this);
+ init();
+ }
+
+ protected abstract void init();
+
+ @Override
+ public Class<? extends UI> getUIClass(VaadinSession application,
+ WrappedRequest request) {
+ UI uiInstance = getUIInstance(request);
+ if (uiInstance != null) {
+ return uiInstance.getClass();
+ }
+ return null;
+ }
+
+ @Override
+ public UI createInstance(VaadinSession application, Class<? extends UI> type,
+ WrappedRequest request) {
+ return getUIInstance(request);
+ }
+
+ @Override
+ public String getThemeForUI(WrappedRequest request,
+ Class<? extends UI> uiClass) {
+ return theme;
+ }
+
+ @Override
+ public String getPageTitleForUI(WrappedRequest request,
+ Class<? extends UI> uiClass) {
+ UI uiInstance = getUIInstance(request);
+ if (uiInstance != null) {
+ return uiInstance.getCaption();
+ } else {
+ return super.getPageTitleForUI(request, uiClass);
+ }
+ }
+
+ /**
+ * 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 UI.LegacyWindow getMainWindow() {
+ return mainWindow;
+ }
+
+ private UI getUIInstance(WrappedRequest request) {
+ String pathInfo = request.getRequestPathInfo();
+ String name = null;
+ if (pathInfo != null && pathInfo.length() > 0) {
+ Matcher matcher = WINDOW_NAME_PATTERN.matcher(pathInfo);
+ if (matcher.matches()) {
+ // Skip the initial slash
+ name = matcher.group(1);
+ }
+ }
+ UI.LegacyWindow window = getWindow(name);
+ if (window != null) {
+ return window;
+ }
+ return mainWindow;
+ }
+
+ /**
+ * This implementation simulates the way of finding a window for a request
+ * by extracting a window name from the requested path and passes that name
+ * to {@link #getWindow(String)}.
+ * <p>
+ * {@inheritDoc}
+ */
+ @Override
+ public UI getExistingUI(WrappedRequest request) {
+ UI uiInstance = getUIInstance(request);
+ if (uiInstance.getUIId() == -1) {
+ // Not initialized -> Let go through createUIInstance to make it
+ // initialized
+ return null;
+ } else {
+ UI.setCurrent(uiInstance);
+ return uiInstance;
+ }
+ }
+
+ /**
+ * Sets the application's theme.
+ * <p>
+ * Note that this theme can be overridden for a specific UI with
+ * {@link VaadinSession#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 UI.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(UI.LegacyWindow uI) {
+ if (uI.getName() == null) {
+ String name = Integer.toString(namelessUIIndex++);
+ uI.setName(name);
+ }
+
+ legacyUINames.put(uI.getName(), uI);
+ uI.setSession(VaadinSession.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(UI.LegacyWindow uI) {
+ for (Entry<String, UI.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<UI.LegacyWindow> getWindows() {
+ return Collections.unmodifiableCollection(legacyUINames.values());
+ }
+
+ @Override
+ public void terminalError(ErrorEvent event) {
+ VaadinSession.getCurrent().terminalError(event);
+ }
+
+ public VaadinSession getContext() {
+ return VaadinSession.getCurrent();
+ }
+
+ protected void close() {
+ VaadinSession.getCurrent().close();
+ }
+
+ public boolean isRunning() {
+ return VaadinSession.getCurrent().isRunning();
+ }
+
+ public URL getURL() {
+ return VaadinSession.getCurrent().getURL();
+ }
+}
\ 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;
-
-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 java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import com.vaadin.server.AbstractUIProvider;
-import com.vaadin.server.VaadinSession;
-import com.vaadin.server.Terminal.ErrorEvent;
-import com.vaadin.server.Terminal.ErrorListener;
-import com.vaadin.server.WrappedRequest;
-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 extends AbstractUIProvider implements
- ErrorListener {
- /**
- * Ignore initial / and then get everything up to the next /
- */
- private static final Pattern WINDOW_NAME_PATTERN = Pattern
- .compile("^/?([^/]+).*");
-
- private UI.LegacyWindow mainWindow;
- private String theme;
-
- private Map<String, UI.LegacyWindow> legacyUINames = new HashMap<String, UI.LegacyWindow>();
-
- /**
- * 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(UI.LegacyWindow mainWindow) {
- if (this.mainWindow != null) {
- throw new IllegalStateException("mainWindow has already been set");
- }
- if (mainWindow.getSession() == null) {
- mainWindow.setSession(VaadinSession.getCurrent());
- } else if (mainWindow.getSession() != VaadinSession.getCurrent()) {
- 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);
- }
- this.mainWindow = mainWindow;
- }
-
- public void doInit() {
- VaadinSession.getCurrent().setErrorHandler(this);
- init();
- }
-
- protected abstract void init();
-
- @Override
- public Class<? extends UI> getUIClass(VaadinSession application,
- WrappedRequest request) {
- UI uiInstance = getUIInstance(request);
- if (uiInstance != null) {
- return uiInstance.getClass();
- }
- return null;
- }
-
- @Override
- public UI createInstance(VaadinSession application, Class<? extends UI> type,
- WrappedRequest request) {
- return getUIInstance(request);
- }
-
- @Override
- public String getThemeForUI(WrappedRequest request,
- Class<? extends UI> uiClass) {
- return theme;
- }
-
- @Override
- public String getPageTitleForUI(WrappedRequest request,
- Class<? extends UI> uiClass) {
- UI uiInstance = getUIInstance(request);
- if (uiInstance != null) {
- return uiInstance.getCaption();
- } else {
- return super.getPageTitleForUI(request, uiClass);
- }
- }
-
- /**
- * 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 UI.LegacyWindow getMainWindow() {
- return mainWindow;
- }
-
- private UI getUIInstance(WrappedRequest request) {
- String pathInfo = request.getRequestPathInfo();
- String name = null;
- if (pathInfo != null && pathInfo.length() > 0) {
- Matcher matcher = WINDOW_NAME_PATTERN.matcher(pathInfo);
- if (matcher.matches()) {
- // Skip the initial slash
- name = matcher.group(1);
- }
- }
- UI.LegacyWindow window = getWindow(name);
- if (window != null) {
- return window;
- }
- return mainWindow;
- }
-
- /**
- * This implementation simulates the way of finding a window for a request
- * by extracting a window name from the requested path and passes that name
- * to {@link #getWindow(String)}.
- * <p>
- * {@inheritDoc}
- */
- @Override
- public UI getExistingUI(WrappedRequest request) {
- UI uiInstance = getUIInstance(request);
- if (uiInstance.getUIId() == -1) {
- // Not initialized -> Let go through createUIInstance to make it
- // initialized
- return null;
- } else {
- UI.setCurrent(uiInstance);
- return uiInstance;
- }
- }
-
- /**
- * Sets the application's theme.
- * <p>
- * Note that this theme can be overridden for a specific UI with
- * {@link VaadinSession#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 UI.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(UI.LegacyWindow uI) {
- if (uI.getName() == null) {
- String name = Integer.toString(namelessUIIndex++);
- uI.setName(name);
- }
-
- legacyUINames.put(uI.getName(), uI);
- uI.setSession(VaadinSession.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(UI.LegacyWindow uI) {
- for (Entry<String, UI.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<UI.LegacyWindow> getWindows() {
- return Collections.unmodifiableCollection(legacyUINames.values());
- }
-
- @Override
- public void terminalError(ErrorEvent event) {
- VaadinSession.getCurrent().terminalError(event);
- }
-
- public VaadinSession getContext() {
- return VaadinSession.getCurrent();
- }
-
- protected void close() {
- VaadinSession.getCurrent().close();
- }
-
- public boolean isRunning() {
- return VaadinSession.getCurrent().isRunning();
- }
-
- public URL getURL() {
- return VaadinSession.getCurrent().getURL();
- }
-}
\ No newline at end of file
import javax.portlet.PortletException;
import javax.portlet.PortletRequest;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ServletPortletHelper.ApplicationClassException;
public class LegacyVaadinPortlet extends VaadinPortlet {
- protected Class<? extends LegacyApplication> getApplicationClass()
+ protected Class<? extends Application> getApplicationClass()
throws ClassNotFoundException {
try {
return ServletPortletHelper
}
}
- protected LegacyApplication getNewApplication(PortletRequest request)
+ protected Application getNewApplication(PortletRequest request)
throws PortletException {
try {
- Class<? extends LegacyApplication> applicationClass = getApplicationClass();
+ Class<? extends Application> applicationClass = getApplicationClass();
return applicationClass.newInstance();
} catch (Exception e) {
throw new PortletException(e);
// Must set current before running init()
VaadinSession.setCurrent(application);
- LegacyApplication legacyApplication = getNewApplication(request);
+ Application legacyApplication = getNewApplication(request);
legacyApplication.doInit();
application.addUIProvider(legacyApplication);
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ServletPortletHelper.ApplicationClassException;
public class LegacyVaadinServlet extends VaadinServlet {
- protected Class<? extends LegacyApplication> getApplicationClass()
+ protected Class<? extends Application> getApplicationClass()
throws ClassNotFoundException {
try {
return ServletPortletHelper
}
}
- protected LegacyApplication getNewApplication(HttpServletRequest request)
+ protected Application getNewApplication(HttpServletRequest request)
throws ServletException {
try {
- Class<? extends LegacyApplication> applicationClass = getApplicationClass();
+ Class<? extends Application> applicationClass = getApplicationClass();
return applicationClass.newInstance();
} catch (Exception e) {
throw new ServletException(e);
// Must set current before running init()
VaadinSession.setCurrent(application);
- LegacyApplication legacyApplication = getNewApplication(request);
+ Application legacyApplication = getNewApplication(request);
legacyApplication.doInit();
application.addUIProvider(legacyApplication);
import java.io.Serializable;
import java.util.Properties;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ApplicationConstants;
import com.vaadin.ui.UI;
}
}
- static Class<? extends LegacyApplication> getLegacyApplicationClass(
+ static Class<? extends Application> getLegacyApplicationClass(
DeploymentConfiguration deploymentConfiguration)
throws ApplicationClassException {
Properties initParameters = deploymentConfiguration
try {
return classLoader.loadClass(applicationParameter).asSubclass(
- LegacyApplication.class);
+ Application.class);
} catch (final ClassNotFoundException e) {
throw new ApplicationClassException(
"Failed to load application class: " + applicationParameter,
/**
* 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.Application}
*/
@Deprecated
public static class LegacyWindow extends UI {
import org.junit.Test;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.UI;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
public class AddRemoveSubWindow {
- public class TestApp extends LegacyApplication {
+ public class TestApp extends Application {
@Override
public void init() {
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.AbstractUIProvider;
import com.vaadin.server.ApplicationConfiguration;
import com.vaadin.server.LegacyVaadinServlet;
}
@Override
- protected Class<? extends LegacyApplication> getApplicationClass()
+ protected Class<? extends Application> getApplicationClass()
throws ClassNotFoundException {
- return getClassToRun().asSubclass(LegacyApplication.class);
+ return getClassToRun().asSubclass(Application.class);
}
@Override
}
});
return application;
- } else if (LegacyApplication.class.isAssignableFrom(classToRun)) {
+ } else if (Application.class.isAssignableFrom(classToRun)) {
return super.createApplication(request);
} else if (UIProvider.class.isAssignableFrom(classToRun)) {
VaadinServletSession application = new VaadinServletSession();
import java.util.Map;
import java.util.Set;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.util.DefaultItemSorter;
import com.vaadin.data.util.HierarchicalContainer;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Components extends LegacyApplication {
+public class Components extends Application {
private static final Object CAPTION = "c";
private Map<Class<? extends AbstractComponentTest>, String> tests = new HashMap<Class<? extends AbstractComponentTest>, String>();
package com.vaadin.tests;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
* @since 4.0.0
*
*/
-public class CustomLayoutDemo extends com.vaadin.LegacyApplication
+public class CustomLayoutDemo extends com.vaadin.Application
implements Listener {
private CustomLayout mainLayout = null;
package com.vaadin.tests;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ClassResource;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Component;
* @since 4.0.0
*
*/
-public class LayoutDemo extends com.vaadin.LegacyApplication {
+public class LayoutDemo extends com.vaadin.Application {
/**
* Initialize Application. Demo components are added to main window.
import java.util.HashMap;
import java.util.Iterator;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Container.ItemSetChangeEvent;
import com.vaadin.data.Container.ItemSetChangeListener;
import com.vaadin.data.Container.PropertySetChangeEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
-public class ListenerOrder extends com.vaadin.LegacyApplication
+public class ListenerOrder extends com.vaadin.Application
implements Button.ClickListener, PropertySetChangeListener,
ItemSetChangeListener, ValueChangeListener {
package com.vaadin.tests;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
* @see com.vaadin.ui.Window
* @see com.vaadin.ui.Label
*/
-public class ModalWindow extends com.vaadin.LegacyApplication
+public class ModalWindow extends com.vaadin.Application
implements ClickListener {
private Window test;
import java.net.MalformedURLException;
import java.net.URL;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
-public class NativeWindowing extends LegacyApplication {
+public class NativeWindowing extends Application {
LegacyWindow main = new LegacyWindow("Windowing test");
import java.util.Iterator;
import java.util.Map;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.VaadinSession;
*
* @since 3.1.1
*/
-public class Parameters extends com.vaadin.LegacyApplication
+public class Parameters extends com.vaadin.Application
implements RequestHandler {
private final Label context = new Label();
import java.util.Random;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Button;
*
*/
public class RandomLayoutStress extends
- com.vaadin.LegacyApplication {
+ com.vaadin.Application {
private final Random seededRandom = new Random(1);
package com.vaadin.tests;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.VerticalSplitPanel;
import com.vaadin.ui.Window;
-public class ScrollbarStressTest extends LegacyApplication {
+public class ScrollbarStressTest extends Application {
final LegacyWindow main = new LegacyWindow("Scrollbar Stress Test");
import java.util.Iterator;
import java.util.List;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.util.HierarchicalContainer;
import com.vaadin.server.ExternalResource;
* @author Vaadin Ltd.
*
*/
-public class TestBench extends com.vaadin.LegacyApplication
+public class TestBench extends com.vaadin.Application
implements Property.ValueChangeListener {
// Add here packages which are used for finding testable classes
private Component createTestable(Class<?> c) {
try {
- final LegacyApplication app = (LegacyApplication) c
+ final Application app = (Application) c
.newInstance();
app.doInit();
Layout lo = (Layout) app.getMainWindow().getContent();
package com.vaadin.tests;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalSplitPanel;
public class TestForApplicationLayoutThatUsesWholeBrosersSpace extends
- LegacyApplication {
+ Application {
LegacyWindow main = new LegacyWindow("Windowing test");
import java.net.MalformedURLException;
import java.net.URL;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
-public class TestForNativeWindowing extends LegacyApplication {
+public class TestForNativeWindowing extends Application {
LegacyWindow main = new LegacyWindow("Windowing test");
import java.lang.management.ManagementFactory;
import java.lang.management.MemoryMXBean;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.StreamResource;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Upload.SucceededListener;
import com.vaadin.ui.VerticalLayout;
-public class TestForStyledUpload extends LegacyApplication
+public class TestForStyledUpload extends Application
implements Upload.FinishedListener, FailedListener, SucceededListener,
StartedListener {
package com.vaadin.tests;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.UI.LegacyWindow;
public class TestSetVisibleAndCaching extends
- com.vaadin.LegacyApplication {
+ com.vaadin.Application {
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.Application;
import com.vaadin.data.Container;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class TestSizeableIncomponents extends LegacyApplication {
+public class TestSizeableIncomponents extends Application {
private IndexedContainer cont;
private ComboBox select;
package com.vaadin.tests;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalSplitPanel;
-public class TestSplitPanel extends com.vaadin.LegacyApplication {
+public class TestSplitPanel extends com.vaadin.Application {
VerticalSplitPanel verticalSplit = new VerticalSplitPanel();
import java.io.File;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.server.VaadinSession;
import com.vaadin.shared.ui.label.ContentMode;
* @since 4.0.0
*
*/
-public class TreeFilesystem extends com.vaadin.LegacyApplication
+public class TreeFilesystem extends com.vaadin.Application
implements Tree.ExpandListener {
// Filesystem explorer panel and it's components
import java.io.File;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.util.FilesystemContainer;
import com.vaadin.data.util.FilesystemContainer.FileItem;
import com.vaadin.server.VaadinSession;
*
*/
public class TreeFilesystemContainer extends
- com.vaadin.LegacyApplication implements Listener {
+ com.vaadin.Application implements Listener {
// Filesystem explorer panel and it's components
private final Panel explorerPanel = new Panel("Filesystem explorer");
import java.util.LinkedList;
import java.util.Random;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Select;
public class UsingObjectsInSelect extends
- com.vaadin.LegacyApplication implements ValueChangeListener {
+ com.vaadin.Application implements ValueChangeListener {
private final Select select = new Select();
private final Label selectedTask = new Label("Selected task",
package com.vaadin.tests.appengine;
import com.google.apphosting.api.DeadlineExceededException;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.server.ClassResource;
import com.vaadin.ui.TextField;
import com.vaadin.ui.UI.LegacyWindow;
-public class GAESyncTest extends LegacyApplication {
+public class GAESyncTest extends Application {
/**
*
private static final long serialVersionUID = -6521351715072191625l;
TextField tf;
Label l;
- LegacyApplication app;
+ Application app;
GridLayout gl;
- private IntrWindow(LegacyApplication app) {
+ private IntrWindow(Application app) {
this.app = app;
tf = new TextField("Echo thingie");
package com.vaadin.tests.components;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.VaadinSession;
import com.vaadin.server.WebBrowser;
-public abstract class AbstractTestCase extends LegacyApplication {
+public abstract class AbstractTestCase extends Application {
protected abstract String getDescription();
package com.vaadin.tests.components.combobox;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Container;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.VerticalLayout;
@SuppressWarnings("serial")
-public class ComboBoxReapperingOldValue extends LegacyApplication
+public class ComboBoxReapperingOldValue extends Application
implements ValueChangeListener {
ComboBox cbox1 = new ComboBox();
package com.vaadin.tests.components.form;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.Form;
@SuppressWarnings("serial")
public class UndefinedWideFormWithRelativeWideFooter extends
- LegacyApplication {
+ Application {
@Override
public void init() {
package com.vaadin.tests.components.loginform;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.LoginForm;
import com.vaadin.ui.LoginForm.LoginEvent;
import com.vaadin.ui.LoginForm.LoginListener;
import com.vaadin.ui.UI.LegacyWindow;
@SuppressWarnings("serial")
-public class LoginFormWithMultipleWindows extends LegacyApplication {
+public class LoginFormWithMultipleWindows extends Application {
@Override
public void init() {
package com.vaadin.tests.components.table;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Container;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class TableFirstRowFlicker extends LegacyApplication {
+public class TableFirstRowFlicker extends Application {
Table t;
package com.vaadin.tests.components.textfield;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Component;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class TextFieldInLayoutInTable extends LegacyApplication {
+public class TextFieldInLayoutInTable extends Application {
@Override
public void init() {
import java.sql.SQLException;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Container.ItemSetChangeEvent;
import com.vaadin.data.Container.ItemSetChangeListener;
import com.vaadin.data.Item;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class CheckboxUpdateProblem extends LegacyApplication
+public class CheckboxUpdateProblem extends Application
implements Property.ValueChangeListener {
private final DatabaseHelper databaseHelper = new DatabaseHelper();
private Table testList;
package com.vaadin.tests.containers.sqlcontainer;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractSelect.Filtering;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI;
/**
* See http://dev.vaadin.com/ticket/9155 .
*/
-public class ComboBoxUpdateProblem extends LegacyApplication {
+public class ComboBoxUpdateProblem extends Application {
private final DatabaseHelper databaseHelper = new DatabaseHelper();
@Override
import java.sql.SQLException;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.util.sqlcontainer.SQLContainer;
import com.vaadin.data.util.sqlcontainer.connection.JDBCConnectionPool;
import com.vaadin.data.util.sqlcontainer.connection.SimpleJDBCConnectionPool;
// +-------------+-------------+------+-----+---------+----------------+
@SuppressWarnings("serial")
-public class MassInsertMemoryLeakTestApp extends LegacyApplication {
+public class MassInsertMemoryLeakTestApp extends Application {
ProgressIndicator proggress = new ProgressIndicator();
Button process = new Button("Mass insert");
package com.vaadin.tests.integration;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.Table;
import com.vaadin.ui.UI.LegacyWindow;
-public class IntegrationTestApplication extends LegacyApplication {
+public class IntegrationTestApplication extends Application {
@Override
public void init() {
import javax.portlet.ResourceResponse;
import javax.portlet.WindowState;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.annotations.StyleSheet;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.VaadinPortletSession;
/**
* Adapted from old PortletDemo to support integration testing.
*/
-public class JSR286PortletApplication extends LegacyApplication {
+public class JSR286PortletApplication extends Application {
@StyleSheet("PortletConnectorResource.css")
public final class LegacyWindowWithStylesheet extends LegacyWindow {
import java.util.Iterator;
import java.util.Locale;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.event.Action;
import com.vaadin.ui.themes.LiferayTheme;
@SuppressWarnings("serial")
-public class LiferayThemeDemo extends LegacyApplication {
+public class LiferayThemeDemo extends Application {
@SuppressWarnings("deprecation")
private static final Date DATE = new Date(2009 - 1900, 6 - 1, 2);
package com.vaadin.tests.integration;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
* See ticket #5521.
*/
public class PortletSizeInLiferayFreeformLayoutApplication extends
- LegacyApplication {
+ Application {
@Override
public void init() {
LegacyWindow mainWindow = new LegacyWindow("Portlet5521 Application");
package com.vaadin.tests.layouts;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
import com.vaadin.ui.UI.LegacyWindow;
-public class GridLayoutInsidePanel2 extends LegacyApplication {
+public class GridLayoutInsidePanel2 extends Application {
private Layout layout;
import java.util.Date;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.Resource;
import com.vaadin.server.SystemError;
import com.vaadin.server.ThemeResource;
private AbstractComponent rc1, col1, col2, col3, row1, row2, row3, x3, x22;
- public GridLayoutTests(LegacyApplication application) {
+ public GridLayoutTests(Application application) {
super();
}
package com.vaadin.tests.layouts.layouttester;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.Resource;
import com.vaadin.server.SystemError;
import com.vaadin.server.ThemeResource;
public class HorizontalLayoutTests extends AbstractLayoutTests {
- public HorizontalLayoutTests(LegacyApplication application) {
+ public HorizontalLayoutTests(Application application) {
super();
}
package com.vaadin.tests.layouts.layouttester;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.Resource;
import com.vaadin.server.SystemError;
import com.vaadin.server.ThemeResource;
public class VerticalLayoutTests extends AbstractLayoutTests {
- public VerticalLayoutTests(LegacyApplication application) {
+ public VerticalLayoutTests(Application application) {
super();
}
package com.vaadin.tests.themes;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.server.ThemeResource;
import com.vaadin.ui.UI.LegacyWindow;
@SuppressWarnings("serial")
-public class ButtonsTest extends com.vaadin.LegacyApplication {
+public class ButtonsTest extends com.vaadin.Application {
final UI.LegacyWindow main = new LegacyWindow("Button states & themes");
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.Alignment;
* properly. Scrollbars will disappear if "shaking" content a bit, like
* selecting tests in area.
*/
-public class Ticket1225 extends LegacyApplication {
+public class Ticket1225 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
-public class Ticket1230 extends LegacyApplication {
+public class Ticket1230 extends Application {
private static final Object PROPERTY_ID = new Object();
private static final Object NULL_ITEM_ID = new Object();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket124 extends LegacyApplication {
+public class Ticket124 extends Application {
private TextField tf;
private GridLayout gl;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.Property;
import com.vaadin.ui.AbstractSelect;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.Reindeer;
-public class Ticket1245 extends com.vaadin.LegacyApplication {
+public class Ticket1245 extends com.vaadin.Application {
TextField f = new TextField();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.event.Action;
import com.vaadin.event.Action.Handler;
import com.vaadin.event.ShortcutAction;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1365 extends com.vaadin.LegacyApplication
+public class Ticket1365 extends com.vaadin.Application
implements Handler {
TextField f = new TextField();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI.LegacyWindow;
/**
*/
-public class Ticket1368 extends LegacyApplication {
+public class Ticket1368 extends Application {
private Table t;
import java.util.Date;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.util.ObjectProperty;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
-public class Ticket1397 extends LegacyApplication {
+public class Ticket1397 extends Application {
LegacyWindow main;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1435 extends LegacyApplication {
+public class Ticket1435 extends Application {
private static final boolean useWorkaround = true;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1444 extends LegacyApplication {
+public class Ticket1444 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
-public class Ticket1465ModalNotification extends LegacyApplication {
+public class Ticket1465ModalNotification extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
-public class Ticket1519 extends LegacyApplication {
+public class Ticket1519 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.MarginInfo;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1572 extends com.vaadin.LegacyApplication {
+public class Ticket1572 extends com.vaadin.Application {
private Label state;
private GridLayout gl;
import java.util.Date;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.ProgressIndicator;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1581 extends com.vaadin.LegacyApplication {
+public class Ticket1581 extends com.vaadin.Application {
private Label time;
private ProgressIndicator poller;
import javax.imageio.ImageIO;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.DownloadStream;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
import com.vaadin.ui.Link;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1589 extends LegacyApplication {
+public class Ticket1589 extends Application {
@Override
public void init() {
import java.util.ArrayList;
import java.util.List;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ThemeResource;
import com.vaadin.ui.MenuBar;
import com.vaadin.ui.MenuBar.Command;
import com.vaadin.ui.MenuBar.MenuItem;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1598 extends LegacyApplication {
+public class Ticket1598 extends Application {
LegacyWindow main = new LegacyWindow("MenuBar test");
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Container;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.Button;
/**
*/
-public class Ticket161 extends LegacyApplication {
+public class Ticket161 extends Application {
private Table t;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
/**
*/
-public class Ticket1632 extends LegacyApplication {
+public class Ticket1632 extends Application {
private Table t;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1659 extends LegacyApplication {
+public class Ticket1659 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.SystemError;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1663 extends com.vaadin.LegacyApplication {
+public class Ticket1663 extends com.vaadin.Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.CustomizedSystemMessages;
import com.vaadin.server.SystemMessages;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1673 extends com.vaadin.LegacyApplication {
+public class Ticket1673 extends com.vaadin.Application {
@Override
public void init() {
import java.util.Iterator;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1710 extends com.vaadin.LegacyApplication {
+public class Ticket1710 extends com.vaadin.Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ClassResource;
import com.vaadin.server.DownloadStream;
import com.vaadin.server.Resource;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1737 extends LegacyApplication {
+public class Ticket1737 extends Application {
Resource slowRes = new ClassResource(Ticket1737.class, "m-bullet-blue.gif") {
@Override
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1767 extends com.vaadin.LegacyApplication {
+public class Ticket1767 extends com.vaadin.Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1772 extends com.vaadin.LegacyApplication {
+public class Ticket1772 extends com.vaadin.Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1775 extends com.vaadin.LegacyApplication {
+public class Ticket1775 extends com.vaadin.Application {
@Override
public void init() {
import java.util.Iterator;
import java.util.LinkedList;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Validator;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.server.SystemError;
import com.vaadin.ui.Select;
import com.vaadin.ui.Window;
-public class Ticket1804 extends com.vaadin.LegacyApplication {
+public class Ticket1804 extends com.vaadin.Application {
LinkedList<Select> listOfAllFields = new LinkedList<Select>();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1805 extends com.vaadin.LegacyApplication {
+public class Ticket1805 extends com.vaadin.Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.util.ObjectProperty;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1806 extends com.vaadin.LegacyApplication {
+public class Ticket1806 extends com.vaadin.Application {
@Override
public void init() {
import java.util.Iterator;
import java.util.LinkedList;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Validator;
import com.vaadin.data.validator.StringLengthValidator;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.TextField;
import com.vaadin.ui.Window;
-public class Ticket1811 extends com.vaadin.LegacyApplication {
+public class Ticket1811 extends com.vaadin.Application {
LinkedList<TextField> listOfAllFields = new LinkedList<TextField>();
import java.util.Iterator;
import java.util.LinkedList;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.AbstractField;
import com.vaadin.ui.Button;
import com.vaadin.ui.Select;
import com.vaadin.ui.Window;
-public class Ticket1819 extends com.vaadin.LegacyApplication {
+public class Ticket1819 extends com.vaadin.Application {
LinkedList<Select> listOfAllFields = new LinkedList<Select>();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.UI.LegacyWindow;
public class Ticket1834PanelScrolling extends
- com.vaadin.LegacyApplication {
+ com.vaadin.Application {
private static final int ROWS = 50;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.event.Action;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1857 extends LegacyApplication implements
+public class Ticket1857 extends Application implements
Handler {
@Override
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1868 extends com.vaadin.LegacyApplication {
+public class Ticket1868 extends com.vaadin.Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1869 extends com.vaadin.LegacyApplication {
+public class Ticket1869 extends com.vaadin.Application {
@Override
public void init() {
import java.util.Iterator;
import java.util.Random;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.util.BeanItem;
import com.vaadin.data.validator.StringLengthValidator;
import com.vaadin.server.Resource;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1878 extends LegacyApplication {
+public class Ticket1878 extends Application {
private Layout orderedLayout;
private Layout gridLayout;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Validator;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1900 extends LegacyApplication {
+public class Ticket1900 extends Application {
TextField f[] = new TextField[5];
LegacyWindow main = new LegacyWindow("#1900 test");
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1904 extends LegacyApplication {
+public class Ticket1904 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.UserError;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1916 extends LegacyApplication {
+public class Ticket1916 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Component;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1919 extends com.vaadin.LegacyApplication {
+public class Ticket1919 extends com.vaadin.Application {
private GridLayout lo;
private boolean on = true;
import java.io.IOException;
import java.util.Map;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.RequestHandler;
import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedRequest;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1921 extends LegacyApplication implements
+public class Ticket1921 extends Application implements
RequestHandler {
int state = -1;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1923 extends com.vaadin.LegacyApplication {
+public class Ticket1923 extends com.vaadin.Application {
private static final int ROWS = 50;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1925 extends LegacyApplication {
+public class Ticket1925 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1939 extends LegacyApplication {
+public class Ticket1939 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1940 extends LegacyApplication {
+public class Ticket1940 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1953 extends LegacyApplication {
+public class Ticket1953 extends Application {
public static final String cellStyle = "test-cell";
public static final String colHeadStyle = "test-col-head";
public static final String headingStyle = "test-heading";
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1966 extends LegacyApplication {
+public class Ticket1966 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1966_2 extends LegacyApplication {
+public class Ticket1966_2 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ThemeResource;
import com.vaadin.server.UserError;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1966_3 extends LegacyApplication {
+public class Ticket1966_3 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.UserError;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.Button;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1969 extends com.vaadin.LegacyApplication {
+public class Ticket1969 extends com.vaadin.Application {
@Override
public void init() {
import java.util.Iterator;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1970 extends LegacyApplication {
+public class Ticket1970 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1972 extends LegacyApplication {
+public class Ticket1972 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Button;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1973 extends com.vaadin.LegacyApplication {
+public class Ticket1973 extends com.vaadin.Application {
LegacyWindow main = new LegacyWindow();
Table table = new Table();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Button;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket1973_2 extends LegacyApplication {
+public class Ticket1973_2 extends Application {
LegacyWindow main = new LegacyWindow();
Table table = new Table();
import java.io.File;
import java.io.FileInputStream;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.WrappedRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.util.CurrentInstance;
-public class Ticket1975 extends LegacyApplication {
+public class Ticket1975 extends Application {
private CustomLayout cl1;
private CustomLayout cl2;
import java.util.ArrayList;
import java.util.List;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket1982 extends LegacyApplication {
+public class Ticket1982 extends Application {
private List<TitleBar> components = new ArrayList<TitleBar>();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.data.util.IndexedContainer;
/**
* Test class for ticket 1983
*/
-public class Ticket1983 extends LegacyApplication {
+public class Ticket1983 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.DateField;
import com.vaadin.ui.TextField;
import com.vaadin.ui.TwinColSelect;
-public class Ticket1986 extends LegacyApplication {
+public class Ticket1986 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket1991 extends com.vaadin.LegacyApplication {
+public class Ticket1991 extends com.vaadin.Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Container;
import com.vaadin.data.Container.Filterable;
import com.vaadin.data.Item;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket1995 extends LegacyApplication {
+public class Ticket1995 extends Application {
private static final Object PROPERTY_1 = "Test";
private Table table;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Validator;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.data.validator.CompositeValidator;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket20 extends LegacyApplication {
+public class Ticket20 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2001 extends LegacyApplication {
+public class Ticket2001 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2002 extends LegacyApplication {
+public class Ticket2002 extends Application {
private Long long1 = new Long(1L);
private Long long2 = new Long(2L);
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2007 extends LegacyApplication {
+public class Ticket2007 extends Application {
int childs = 0;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Container;
import com.vaadin.event.ItemClickEvent;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
-public class Ticket2009 extends com.vaadin.LegacyApplication {
+public class Ticket2009 extends com.vaadin.Application {
TextField f = new TextField();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
-public class Ticket2011 extends LegacyApplication {
+public class Ticket2011 extends Application {
@Override
public void init() {
import java.util.UUID;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2014 extends LegacyApplication {
+public class Ticket2014 extends Application {
private HorizontalLayout innerLayout1;
private Button b1;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2021 extends LegacyApplication {
+public class Ticket2021 extends Application {
private TextArea tf1, tf2, tf3;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2022 extends LegacyApplication {
+public class Ticket2022 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2023 extends com.vaadin.LegacyApplication
+public class Ticket2023 extends com.vaadin.Application
implements Button.ClickListener {
AbstractComponent c = new Button();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2024 extends LegacyApplication {
+public class Ticket2024 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2026 extends LegacyApplication {
+public class Ticket2026 extends Application {
@Override
public void init() {
import java.util.Random;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.server.UserError;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2029 extends LegacyApplication {
+public class Ticket2029 extends Application {
int COMPONENTS;
int DIM1, DIM2;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2037 extends com.vaadin.LegacyApplication {
+public class Ticket2037 extends com.vaadin.Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2038 extends LegacyApplication {
+public class Ticket2038 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout.MarginHandler;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.TextField;
-public class Ticket2040 extends com.vaadin.LegacyApplication {
+public class Ticket2040 extends com.vaadin.Application {
TextField f = new TextField();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Notification;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2042 extends LegacyApplication {
+public class Ticket2042 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Link;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2043 extends LegacyApplication {
+public class Ticket2043 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ThemeResource;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2048 extends LegacyApplication {
+public class Ticket2048 extends Application {
private Embedded embedded;
private Panel p;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
-public class Ticket2051 extends LegacyApplication {
+public class Ticket2051 extends Application {
private static final Object P1 = new Object();
private static final Object P2 = new Object();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.server.ExternalResource;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2053 extends LegacyApplication {
+public class Ticket2053 extends Application {
int childs = 0;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2060 extends LegacyApplication {
+public class Ticket2060 extends Application {
private Button button1;
private Button button2;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2061 extends LegacyApplication {
+public class Ticket2061 extends Application {
private LegacyWindow mainWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
-public class Ticket2061b extends LegacyApplication implements
+public class Ticket2061b extends Application implements
SelectedTabChangeListener {
private LegacyWindow mainWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2061c extends LegacyApplication implements
+public class Ticket2061c extends Application implements
SelectedTabChangeListener {
private LegacyWindow mainWindow;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
-public class Ticket2062 extends LegacyApplication {
+public class Ticket2062 extends Application {
private static final Object P1 = new Object();
@Override
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2083 extends LegacyApplication {
+public class Ticket2083 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.server.UserError;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2090 extends LegacyApplication {
+public class Ticket2090 extends Application {
Label label = new Label();
Button target = new Button();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2095 extends LegacyApplication {
+public class Ticket2095 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
-public class Ticket2098 extends LegacyApplication {
+public class Ticket2098 extends Application {
private static final String info = "First tab hidden, second should initially be selected";
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
-public class Ticket2099 extends LegacyApplication {
+public class Ticket2099 extends Application {
private Label l1, l2, l3;
private VerticalLayout ol1, ol2, ol3;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2101 extends LegacyApplication {
+public class Ticket2101 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.util.HierarchicalContainer;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2103 extends LegacyApplication {
+public class Ticket2103 extends Application {
private LegacyWindow mainWindow;
@Override
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.ui.Table;
import com.vaadin.ui.Tree;
-public class Ticket2104 extends LegacyApplication {
+public class Ticket2104 extends Application {
private static final Label info = new Label(
"Click event should _always_ come trough. Switching features on/off should immediatly affect the tree (verify w/ debug window)",
import java.util.Date;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.CustomizedSystemMessages;
import com.vaadin.server.SystemMessages;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2106 extends LegacyApplication {
+public class Ticket2106 extends Application {
private static CustomizedSystemMessages msgs = new CustomizedSystemMessages();
static {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Validator;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2107 extends LegacyApplication {
+public class Ticket2107 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2117 extends LegacyApplication {
+public class Ticket2117 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.util.ObjectProperty;
import com.vaadin.server.ExternalResource;
/**
* Test case for Ticket 2119.
*/
-public class Ticket2119 extends LegacyApplication {
+public class Ticket2119 extends Application {
private ObjectProperty<String> globalValue;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.Component;
import com.vaadin.ui.Table.ColumnGenerator;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2125 extends LegacyApplication {
+public class Ticket2125 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Button;
* client.
*
*/
-public class Ticket2126 extends com.vaadin.LegacyApplication {
+public class Ticket2126 extends com.vaadin.Application {
LegacyWindow main = new LegacyWindow();
Table table = new Table();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.util.ObjectProperty;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.AbstractField;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2151 extends LegacyApplication {
+public class Ticket2151 extends Application {
private Label status;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2157 extends LegacyApplication {
+public class Ticket2157 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2178 extends LegacyApplication {
+public class Ticket2178 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Validator;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2179 extends LegacyApplication {
+public class Ticket2179 extends Application {
TextField f = new TextField("Test fiel ( must contain 1 & 2 )");
LegacyWindow main = new LegacyWindow("Dual validator test");
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
-public class Ticket2180 extends LegacyApplication {
+public class Ticket2180 extends Application {
private LegacyWindow mainWindow;
private TabSheet tabSheet;
import java.util.Random;
import java.util.Set;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ThemeResource;
import com.vaadin.server.UserError;
import com.vaadin.ui.Button;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2181 extends LegacyApplication implements
+public class Ticket2181 extends Application implements
Button.ClickListener {
// private static final Object PROPERTY_VALUE = new Object();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2186 extends LegacyApplication {
+public class Ticket2186 extends Application {
@Override
public void init() {
import java.util.List;
import java.util.Map;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.util.BeanItem;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
-public class Ticket2204 extends LegacyApplication {
+public class Ticket2204 extends Application {
private final List<RichTextArea> textAreas = new ArrayList<RichTextArea>();
private TabSheet ts;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.Table.ColumnGenerator;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2208 extends LegacyApplication {
+public class Ticket2208 extends Application {
private Table t;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2209 extends LegacyApplication {
+public class Ticket2209 extends Application {
private GridLayout gl;
private ComboBox combo;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2209OL extends LegacyApplication {
+public class Ticket2209OL extends Application {
private VerticalLayout gl;
private ComboBox combo;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2209OL2 extends LegacyApplication {
+public class Ticket2209OL2 extends Application {
private VerticalLayout gl;
private ComboBox combo;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.Reindeer;
-public class Ticket2215 extends LegacyApplication {
+public class Ticket2215 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2221 extends LegacyApplication {
+public class Ticket2221 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2222 extends LegacyApplication {
+public class Ticket2222 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
public class Ticket2227OrderedlayoutInTable extends
- LegacyApplication {
+ Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2231 extends LegacyApplication {
+public class Ticket2231 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2232 extends LegacyApplication {
+public class Ticket2232 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2234 extends LegacyApplication {
+public class Ticket2234 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
-public class Ticket2235 extends LegacyApplication {
+public class Ticket2235 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2240 extends LegacyApplication {
+public class Ticket2240 extends Application {
public static final String txt = "<p>There are two main types of windows: application-level windows, and "
+ "\"sub windows\".</p><p>A sub window is rendered as a \"inline\" popup window"
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket2242 extends LegacyApplication implements
+public class Ticket2242 extends Application implements
ValueChangeListener {
private Object tableValue = null;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.util.BeanItem;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2244 extends LegacyApplication {
+public class Ticket2244 extends Application {
Form form;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2245 extends LegacyApplication {
+public class Ticket2245 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2267 extends LegacyApplication {
+public class Ticket2267 extends Application {
Label l = new Label("0");
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Button;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2271 extends LegacyApplication {
+public class Ticket2271 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.FormLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2282 extends LegacyApplication {
+public class Ticket2282 extends Application {
private FormLayout layout1;
private FormLayout layout2;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2283 extends LegacyApplication {
+public class Ticket2283 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2289 extends LegacyApplication {
+public class Ticket2289 extends Application {
TabSheet ts = null;
Accordion acc = null;
import javax.imageio.ImageIO;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.DownloadStream;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.RequestHandler;
import com.vaadin.ui.Link;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2292 extends com.vaadin.LegacyApplication
+public class Ticket2292 extends com.vaadin.Application
implements RequestHandler {
@Override
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2294 extends LegacyApplication {
+public class Ticket2294 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2296 extends LegacyApplication {
+public class Ticket2296 extends Application {
@Override
public void init() {
import java.io.ByteArrayInputStream;
import java.io.IOException;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2303 extends LegacyApplication {
+public class Ticket2303 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.themes.Reindeer;
-public class Ticket2304 extends LegacyApplication {
+public class Ticket2304 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.themes.Reindeer;
-public class Ticket2310 extends LegacyApplication {
+public class Ticket2310 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.VerticalSplitPanel;
-public class Ticket2319 extends LegacyApplication {
+public class Ticket2319 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.RichTextArea;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
-public class Ticket2323 extends LegacyApplication {
+public class Ticket2323 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
-public class Ticket2325 extends LegacyApplication {
+public class Ticket2325 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table.ColumnGenerator;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2329 extends LegacyApplication {
+public class Ticket2329 extends Application {
private Table table;
private VerticalLayout mainLo;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2337 extends LegacyApplication {
+public class Ticket2337 extends Application {
GridLayout gl = new GridLayout(3, 1);
import java.io.ByteArrayInputStream;
import java.io.IOException;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2339 extends LegacyApplication {
+public class Ticket2339 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Item;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket2341 extends com.vaadin.LegacyApplication {
+public class Ticket2341 extends com.vaadin.Application {
@Override
public void init() {
LegacyWindow main = new LegacyWindow();
import java.util.Random;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.themes.BaseTheme;
-public class Ticket2344 extends LegacyApplication {
+public class Ticket2344 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2347 extends LegacyApplication {
+public class Ticket2347 extends Application {
private Button b1;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Form;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Select;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2364 extends LegacyApplication {
+public class Ticket2364 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2365 extends LegacyApplication {
+public class Ticket2365 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.util.IndexedContainer;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket2398 extends LegacyApplication {
+public class Ticket2398 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2404 extends LegacyApplication {
+public class Ticket2404 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.ExternalResource;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2405 extends LegacyApplication {
+public class Ticket2405 extends Application {
private Label label;
private HorizontalSplitPanel split;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
-public class Ticket2406 extends LegacyApplication {
+public class Ticket2406 extends Application {
private Window w;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Form;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket2407 extends com.vaadin.LegacyApplication {
+public class Ticket2407 extends com.vaadin.Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2411 extends LegacyApplication {
+public class Ticket2411 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket2415 extends LegacyApplication {
+public class Ticket2415 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.ProgressIndicator;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2420 extends LegacyApplication {
+public class Ticket2420 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TabSheet;
-public class Ticket2425 extends LegacyApplication {
+public class Ticket2425 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2426 extends LegacyApplication {
+public class Ticket2426 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.event.Action;
import com.vaadin.event.Action.Handler;
import com.vaadin.event.ShortcutAction;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2431 extends LegacyApplication {
+public class Ticket2431 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.Layout.SpacingHandler;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2432 extends LegacyApplication {
+public class Ticket2432 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
-public class Ticket2434 extends LegacyApplication {
+public class Ticket2434 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Component;
import com.vaadin.ui.PopupView;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket2436 extends LegacyApplication {
+public class Ticket2436 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Window;
-public class Ticket2526 extends LegacyApplication {
+public class Ticket2526 extends Application {
@Override
public void init() {
*/
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.NativeSelect;
import com.vaadin.ui.UI.LegacyWindow;
* @author Risto Yrjänä / Vaadin Ltd.
*
*/
-public class Ticket2742 extends LegacyApplication {
+public class Ticket2742 extends Application {
/*
* (non-Javadoc)
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.VerticalLayout;
* properly. Scrollbars will disappear if "shaking" content a bit, like
* selecting tests in area.
*/
-public class Ticket2901 extends LegacyApplication {
+public class Ticket2901 extends Application {
@Override
public void init() {
import java.util.Random;
import java.util.Set;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Container;
import com.vaadin.data.Validator;
import com.vaadin.data.util.BeanItemContainer;
*
* Other browsers are much faster.
*/
-public class Ticket2998 extends LegacyApplication {
+public class Ticket2998 extends Application {
private Table table;
private VerticalLayout mainLayout;
import java.util.Collection;
import java.util.HashSet;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
-public class Ticket3146 extends LegacyApplication {
+public class Ticket3146 extends Application {
Table table;
TextField result;
import java.util.HashMap;
import java.util.Map;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.server.Page;
import com.vaadin.server.Page.FragmentChangedEvent;
import com.vaadin.ui.Button;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
-public class Ticket34 extends LegacyApplication {
+public class Ticket34 extends Application {
private Map<String, Component> views = new HashMap<String, Component>();
private VerticalLayout mainLayout;
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.UI.LegacyWindow;
/**
* #5053: Last ComboBox item may not be shown if null selection enabled
*/
-public class Ticket5053 extends LegacyApplication {
+public class Ticket5053 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.event.ShortcutAction.KeyCode;
import com.vaadin.event.ShortcutListener;
import com.vaadin.ui.Label;
* Therefore, registering e.g. F8 as a key code resulted in "w" being used as
* the trigger and F8 being ignored.
*/
-public class Ticket5157 extends LegacyApplication {
+public class Ticket5157 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket5952 extends LegacyApplication {
+public class Ticket5952 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Container;
import com.vaadin.data.Item;
import com.vaadin.data.Property;
import com.vaadin.ui.Table;
import com.vaadin.ui.TextField;
-public class Ticket677 extends LegacyApplication {
+public class Ticket677 extends Application {
private static final Label info = new Label(
"<li> keep debug window open to see variable changes"
import java.io.IOException;
import java.io.ObjectOutputStream;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.UI.LegacyWindow;
@SuppressWarnings("serial")
-public class Ticket695 extends LegacyApplication {
+public class Ticket695 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.Validator;
import com.vaadin.data.util.BeanItem;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
-public class Ticket736 extends LegacyApplication {
+public class Ticket736 extends Application {
Address address = new Address();
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.data.util.MethodProperty;
import com.vaadin.data.validator.IntegerValidator;
import com.vaadin.ui.Button;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket846 extends LegacyApplication {
+public class Ticket846 extends Application {
@Override
public void init() {
package com.vaadin.tests.tickets;
-import com.vaadin.LegacyApplication;
+import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Label;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.TextField;
-public class Ticket932 extends LegacyApplication {
+public class Ticket932 extends Application {
@Override
public void init() {