|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractEmbedded
com.vaadin.ui.Flash
public class Flash
A component for displaying Adobe® Flash® content.
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 class com.vaadin.ui.AbstractComponent |
---|
DESIGN_ATTR_PLAIN_TEXT |
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 |
getArchive()
Returns current archive. |
java.lang.String |
getCodebase()
Returns the codebase. |
java.lang.String |
getCodetype()
Returns the current codetype. |
java.lang.String |
getParameter(java.lang.String name)
Gets the value of an object parameter. |
java.lang.Iterable<java.lang.String> |
getParameterNames()
Returns an iterable with declared parameter names. |
java.lang.String |
getStandby()
Returns standby. |
protected com.vaadin.shared.ui.flash.FlashState |
getState()
Returns the shared state bean with information to be sent from the server to the client. |
protected com.vaadin.shared.ui.flash.FlashState |
getState(boolean markAsDirty)
Returns the shared state for this connector. |
void |
readDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
Reads the component state from the given design. |
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)
Sets standby. |
void |
writeDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
Writes the component state to the given design. |
Methods inherited from class com.vaadin.ui.AbstractEmbedded |
---|
getAlternateText, getCustomAttributes, getSource, setAlternateText, setSource |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, 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 |
---|
public Flash()
public Flash(java.lang.String caption)
caption
- The caption for the componentpublic Flash(java.lang.String caption, Resource source)
caption
- The caption for the componentsource
- A Resource representing the Flash content that should be
displayedMethod Detail |
---|
protected com.vaadin.shared.ui.flash.FlashState getState()
AbstractComponent
getState
in class AbstractEmbedded
protected com.vaadin.shared.ui.flash.FlashState getState(boolean markAsDirty)
AbstractClientConnector
getState
in class AbstractEmbedded
markAsDirty
- true if the connector should automatically be marked dirty,
false otherwise
AbstractClientConnector.getState()
public void setCodebase(java.lang.String codebase)
codebase
- The base pathpublic java.lang.String getCodebase()
setCodebase(String)
public void setCodetype(java.lang.String codetype)
codetype
- the codetype to set.public java.lang.String getCodetype()
setCodetype(String)
public void setArchive(java.lang.String archive)
archive
- Space-separated list of URIs with resources relevant to the
objectpublic java.lang.String getArchive()
setArchive(String)
public void setStandby(java.lang.String standby)
standby
- Standby string.public java.lang.String getStandby()
public void setParameter(java.lang.String name, java.lang.String value)
name
- the name of the parameter.value
- the value of the parameter.public java.lang.String getParameter(java.lang.String name)
public void removeParameter(java.lang.String name)
name
- the name of the parameter to remove.public void writeDesign(org.jsoup.nodes.Element design, DesignContext designContext)
Component
The component is responsible not only for writing its own state but also for ensuring that its children write their state to the design.
This method must not modify the component state.
writeDesign
in interface Component
writeDesign
in class AbstractEmbedded
design
- The element to write the component state to. Any previous
attributes or child nodes are not cleared.designContext
- The DesignContext instance used for writing the designpublic java.lang.Iterable<java.lang.String> getParameterNames()
setParameter(String, String)
,
getParameter(String)
public void readDesign(org.jsoup.nodes.Element design, DesignContext designContext)
Component
The component is responsible not only for updating its own state but also for ensuring that its children update their state based on the design.
It is assumed that the component is in its default state when this method is called. Reading should only take into consideration attributes specified in the design and not reset any unspecified attributes to their defaults.
This method must not modify the design.
readDesign
in interface Component
readDesign
in class AbstractEmbedded
design
- The element to obtain the state fromdesignContext
- The DesignContext instance used for parsing the design
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |