Interface ITrack
- All Superinterfaces:
IComponent<ITrack>,IHtmlBasedComponent<ITrack>,IXulElement<ITrack>
Track component
It lets you specify some timed text tracks like captions or subtitles for media components
such as IAudio or Video ([EE]).
- Author:
- jumperchen
- See Also:
-
Track
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeITrack.static enumSpecifies the kind withwithKind(Kind)static classBuilds an updater of typeITrackforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetKind()Returns what kind of track it is.getLabel()Returns a readable description of this track.getSrc()Returns the source address of this track.Returns the language of the source.default StringReturns the client widget class.default booleanReturns if this track should be enabled by default.static ITrackReturns the instance with the given label.static ITrackReturns the instance with the given id.static ITrackofKind(ITrack.Kind kind) Returns the instance with the given kind.static ITrackReturns the instance with the given src.withAsDefault(boolean asDefault) Returns a copy ofthisimmutable component with the specifiedasDefault.Returns a copy ofthisimmutable component with the specifiedkind.default ITrackwithKind(ITrack.Kind kind) Returns a copy ofthisimmutable component with the specifiedkind.Returns a copy ofthisimmutable component with the specifiedlabel.Returns a copy ofthisimmutable component with the specifiedsrclang.withSrclang(String srclang) Returns a copy ofthisimmutable component with the specifiedsrclang.Methods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zul.med.Track"- Specified by:
getWidgetClassin interfaceIComponent<ITrack>
-
isAsDefault
default boolean isAsDefault()Returns if this track should be enabled by default.Default:
false. -
withAsDefault
Returns a copy ofthisimmutable component with the specifiedasDefault.Sets if this track should be enabled by default.
- Parameters:
asDefault- Whether this track should be enabled by default.Default:
false.- Returns:
- A modified copy of the
thisobject
-
getKind
Returns what kind of track it is.Default:
null. -
withKind
Returns a copy ofthisimmutable component with the specifiedkind.Sets what kind of track it is. The following keywords are accepted:
- subtitles
- captions
- descriptions
- chapters
- metadata
- Parameters:
kind- What kind of track it is.Default:
null.- Returns:
- A modified copy of the
thisobject
-
withKind
Returns a copy ofthisimmutable component with the specifiedkind.Sets what kind of track it is. The following keywords are accepted:
- subtitles
- captions
- descriptions
- chapters
- metadata
- Parameters:
kind- What kind of track it is.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getLabel
Returns a readable description of this track.Default:
null. -
withLabel
Returns a copy ofthisimmutable component with the specifiedlabel.Sets a readable description of this track.
- Parameters:
label- A readable description of this track.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getSrc
Returns the source address of this track.Default:
null. -
withSrc
Returns a copy ofthisimmutable component with the specifiedsrclang.Sets the source address of this track. Must be a valid URL. This attribute must be specified. The URL must have the same origin as the parent
<audio>or<video>, unless thecrossoriginattribute is set.- Parameters:
src- The source address of this track.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getSrclang
Returns the language of the source.Default:
null.- Returns:
- the language of the source.
-
withSrclang
Returns a copy ofthisimmutable component with the specifiedsrclang.Sets the language of the source.
- Parameters:
srclang- The language of the source.Default:
null.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given label.- Parameters:
label- The label of the component.
-
ofSrc
Returns the instance with the given src.- Parameters:
src- The src of the component.
-
ofKind
Returns the instance with the given kind.- Parameters:
kind- What kind of track it is.
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-