![JAR search and dependency download from the Maven repository](/logo.png)
org.apache.juneau.dto.html5.Audio Maven / Gradle / Ivy
// ***************************************************************************************************************************
// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *
// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *
// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance *
// * with the License. You may obtain a copy of the License at *
// * *
// * http://www.apache.org/licenses/LICENSE-2.0 *
// * *
// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an *
// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the *
// * specific language governing permissions and limitations under the License. *
// ***************************************************************************************************************************
package org.apache.juneau.dto.html5;
import java.net.*;
import org.apache.juneau.*;
import org.apache.juneau.annotation.*;
import org.apache.juneau.internal.*;
/**
* DTO for an HTML <audio>
* element.
*
* See Also:
*/
@Bean(typeName="audio")
@FluentSetters
public class Audio extends HtmlElementContainer {
/**
* Creates an empty {@link Audio} element.
*/
public Audio() {}
/**
* Creates an {@link Audio} element with the specified {@link Audio#src(Object)} attribute.
*
* @param src The {@link Audio#src(Object)} attribute.
*/
public Audio(String src) {
src(src);
}
/**
* autoplay
* attribute.
*
*
* Hint that the media resource can be started automatically when the page is loaded.
*
* @param autoplay
* The new value for this attribute.
* Typically a {@link Boolean} or {@link String}.
* @return This object.
*/
public final Audio autoplay(Object autoplay) {
attr("autoplay", deminimize(autoplay, "autoplay"));
return this;
}
/**
* controls
* attribute.
*
*
* Show user agent controls.
*
* @param controls
* The new value for this attribute.
* Typically a {@link Boolean} or {@link String}.
* @return This object.
*/
public final Audio controls(Object controls) {
attr("controls", deminimize(controls, "controls"));
return this;
}
/**
* crossorigin
* attribute.
*
*
* How the element handles cross-origin requests.
*
* @param crossorigin The new value for this attribute.
* @return This object.
*/
public final Audio crossorigin(String crossorigin) {
attr("crossorigin", crossorigin);
return this;
}
/**
* loop attribute.
*
*
* Whether to loop the media resource.
*
* @param loop
* The new value for this attribute.
* Typically a {@link Boolean} or {@link String}.
* @return This object.
*/
public final Audio loop(Object loop) {
attr("loop", loop);
return this;
}
/**
* mediagroup
* attribute.
*
*
* Groups media elements together with an implicit MediaController.
*
* @param mediagroup The new value for this attribute.
* @return This object.
*/
public final Audio mediagroup(String mediagroup) {
attr("mediagroup", mediagroup);
return this;
}
/**
* muted
* attribute.
*
*
* Whether to mute the media resource by default.
*
* @param muted
* The new value for this attribute.
* Typically a {@link Boolean} or {@link String}.
* @return This object.
*/
public final Audio muted(Object muted) {
attr("muted", muted);
return this;
}
/**
* preload
* attribute.
*
*
* Hints how much buffering the media resource will likely need.
*
* @param preload The new value for this attribute.
* @return This object.
*/
public final Audio preload(Object preload) {
attr("preload", preload);
return this;
}
/**
* src attribute.
*
*
* Address of the resource.
*
*
* The value can be of any of the following types: {@link URI}, {@link URL}, {@link String}.
* Strings must be valid URIs.
*
*
* URIs defined by {@link UriResolver} can be used for values.
*
* @param src
* The new value for this attribute.
* Typically a {@link URL} or {@link String}.
* @return This object.
*/
public final Audio src(Object src) {
attrUri("src", src);
return this;
}
//-----------------------------------------------------------------------------------------------------------------
// Overridden methods
//-----------------------------------------------------------------------------------------------------------------
//
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio _class(String _class) {
super._class(_class);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio accesskey(String accesskey) {
super.accesskey(accesskey);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio contenteditable(Object contenteditable) {
super.contenteditable(contenteditable);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio dir(String dir) {
super.dir(dir);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio hidden(Object hidden) {
super.hidden(hidden);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio id(String id) {
super.id(id);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio lang(String lang) {
super.lang(lang);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onabort(String onabort) {
super.onabort(onabort);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onblur(String onblur) {
super.onblur(onblur);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio oncancel(String oncancel) {
super.oncancel(oncancel);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio oncanplay(String oncanplay) {
super.oncanplay(oncanplay);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio oncanplaythrough(String oncanplaythrough) {
super.oncanplaythrough(oncanplaythrough);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onchange(String onchange) {
super.onchange(onchange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onclick(String onclick) {
super.onclick(onclick);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio oncuechange(String oncuechange) {
super.oncuechange(oncuechange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio ondblclick(String ondblclick) {
super.ondblclick(ondblclick);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio ondurationchange(String ondurationchange) {
super.ondurationchange(ondurationchange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onemptied(String onemptied) {
super.onemptied(onemptied);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onended(String onended) {
super.onended(onended);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onerror(String onerror) {
super.onerror(onerror);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onfocus(String onfocus) {
super.onfocus(onfocus);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio oninput(String oninput) {
super.oninput(oninput);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio oninvalid(String oninvalid) {
super.oninvalid(oninvalid);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onkeydown(String onkeydown) {
super.onkeydown(onkeydown);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onkeypress(String onkeypress) {
super.onkeypress(onkeypress);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onkeyup(String onkeyup) {
super.onkeyup(onkeyup);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onload(String onload) {
super.onload(onload);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onloadeddata(String onloadeddata) {
super.onloadeddata(onloadeddata);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onloadedmetadata(String onloadedmetadata) {
super.onloadedmetadata(onloadedmetadata);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onloadstart(String onloadstart) {
super.onloadstart(onloadstart);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onmousedown(String onmousedown) {
super.onmousedown(onmousedown);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onmouseenter(String onmouseenter) {
super.onmouseenter(onmouseenter);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onmouseleave(String onmouseleave) {
super.onmouseleave(onmouseleave);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onmousemove(String onmousemove) {
super.onmousemove(onmousemove);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onmouseout(String onmouseout) {
super.onmouseout(onmouseout);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onmouseover(String onmouseover) {
super.onmouseover(onmouseover);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onmouseup(String onmouseup) {
super.onmouseup(onmouseup);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onmousewheel(String onmousewheel) {
super.onmousewheel(onmousewheel);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onpause(String onpause) {
super.onpause(onpause);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onplay(String onplay) {
super.onplay(onplay);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onplaying(String onplaying) {
super.onplaying(onplaying);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onprogress(String onprogress) {
super.onprogress(onprogress);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onratechange(String onratechange) {
super.onratechange(onratechange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onreset(String onreset) {
super.onreset(onreset);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onresize(String onresize) {
super.onresize(onresize);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onscroll(String onscroll) {
super.onscroll(onscroll);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onseeked(String onseeked) {
super.onseeked(onseeked);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onseeking(String onseeking) {
super.onseeking(onseeking);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onselect(String onselect) {
super.onselect(onselect);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onshow(String onshow) {
super.onshow(onshow);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onstalled(String onstalled) {
super.onstalled(onstalled);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onsubmit(String onsubmit) {
super.onsubmit(onsubmit);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onsuspend(String onsuspend) {
super.onsuspend(onsuspend);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio ontimeupdate(String ontimeupdate) {
super.ontimeupdate(ontimeupdate);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio ontoggle(String ontoggle) {
super.ontoggle(ontoggle);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onvolumechange(String onvolumechange) {
super.onvolumechange(onvolumechange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio onwaiting(String onwaiting) {
super.onwaiting(onwaiting);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio spellcheck(Object spellcheck) {
super.spellcheck(spellcheck);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio style(String style) {
super.style(style);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio tabindex(Object tabindex) {
super.tabindex(tabindex);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio title(String title) {
super.title(title);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Audio translate(Object translate) {
super.translate(translate);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElementContainer */
public Audio child(Object child) {
super.child(child);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElementContainer */
public Audio children(Object...children) {
super.children(children);
return this;
}
//
}