|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.terminal.AbstractClientConnector com.vaadin.ui.AbstractComponent com.vaadin.ui.AbstractMedia
public abstract class AbstractMedia
Abstract base class for the HTML5 media components.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent |
---|
AbstractComponent.ComponentErrorEvent, AbstractComponent.ComponentErrorHandler |
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.terminal.Sizeable |
---|
Sizeable.Unit |
Field Summary |
---|
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 | |
---|---|
AbstractMedia()
|
Method Summary | |
---|---|
void |
addSource(Resource source)
Adds an alternative media file to the sources list. |
String |
getAltText()
|
List<Resource> |
getSources()
|
AbstractMediaState |
getState()
Returns the shared state bean with information to be sent from the server to the client. |
boolean |
isAutoplay()
|
boolean |
isHtmlContentAllowed()
|
boolean |
isMuted()
|
boolean |
isShowControls()
|
void |
pause()
Pauses the media. |
void |
play()
Starts playback of the media. |
void |
setAltText(String altText)
Sets the alternative text to be displayed if the browser does not support HTML5. |
void |
setAutoplay(boolean autoplay)
Sets whether the media is to automatically start playback when enough data has been loaded. |
void |
setHtmlContentAllowed(boolean htmlContentAllowed)
Set whether the alternative text ( setAltText(String) ) is
rendered as HTML or not. |
void |
setMuted(boolean muted)
Set whether to mute the audio or not. |
void |
setShowControls(boolean showControls)
Sets whether or not the browser should show native media controls. |
void |
setSource(Resource source)
Sets a single media file as the source of the media component. |
void |
setSources(Resource... sources)
Set multiple sources at once. |
Methods inherited from class com.vaadin.terminal.AbstractClientConnector |
---|
addExtension, addMethodInvocationToQueue, createState, getAllChildrenIterable, getConnectorId, getExtensions, getRpcManager, getRpcProxy, getStateType, registerRpc, registerRpc, removeExtension, requestRepaintAll, retrievePendingRpcCalls |
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.gwt.server.ClientConnector |
---|
getExtensions, getStateType, removeExtension, requestRepaintAll, retrievePendingRpcCalls |
Methods inherited from interface com.vaadin.terminal.gwt.client.Connector |
---|
getConnectorId |
Methods inherited from interface com.vaadin.terminal.gwt.server.RpcTarget |
---|
getRpcManager |
Constructor Detail |
---|
public AbstractMedia()
Method Detail |
---|
public AbstractMediaState getState()
AbstractComponent
getState
in interface Connector
getState
in interface Component
getState
in class AbstractComponent
public void setSource(Resource source)
source
- public void addSource(Resource source)
source
- public void setSources(Resource... sources)
sources
- public List<Resource> getSources()
public void setShowControls(boolean showControls)
showControls
- public boolean isShowControls()
public void setAltText(String altText)
setHtmlContentAllowed(boolean)
is set to true. With HTML
rendering, this method can also be used to implement fallback to a
flash-based player, see the Mozilla Developer Network for details.
altText
- public String getAltText()
public void setHtmlContentAllowed(boolean htmlContentAllowed)
setAltText(String)
) is
rendered as HTML or not.
htmlContentAllowed
- public boolean isHtmlContentAllowed()
setAltText(String)
) is to
be rendered as HTML.public void setAutoplay(boolean autoplay)
autoplay
- public boolean isAutoplay()
public void setMuted(boolean muted)
muted
- public boolean isMuted()
public void pause()
public void play()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |