HTML and CSS Reference
In-Depth Information
/**
* Sets the label of the text track for display.
*
* @param label Label of the text track for display
*/
public void setLabel(String label) {
this.label = label;
}
/**
* Gets the {@link Locale} of the text track.
*
* @return {@link Locale} of the text track
*/
public Locale getLocale() {
return locale;
}
/**
* Sets the {@link Locale} of the text track.
*
* @param locale {@link Locale} of the text track
*/
public void setLocale(Locale locale) {
this.locale = locale;
}
}
The sources and tracks collections are embedded inside the video element, and the
sources
and
tracks
attributes are added to the component as seen in Listing 8-11.
Listing 8-11.
Supporting the Sources and Tracks Collections in the Composite Component
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="
http://www.w3.org/1999/xhtml
"
xmlns:cc="
http://xmlns.jcp.org/jsf/composite
"
xmlns:jsf="
http://xmlns.jcp.org/jsf
"
xmlns:c="
http://xmlns.jcp.org/jsp/jstl/core
"
xmlns:f="
http://xmlns.jcp.org/jsf/core
"
>
<cc:interface componentType="UIMediaComponent">
<!-- OMITTED FOR READABILITY //-->
<cc:attribute name="sources" type="java.util.Collection"
shortDescription="Collection of alternative MediaSources. " />
<cc:attribute name="tracks" type="java.util.Collection"
shortDescription="Collection of MediaTracks. " />
</cc:interface>