|
||||||||||
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.Embedded
public class Embedded
Component for embedding external objects.
As of Vaadin 7.0, the Image
, Flash
, and BrowserFrame
components should be used instead of Embedded
for displaying
images, Adobe Flash objects, and embedded web pages, respectively.
Embedded
is still useful for displaying other multimedia content
such as applets and PDF documents.
Video
,
Audio
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent |
---|
AbstractComponent.ComponentErrorEvent, AbstractComponent.ComponentErrorHandler |
Nested classes/interfaces inherited from interface com.vaadin.server.VariableOwner |
---|
VariableOwner.ErrorEvent |
Nested classes/interfaces inherited from interface com.vaadin.ui.Component |
---|
Component.ErrorEvent, Component.ErrorListener, Component.Event, Component.Focusable, Component.Listener |
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable |
---|
Sizeable.Unit |
Field Summary | |
---|---|
static int |
TYPE_BROWSER
Deprecated. As of 7.0, use the BrowserFrame component instead. |
static int |
TYPE_IMAGE
Deprecated. As of 7.0, use the Image component instead. |
static int |
TYPE_OBJECT
General object type. |
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 | |
---|---|
Embedded()
Creates a new empty Embedded object. |
|
Embedded(java.lang.String caption)
Creates a new empty Embedded object with caption. |
|
Embedded(java.lang.String caption,
Resource source)
Creates a new Embedded object whose contents is loaded from given resource. |
Method Summary | |
---|---|
void |
addClickListener(MouseEvents.ClickListener listener)
Add a click listener to the component. |
void |
addListener(MouseEvents.ClickListener listener)
Deprecated. Since 7.0, replaced by #addClickListener(ClickListener) |
void |
changeVariables(java.lang.Object source,
java.util.Map<java.lang.String,java.lang.Object> variables)
Called when one or more variables handled by the implementing class are changed. |
java.lang.String |
getAlternateText()
Gets this component's "alt-text". |
java.lang.String |
getArchive()
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. |
java.lang.String |
getClassId()
This attribute may be used to specify the location of an object's implementation via a URI. |
java.lang.String |
getCodebase()
This attribute specifies the base path used to resolve relative URIs specified by the classid, data, and archive attributes. |
java.lang.String |
getCodetype()
Gets the MIME-Type of the code. |
java.lang.String |
getMimeType()
Gets the MIME-Type of the object. |
java.lang.String |
getParameter(java.lang.String name)
Gets the value of an object parameter. |
java.util.Iterator<java.lang.String> |
getParameterNames()
Gets the embedded object parameter names. |
Resource |
getSource()
Gets the resource contained in the embedded object. |
java.lang.String |
getStandby()
This attribute specifies a message that a user agent may render while loading the object's implementation and data. |
int |
getType()
Gets the type of the embedded object. |
void |
paintContent(PaintTarget target)
Invoked when the component state should be painted. |
void |
removeClickListener(MouseEvents.ClickListener listener)
Remove a click listener from the component. |
void |
removeListener(MouseEvents.ClickListener listener)
Deprecated. Since 7.0, replaced by #removeClickListener(ClickListener) |
void |
removeParameter(java.lang.String name)
Removes an object parameter from the list. |
void |
setAlternateText(java.lang.String altText)
Sets this component's "alt-text", that is, an alternate text that can be presented instead of this component's normal content, for accessibility purposes. |
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 |
setClassId(java.lang.String classId)
This attribute may be used to specify the location of an object's implementation via a URI. |
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 |
setMimeType(java.lang.String mimeType)
Sets the mimeType, the MIME-Type of the object. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets an object parameter. |
void |
setSource(Resource source)
Sets the object source resource. |
void |
setStandby(java.lang.String standby)
This attribute specifies a message that a user agent may render while loading the object's implementation and data. |
void |
setType(int type)
Sets the object type. |
Methods inherited from class com.vaadin.server.AbstractClientConnector |
---|
addExtension, addMethodInvocationToQueue, createState, encodeState, getAllChildrenIterable, getConnectorId, getExtensions, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, 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.server.LegacyComponent |
---|
markAsDirty |
Methods inherited from interface com.vaadin.server.VariableOwner |
---|
isEnabled, isImmediate |
Methods inherited from interface com.vaadin.ui.Component |
---|
addListener, addStyleName, attach, getCaption, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setPrimaryStyleName, setReadOnly, setStyleName, setVisible |
Methods inherited from interface com.vaadin.server.ClientConnector |
---|
beforeClientResponse, detach, encodeState, getExtensions, getStateType, handleConnectorRequest, isConnectorEnabled, markAsDirtyRecursive, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setParent |
Methods inherited from interface com.vaadin.shared.Connector |
---|
getConnectorId |
Methods inherited from interface com.vaadin.server.RpcTarget |
---|
getRpcManager |
Methods inherited from interface com.vaadin.server.Sizeable |
---|
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setSizeFull, setSizeUndefined, setWidth, setWidth |
Field Detail |
---|
public static final int TYPE_OBJECT
@Deprecated public static final int TYPE_IMAGE
Image
component instead.
@Deprecated public static final int TYPE_BROWSER
BrowserFrame
component instead.
Constructor Detail |
---|
public Embedded()
public Embedded(java.lang.String caption)
caption
- public Embedded(java.lang.String caption, Resource source)
caption
- source
- the Source of the embedded object.Method Detail |
---|
public void paintContent(PaintTarget target) throws PaintException
paintContent
in interface LegacyComponent
target
- the target UIDL stream where the component should paint itself
to.
PaintException
- if the paint operation failed.public void setAlternateText(java.lang.String altText)
setType(int)
has been called with
TYPE_BROWSER
.
altText
- A short, human-readable description of this component's
content.public java.lang.String getAlternateText()
setAlternateText(String)
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 java.util.Iterator<java.lang.String> getParameterNames()
public java.lang.String getCodebase()
public java.lang.String getCodetype()
public java.lang.String getMimeType()
public java.lang.String getStandby()
public void setCodebase(java.lang.String codebase)
codebase
- The base pathpublic void setCodetype(java.lang.String codetype)
codetype
- the codetype to set.public void setMimeType(java.lang.String mimeType)
mimeType
- the mimeType to set.public void setStandby(java.lang.String standby)
standby
- The text to display while loadingpublic java.lang.String getClassId()
public void setClassId(java.lang.String classId)
classId
- the classId to set.public Resource getSource()
public int getType()
This can be one of the following:
public void setSource(Resource source)
source
- the source to set.public void setType(int type)
This can be one of the following:
TYPE_OBJECT
(This is the default)
TYPE_IMAGE
(Deprecated)
TYPE_BROWSER
(Deprecated)
type
- the type to set.public java.lang.String getArchive()
public void setArchive(java.lang.String archive)
archive
- Space-separated list of URIs with resources relevant to the
objectpublic void addClickListener(MouseEvents.ClickListener listener)
#removeListener(ClickListener)
to remove the listener.
listener
- The listener to add@Deprecated public void addListener(MouseEvents.ClickListener listener)
#addClickListener(ClickListener)
public void removeClickListener(MouseEvents.ClickListener listener)
#addListener(ClickListener)
.
listener
- The listener to remove@Deprecated public void removeListener(MouseEvents.ClickListener listener)
#removeClickListener(ClickListener)
public void changeVariables(java.lang.Object source, java.util.Map<java.lang.String,java.lang.Object> variables)
VariableOwner
changeVariables
in interface VariableOwner
source
- the Source of the variable change. This is the origin of the
event. For example in Web Adapter this is the request.variables
- the Mapping from variable names to new variable values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |