THIS - Self-referential generic THISpublic interface FluentMedia<THIS extends FluentMedia<THIS>> extends FluentAbstractComponent<THIS>
AbstractMediaAbstractMediaFluentComponent.FluentFocusable<C extends FluentComponent.FluentFocusable<C>>com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Modifier and Type | Method and Description |
|---|---|
default THIS |
withAltText(String altText)
Sets the alternative text to be displayed if the browser does not support
HTML5.
|
default THIS |
withAutoplay(boolean autoplay)
Sets whether the media is to automatically start playback when enough
data has been loaded.
|
default THIS |
withHtmlContentAllowed(boolean htmlContentAllowed)
Set whether the alternative text (
AbstractMedia.setAltText(String)) is
rendered as HTML or not. |
default THIS |
withLoop(boolean loop)
Enables or disables looping.
|
default THIS |
withMuted(boolean muted)
Set whether to mute the audio or not.
|
default THIS |
withPreload(com.vaadin.shared.ui.PreloadMode preload)
Sets the preload attribute that is intended to provide a hint to the
browser how the media should be preloaded.
|
default THIS |
withShowControls(boolean showControls)
Sets whether or not the browser should show native media controls.
|
default THIS |
withSource(com.vaadin.server.Resource source)
Sets a single media file as the source of the media component.
|
default THIS |
withSources(com.vaadin.server.Resource... sources)
Set multiple sources at once.
|
withCaption, withCaptionAsHtml, withComponentError, withData, withDescription, withDescription, withLocale, withResponsive, withShortcutListener, withStyleNamewithCaption, withEnabled, withIcon, withId, withParent, withPrimaryStyleName, withStyleName, withStyleName, withVisibleaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerwithFullHeight, withFullSize, withFullWidth, withHeight, withHeight, withSize, withUndefinedHeight, withUndefinedSize, withUndefinedWidth, withWidth, withWidthgetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedwithAttachListener, withDetachListenerwithContextClickListenerdefault THIS withAltText(String altText)
withHtmlContentAllowed(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 - the alternate text if video is unavailableAbstractMedia.setAltText(String)default THIS withAutoplay(boolean autoplay)
autoplay - if true, enable autoplayAbstractMedia.setAutoplay(boolean)default THIS withHtmlContentAllowed(boolean htmlContentAllowed)
AbstractMedia.setAltText(String)) is
rendered as HTML or not.htmlContentAllowed - true if alternated text may contain html, false otherwiseAbstractMedia.setHtmlContentAllowed(boolean)default THIS withLoop(boolean loop)
loop - if true, enable loopingAbstractMedia.setLoop(boolean)default THIS withMuted(boolean muted)
muted - if true, media is mutedAbstractMedia.setMuted(boolean)default THIS withPreload(com.vaadin.shared.ui.PreloadMode preload)
preload - preload modeAbstractMedia.setPreload(PreloadMode)default THIS withShowControls(boolean showControls)
showControls - if true, controls are visibleAbstractMedia.setShowControls(boolean)default THIS withSource(com.vaadin.server.Resource source)
source - the media sourceAbstractMedia.setSource(Resource)default THIS withSources(com.vaadin.server.Resource... sources)
sources - the media sourcesAbstractMedia.setSources(Resource...)Copyright © 2017 Jean-Christophe Fortier. All rights reserved.