public class Track extends WebMarkupContainer
Modifier and Type | Class and Description |
---|---|
static class |
Track.Kind
To be used for the kind attribute
|
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS
Constructor and Description |
---|
Track(String id)
Creates a track
|
Track(String id,
IModel<?> model)
Creates a track
|
Track(String id,
IModel<?> model,
ResourceReference resourceReference)
Creates a track
|
Track(String id,
IModel<?> model,
ResourceReference resourceReference,
PageParameters pageParameters)
Creates a track
|
Track(String id,
IModel<?> model,
String url)
Creates a track
|
Track(String id,
ResourceReference resourceReference)
Creates a track
|
Track(String id,
ResourceReference resourceReference,
PageParameters pageParameters)
Creates a track
|
Track(String id,
String url)
Creates a track
|
Modifier and Type | Method and Description |
---|---|
Track.Kind |
getKind()
Gets the kind of the track belongs to the media component
|
String |
getLabel()
The label for this track
|
PageParameters |
getPageParameters()
Gets the page parameter applied to the URL of the track
|
Locale |
getSrclang()
Gets the src lang
|
boolean |
isDefaultTrack()
If the track is the default track
|
protected void |
onComponentTag(ComponentTag tag)
Processes the component tag.
|
void |
setDefaultTrack(Boolean defaultTrack)
Sets if this track is the default track
|
void |
setKind(Track.Kind kind)
Sets the kind of the track belongs to the media component
SUBTITLES: Transcription or translation of the dialogue, suitable for when the sound is available but not understood (e.g. |
void |
setLabel(String label)
Sets the label for this track
|
void |
setPageParameters(PageParameters pageParameters)
Sets the page parameter applied to the URL of the track
|
void |
setSrclang(Locale srclang)
Sets the src lang
|
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 Track(String id)
id
- the component idpublic Track(String id, IModel<?> model)
id
- the component idmodel
- the internally used modelpublic Track(String id, ResourceReference resourceReference)
id
- the component idresourceReference
- the resource reference to provide track information - like .vttpublic Track(String id, IModel<?> model, ResourceReference resourceReference)
id
- the component idmodel
- the internally used modelresourceReference
- the resource reference to provide track information - like .vttpublic Track(String id, ResourceReference resourceReference, PageParameters pageParameters)
id
- the component idresourceReference
- the resource reference to provide track information - like .vttpageParameters
- the page parameters applied to the track URLpublic Track(String id, IModel<?> model, ResourceReference resourceReference, PageParameters pageParameters)
id
- the component idmodel
- the internally used modelresourceReference
- the resource reference to provide track information - like .vttpageParameters
- the page parameters applied to the track URLpublic Track(String id, String url)
id
- the component idurl
- an external URL to provide the track informationprotected void onComponentTag(ComponentTag tag)
Component
onComponentTag
in class Component
tag
- Tag to modifypublic Track.Kind getKind()
#setKind(Kind)}
public void setKind(Track.Kind kind)
kind
- the kindpublic String getLabel()
public void setLabel(String label)
label
- the label to be setpublic boolean isDefaultTrack()
public void setDefaultTrack(Boolean defaultTrack)
defaultTrack
- if the track is the default trackpublic Locale getSrclang()
public void setSrclang(Locale srclang)
srclang
- the src lang to setpublic PageParameters getPageParameters()
public void setPageParameters(PageParameters pageParameters)
pageParameters
- the page parameter which are going to be applied to the URL of the trackCopyright © 2006–2022 Apache Software Foundation. All rights reserved.