public class Source extends WebMarkupContainer
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING
Constructor and Description |
---|
Source(String id)
Creates a source
|
Source(String id,
IModel<?> model)
Creates a source
|
Source(String id,
IModel<?> model,
ResourceReference resourceReference)
Creates a source
|
Source(String id,
IModel<?> model,
ResourceReference resourceReference,
org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Creates a source
|
Source(String id,
IModel<?> model,
String url)
Creates a source
|
Source(String id,
ResourceReference resourceReference)
Creates a source
|
Source(String id,
ResourceReference resourceReference,
org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Creates a source
|
Source(String id,
String url)
Creates a source
|
Modifier and Type | Method and Description |
---|---|
boolean |
getDisplayType()
If the type is going to be displayed
|
String |
getMedia()
The media for which the content of this source should be shown
|
org.apache.wicket.request.mapper.parameter.PageParameters |
getPageParameters()
Gets the page parameter applied to the URL of the source
|
String |
getType()
Gets the type
|
protected void |
onComponentTag(ComponentTag tag)
Processes the component tag.
|
void |
setDisplayType(boolean displayType)
Sets if the type is going to be displayed
|
void |
setMedia(String media)
Sets the media for which the content of this source should be shown
<source src="movie.ogg" type="video/ogg" media="screen and (min-width:320px)"> |
void |
setPageParameters(org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Sets the page parameter applied to the URL of the source
|
void |
setType(String type)
Sets the type
* The following list shows some examples of how to use the codecs= MIME parameter in the type attribute. H.264 Constrained baseline profile video (main and extended video compatible) level 3 and Low-Complexity AAC audio in MP4 container <source src='video.mp4' type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> H.264 Extended profile video (baseline-compatible) level 3 and Low-Complexity AAC audio in MP4 container <source src='video.mp4' type='video/mp4; codecs="avc1.58A01E, mp4a.40.2"'> H.264 Main profile video level 3 and Low-Complexity AAC audio in MP4 container <source src='video.mp4' type='video/mp4; codecs="avc1.4D401E, mp4a.40.2"'> H.264 'High' profile video (incompatible with main, baseline, or extended profiles) level 3 and Low-Complexity AAC audio in MP4 container <source src='video.mp4' type='video/mp4; codecs="avc1.64001E, mp4a.40.2"'> MPEG-4 Visual Simple Profile Level 0 video and Low-Complexity AAC audio in MP4 container <source src='video.mp4' type='video/mp4; codecs="mp4v.20.8, mp4a.40.2"'> MPEG-4 Advanced Simple Profile Level 0 video and Low-Complexity AAC audio in MP4 container <source src='video.mp4' type='video/mp4; codecs="mp4v.20.240, mp4a.40.2"'> MPEG-4 Visual Simple Profile Level 0 video and AMR audio in 3GPP container <source src='video.3gp' type='video/3gpp; codecs="mp4v.20.8, samr"'> Theora video and Vorbis audio in Ogg container <source src='video.ogv' type='video/ogg; codecs="theora, vorbis"'> Theora video and Speex audio in Ogg container <source src='video.ogv' type='video/ogg; codecs="theora, speex"'> Vorbis audio alone in Ogg container <source src='audio.ogg' type='audio/ogg; codecs=vorbis'> Speex audio alone in Ogg container <source src='audio.spx' type='audio/ogg; codecs=speex'> FLAC audio alone in Ogg container <source src='audio.oga' type='audio/ogg; codecs=flac'> Dirac video and Vorbis audio in Ogg container <source src='video.ogv' type='video/ogg; codecs="dirac, vorbis"'> Theora video and Vorbis audio in Matroska container <source src='video.mkv' type='video/x-matroska; codecs="theora, vorbis"'> |
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, onDetach, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildren
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Source(String id)
id
- the component idpublic Source(String id, IModel<?> model)
id
- the component idmodel
- the internally used modelpublic Source(String id, ResourceReference resourceReference)
id
- the component idresourceReference
- the resource reference to provide the source datapublic Source(String id, IModel<?> model, ResourceReference resourceReference)
id
- the component idmodel
- the internally used modelresourceReference
- the resource reference to provide the source datapublic Source(String id, ResourceReference resourceReference, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
id
- the component idpageParameters
- the the page parameters applied to the source URLresourceReference
- the resource reference to provide the source datapublic Source(String id, IModel<?> model, ResourceReference resourceReference, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
id
- the component idmodel
- the internally used modelresourceReference
- the resource reference to provide the source datapageParameters
- the the page parameters applied to the source URLpublic Source(String id, String url)
id
- the component idurl
- an external URL to provide the source informationprotected void onComponentTag(ComponentTag tag)
Component
onComponentTag
in class Component
tag
- Tag to modifypublic boolean getDisplayType()
public void setDisplayType(boolean displayType)
displayType
- if the type is going to be displayedpublic String getType()
#setType(String)}
public void setType(String type)
type
- the type of this media elementpublic String getMedia()
public void setMedia(String media)
media
- the media for which to content of this source should be shownpublic org.apache.wicket.request.mapper.parameter.PageParameters getPageParameters()
public void setPageParameters(org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
pageParameters
- the page parameter which are going to be applied to the URL of the sourceCopyright © 2006–2020 Apache Software Foundation. All rights reserved.