![JAR search and dependency download from the Maven repository](/logo.png)
org.apache.juneau.dto.html5.Video 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 <video>
* element.
*
* See Also:
*/
@Bean(typeName="video")
@FluentSetters
public class Video extends HtmlElementContainer {
/**
* Creates an empty {@link Video} element.
*/
public Video() {}
/**
* Creates a {@link Video} element with the specified {@link Video#src(Object)} attribute.
*
* @param src The {@link Video#src(Object)} attribute.
*/
public Video(Object 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 Video 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 Video 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 Video crossorigin(String crossorigin) {
attr("crossorigin", crossorigin);
return this;
}
/**
* height
* attribute.
*
*
* Vertical dimension.
*
* @param height
* The new value for this attribute.
* Typically a {@link Number} or {@link String}.
* @return This object.
*/
public final Video height(Object height) {
attr("height", height);
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 Video 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 Video 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 Video muted(Object muted) {
attr("muted", muted);
return this;
}
/**
* poster
* attribute.
*
*
* Poster frame to show prior to video playback.
*
* @param poster The new value for this attribute.
* @return This object.
*/
public final Video poster(String poster) {
attr("poster", poster);
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 Video preload(String 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 Video src(Object src) {
attrUri("src", src);
return this;
}
/**
* width attribute.
*
*
* Horizontal dimension.
*
* @param width
* The new value for this attribute.
* Typically a {@link Number} or {@link String}.
* @return This object.
*/
public final Video width(Object width) {
attr("width", width);
return this;
}
//-----------------------------------------------------------------------------------------------------------------
// Overridden methods
//-----------------------------------------------------------------------------------------------------------------
//
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video _class(String _class) {
super._class(_class);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video accesskey(String accesskey) {
super.accesskey(accesskey);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video contenteditable(Object contenteditable) {
super.contenteditable(contenteditable);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video dir(String dir) {
super.dir(dir);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video hidden(Object hidden) {
super.hidden(hidden);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video id(String id) {
super.id(id);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video lang(String lang) {
super.lang(lang);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onabort(String onabort) {
super.onabort(onabort);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onblur(String onblur) {
super.onblur(onblur);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video oncancel(String oncancel) {
super.oncancel(oncancel);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video oncanplay(String oncanplay) {
super.oncanplay(oncanplay);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video oncanplaythrough(String oncanplaythrough) {
super.oncanplaythrough(oncanplaythrough);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onchange(String onchange) {
super.onchange(onchange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onclick(String onclick) {
super.onclick(onclick);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video oncuechange(String oncuechange) {
super.oncuechange(oncuechange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video ondblclick(String ondblclick) {
super.ondblclick(ondblclick);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video ondurationchange(String ondurationchange) {
super.ondurationchange(ondurationchange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onemptied(String onemptied) {
super.onemptied(onemptied);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onended(String onended) {
super.onended(onended);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onerror(String onerror) {
super.onerror(onerror);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onfocus(String onfocus) {
super.onfocus(onfocus);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video oninput(String oninput) {
super.oninput(oninput);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video oninvalid(String oninvalid) {
super.oninvalid(oninvalid);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onkeydown(String onkeydown) {
super.onkeydown(onkeydown);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onkeypress(String onkeypress) {
super.onkeypress(onkeypress);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onkeyup(String onkeyup) {
super.onkeyup(onkeyup);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onload(String onload) {
super.onload(onload);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onloadeddata(String onloadeddata) {
super.onloadeddata(onloadeddata);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onloadedmetadata(String onloadedmetadata) {
super.onloadedmetadata(onloadedmetadata);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onloadstart(String onloadstart) {
super.onloadstart(onloadstart);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onmousedown(String onmousedown) {
super.onmousedown(onmousedown);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onmouseenter(String onmouseenter) {
super.onmouseenter(onmouseenter);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onmouseleave(String onmouseleave) {
super.onmouseleave(onmouseleave);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onmousemove(String onmousemove) {
super.onmousemove(onmousemove);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onmouseout(String onmouseout) {
super.onmouseout(onmouseout);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onmouseover(String onmouseover) {
super.onmouseover(onmouseover);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onmouseup(String onmouseup) {
super.onmouseup(onmouseup);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onmousewheel(String onmousewheel) {
super.onmousewheel(onmousewheel);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onpause(String onpause) {
super.onpause(onpause);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onplay(String onplay) {
super.onplay(onplay);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onplaying(String onplaying) {
super.onplaying(onplaying);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onprogress(String onprogress) {
super.onprogress(onprogress);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onratechange(String onratechange) {
super.onratechange(onratechange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onreset(String onreset) {
super.onreset(onreset);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onresize(String onresize) {
super.onresize(onresize);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onscroll(String onscroll) {
super.onscroll(onscroll);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onseeked(String onseeked) {
super.onseeked(onseeked);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onseeking(String onseeking) {
super.onseeking(onseeking);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onselect(String onselect) {
super.onselect(onselect);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onshow(String onshow) {
super.onshow(onshow);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onstalled(String onstalled) {
super.onstalled(onstalled);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onsubmit(String onsubmit) {
super.onsubmit(onsubmit);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onsuspend(String onsuspend) {
super.onsuspend(onsuspend);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video ontimeupdate(String ontimeupdate) {
super.ontimeupdate(ontimeupdate);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video ontoggle(String ontoggle) {
super.ontoggle(ontoggle);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onvolumechange(String onvolumechange) {
super.onvolumechange(onvolumechange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video onwaiting(String onwaiting) {
super.onwaiting(onwaiting);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video spellcheck(Object spellcheck) {
super.spellcheck(spellcheck);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video style(String style) {
super.style(style);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video tabindex(Object tabindex) {
super.tabindex(tabindex);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video title(String title) {
super.title(title);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Video translate(Object translate) {
super.translate(translate);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElementContainer */
public Video child(Object child) {
super.child(child);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElementContainer */
public Video children(Object...children) {
super.children(children);
return this;
}
//
}