com.vaadin.ui
Class Flash

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.ui.AbstractComponent
          extended by com.vaadin.ui.AbstractEmbedded
              extended by com.vaadin.ui.Flash
All Implemented Interfaces:
MethodEventSource, ClientConnector, Sizeable, com.vaadin.shared.Connector, Component, java.io.Serializable

public class Flash
extends AbstractEmbedded

A component for displaying Adobe® Flash® content.

Since:
7.0
Version:
Author:
Vaadin Ltd.
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
 
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
Sizeable.Unit
 
Field Summary
 
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Constructor Summary
Flash()
          Creates a new empty Flash component.
Flash(java.lang.String caption)
          Creates a new empty Flash component with the given caption
Flash(java.lang.String caption, Resource source)
          Creates a new Flash component with the given caption and content.
 
Method Summary
 java.lang.String getParameter(java.lang.String name)
          Gets the value of an object parameter.
protected  com.vaadin.shared.ui.flash.FlashState getState()
          Returns the shared state bean with information to be sent from the server to the client.
 void removeParameter(java.lang.String name)
          Removes an object parameter from the list.
 void setArchive(java.lang.String archive)
          This attribute may be used to specify a space-separated list of URIs for archives containing resources relevant to the object, which may include the resources specified by the classid and data attributes.
 void setCodebase(java.lang.String codebase)
          This attribute specifies the base path used to resolve relative URIs specified by the classid, data, and archive attributes.
 void setCodetype(java.lang.String codetype)
          This attribute specifies the content type of data expected when downloading the object specified by classid.
 void setParameter(java.lang.String name, java.lang.String value)
          Sets an object parameter.
 void setStandby(java.lang.String standby)
           
 
Methods inherited from class com.vaadin.ui.AbstractEmbedded
getAlternateText, getSource, setAlternateText, setSource
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth
 
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.ui.Component
getUI
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 

Constructor Detail

Flash

public Flash()
Creates a new empty Flash component.


Flash

public Flash(java.lang.String caption)
Creates a new empty Flash component with the given caption

Parameters:
caption - The caption for the component

Flash

public Flash(java.lang.String caption,
             Resource source)
Creates a new Flash component with the given caption and content.

Parameters:
caption - The caption for the component
source - A Resource representing the Flash content that should be displayed
Method Detail

getState

protected com.vaadin.shared.ui.flash.FlashState getState()
Description copied from class: AbstractComponent
Returns the shared state bean with information to be sent from the server to the client. Subclasses should override this method and set any relevant fields of the state returned by super.getState().

Overrides:
getState in class AbstractEmbedded
Returns:
updated component shared state

setCodebase

public void setCodebase(java.lang.String codebase)
This attribute specifies the base path used to resolve relative URIs specified by the classid, data, and archive attributes. When absent, its default value is the base URI of the current document.

Parameters:
codebase - The base path

setCodetype

public void setCodetype(java.lang.String codetype)
This attribute specifies the content type of data expected when downloading the object specified by classid. This attribute is optional but recommended when classid is specified since it allows the user agent to avoid loading information for unsupported content types. When absent, it defaults to the value of the type attribute.

Parameters:
codetype - the codetype to set.

setArchive

public void setArchive(java.lang.String archive)
This attribute may be used to specify a space-separated list of URIs for archives containing resources relevant to the object, which may include the resources specified by the classid and data attributes. Preloading archives will generally result in reduced load times for objects. Archives specified as relative URIs should be interpreted relative to the codebase attribute.

Parameters:
archive - Space-separated list of URIs with resources relevant to the object

setStandby

public void setStandby(java.lang.String standby)

setParameter

public void setParameter(java.lang.String name,
                         java.lang.String value)
Sets an object parameter. Parameters are optional information, and they are passed to the instantiated object. Parameters are are stored as name value pairs. This overrides the previous value assigned to this parameter.

Parameters:
name - the name of the parameter.
value - the value of the parameter.

getParameter

public java.lang.String getParameter(java.lang.String name)
Gets the value of an object parameter. Parameters are optional information, and they are passed to the instantiated object. Parameters are are stored as name value pairs.

Returns:
the Value of parameter or null if not found.

removeParameter

public void removeParameter(java.lang.String name)
Removes an object parameter from the list.

Parameters:
name - the name of the parameter to remove.


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