com.vaadin.ui
Class Root.LegacyWindow

java.lang.Object
  extended by com.vaadin.ui.AbstractComponent
      extended by com.vaadin.ui.AbstractComponentContainer
          extended by com.vaadin.ui.Root
              extended by com.vaadin.ui.Root.LegacyWindow
All Implemented Interfaces:
Action.Container, Action.Notifier, MethodEventSource, Connector, ClientConnector, RpcTarget, Sizeable, Vaadin6Component, VariableOwner, Component, ComponentContainer, HasComponents, Serializable, Iterable<Component>, EventListener
Enclosing class:
Root

Deprecated.

@Deprecated
public static class Root.LegacyWindow
extends Root

Helper class to emulate the main window from Vaadin 6 using roots. This class should be used in the same way as Window used as a browser level window in Vaadin 6 with Application.LegacyApplication

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.ui.Root
Root.BrowserWindowResizeEvent, Root.BrowserWindowResizeListener, Root.FragmentChangedEvent, Root.FragmentChangedListener, Root.LegacyWindow
 
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent
AbstractComponent.ComponentErrorEvent, AbstractComponent.ComponentErrorHandler
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.VariableOwner
VariableOwner.ErrorEvent
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
Component.ErrorEvent, Component.ErrorListener, Component.Event, Component.Focusable, Component.Listener, Component.RepaintRequestEvent, Component.RepaintRequestListener
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.Sizeable
Sizeable.Unit
 
Nested classes/interfaces inherited from interface com.vaadin.ui.ComponentContainer
ComponentContainer.ComponentAttachEvent, ComponentContainer.ComponentAttachListener, ComponentContainer.ComponentDetachEvent, ComponentContainer.ComponentDetachListener
 
Field Summary
 
Fields inherited from class com.vaadin.ui.Root
actionManager, BORDER_DEFAULT, BORDER_MINIMAL, BORDER_NONE
 
Fields inherited from interface com.vaadin.terminal.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Constructor Summary
Root.LegacyWindow()
          Deprecated. Create a new legacy window
Root.LegacyWindow(String caption)
          Deprecated. Creates a new legacy window with the given caption
Root.LegacyWindow(String caption, ComponentContainer content)
          Deprecated. Creates a legacy window with the given caption and content layout
 
Method Summary
 String getName()
          Deprecated. Gets the unique name of the window.
 URL getURL()
          Deprecated. Gets the full URL of the window.
protected  void init(WrappedRequest request)
          Deprecated. Initializes this root.
 void setName(String name)
          Deprecated. Sets the unique name of the window.
 
Methods inherited from class com.vaadin.ui.Root
addAction, addActionHandler, addComponent, addListener, addListener, addListener, addWindow, attach, changeVariables, componentAttached, componentDetached, createState, detach, doInit, executeJavaScript, focus, getActionManager, getApplication, getBrowserWindowHeight, getBrowserWindowWidth, getComponentCount, getComponentIterator, getContent, getCurrentRoot, getDirtyConnectorTracker, getFragment, getRoot, getRootId, getState, getWindows, isConnectorEnabled, isResizeLazy, open, open, open, paintContent, removeAction, removeActionHandler, removeAllComponents, removeComponent, removeListener, removeListener, removeListener, removeWindow, replaceComponent, scrollIntoView, setApplication, setContent, setCurrentRoot, setFocusedComponent, setFragment, setFragment, setResizeLazy, setRootId, setScrollTop, showNotification, showNotification, showNotification, showNotification, showNotification, showNotification
 
Methods inherited from class com.vaadin.ui.AbstractComponentContainer
addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, isComponentVisible, iterator, moveComponentsFrom, removeListener, removeListener, requestRepaintAll, requestRepaintAll, setHeight, setVisible, setWidth
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireEvent, getCaption, getComponentError, getConnectorId, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getRpcManager, getRpcProxy, getStyle, getStyleName, getWidth, getWidthUnits, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, registerRpc, registerRpc, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeShortcutListener, removeStyleName, requestRepaint, retrievePendingRpcCalls, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setErrorHandler, setHeight, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setWidth, updateState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.terminal.VariableOwner
isEnabled, isImmediate
 
Methods inherited from interface com.vaadin.ui.Component
addListener, addListener, addStyleName, getCaption, getDebugId, getIcon, getLocale, getParent, getStyleName, isEnabled, isReadOnly, isVisible, removeListener, removeListener, removeStyleName, requestRepaint, setCaption, setDebugId, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisible, updateState
 
Methods inherited from interface com.vaadin.terminal.gwt.server.ClientConnector
retrievePendingRpcCalls
 
Methods inherited from interface com.vaadin.terminal.gwt.client.Connector
getConnectorId
 
Methods inherited from interface com.vaadin.terminal.gwt.server.RpcTarget
getRpcManager
 
Methods inherited from interface com.vaadin.terminal.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setSizeFull, setSizeUndefined, setWidth, setWidth
 

Constructor Detail

Root.LegacyWindow

public Root.LegacyWindow()
Deprecated. 
Create a new legacy window


Root.LegacyWindow

public Root.LegacyWindow(String caption)
Deprecated. 
Creates a new legacy window with the given caption

Parameters:
caption - the caption of the window

Root.LegacyWindow

public Root.LegacyWindow(String caption,
                         ComponentContainer content)
Deprecated. 
Creates a legacy window with the given caption and content layout

Parameters:
caption -
content -
Method Detail

init

protected void init(WrappedRequest request)
Deprecated. 
Description copied from class: Root
Initializes this root. This method is intended to be overridden by subclasses to build the view and configure non-component functionality. Performing the initialization in a constructor is not suggested as the state of the root is not properly set up when the constructor is invoked.

The WrappedRequest can be used to get information about the request that caused this root to be created. By default, the WrappedRequest.BrowserDetails will be available in the request. If the browser details are not required, loading the application in the browser can take some shortcuts giving a faster initial rendering. This can be indicated by adding the EagerInit annotation to the Root class.

Specified by:
init in class Root
Parameters:
request - the wrapped request that caused this root to be created

getName

public String getName()
Deprecated. 
Gets the unique name of the window. The name of the window is used to uniquely identify it.

The name also determines the URL that can be used for direct access to a window. All windows can be accessed through http://host:port/app/win where http://host:port/app is the application URL (as returned by Application.getURL() and win is the window name.

Note! Portlets do not support direct window access through URLs.

Returns:
the Name of the Window.

setName

public void setName(String name)
Deprecated. 
Sets the unique name of the window. The name of the window is used to uniquely identify it inside the application.

The name also determines the URL that can be used for direct access to a window. All windows can be accessed through http://host:port/app/win where http://host:port/app is the application URL (as returned by Application.getURL() and win is the window name.

This method can only be called before the window is added to an application.

Note! Portlets do not support direct window access through URLs.

Parameters:
name - the new name for the window or null if the application should automatically assign a name to it
Throws:
IllegalStateException - if the window is attached to an application

getURL

public URL getURL()
Deprecated. 
Gets the full URL of the window. The returned URL is window specific and can be used to directly refer to the window.

Note! This method can not be used for portlets.

Returns:
the URL of the window or null if the window is not attached to an application


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.