![JAR search and dependency download from the Maven repository](/logo.png)
org.apache.juneau.dto.html5.Button 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 <button>
* element.
*
* See Also:
*/
@Bean(typeName="button")
@FluentSetters
public class Button extends HtmlElementMixed {
/**
* Creates an empty {@link Button} element.
*/
public Button() {}
/**
* Creates a {@link Button} element with the specified {@link Button#type(String)} attribute.
*
* @param type The {@link Button#type(String)} attribute.
*/
public Button(String type) {
type(type);
}
/**
* Creates a {@link Button} element with the specified {@link Button#type(String)} attribute and
* {@link Button#children(Object[])} nodes.
*
* @param type The {@link Button#type(String)} attribute.
* @param children The {@link Button#children(Object[])} nodes.
*/
public Button(String type, Object...children) {
type(type).children(children);
}
/**
* autofocus attribute.
*
*
* Automatically focus the form control when the page is loaded.
*
* @param autofocus
* The new value for this attribute.
* Typically a {@link Boolean} or {@link String}.
* @return This object.
*/
public final Button autofocus(Object autofocus) {
attr("autofocus", autofocus);
return this;
}
/**
* disabled attribute.
*
*
* Whether the form control is disabled.
*
* @param disabled
* The new value for this attribute.
* Typically a {@link Boolean} or {@link String}.
* @return This object.
*/
public final Button disabled(Object disabled) {
attr("disabled", deminimize(disabled, "disabled"));
return this;
}
/**
* form attribute.
*
*
* Associates the control with a form element.
*
* @param form The new value for this attribute.
* @return This object.
*/
public final Button form(String form) {
attr("form", form);
return this;
}
/**
* formaction attribute.
*
*
* URL to use for form submission.
*
*
* 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 formaction The new value for this attribute.
* @return This object.
*/
public final Button formaction(String formaction) {
attrUri("formaction", formaction);
return this;
}
/**
* formenctype attribute.
*
*
* Form data set encoding type to use for form submission.
*
* @param formenctype The new value for this attribute.
* @return This object.
*/
public final Button formenctype(String formenctype) {
attr("formenctype", formenctype);
return this;
}
/**
* formmethod attribute.
*
*
* HTTP method to use for form submission.
*
* @param formmethod The new value for this attribute.
* @return This object.
*/
public final Button formmethod(String formmethod) {
attr("formmethod", formmethod);
return this;
}
/**
* formnovalidate
* attribute.
*
*
* Bypass form control validation for form submission.
*
* @param formnovalidate The new value for this attribute.
* @return This object.
*/
public final Button formnovalidate(String formnovalidate) {
attr("formnovalidate", formnovalidate);
return this;
}
/**
* formtarget attribute.
*
*
* Browsing context for form submission.
*
* @param formtarget The new value for this attribute.
* @return This object.
*/
public final Button formtarget(String formtarget) {
attr("formtarget", formtarget);
return this;
}
/**
* menu attribute.
*
*
* Specifies the element's designated pop-up menu.
*
* @param menu The new value for this attribute.
* @return This object.
*/
public final Button menu(String menu) {
attr("menu", menu);
return this;
}
/**
* name attribute.
*
*
* Name of form control to use for form submission and in the form.elements API.
*
* @param name The new value for this attribute.
* @return This object.
*/
public final Button name(String name) {
attr("name", name);
return this;
}
/**
* type attribute.
*
*
* Type of button.
*
* @param type The new value for this attribute.
* @return This object.
*/
public final Button type(String type) {
attr("type", type);
return this;
}
/**
* value attribute.
*
*
* Value to be used for form submission.
*
* @param value
* The new value for this attribute.
* Typically a {@link Number} or {@link String}.
* @return This object.
*/
public final Button value(Object value) {
attr("value", value);
return this;
}
//-----------------------------------------------------------------------------------------------------------------
// Overridden methods
//-----------------------------------------------------------------------------------------------------------------
//
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button _class(String _class) {
super._class(_class);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button accesskey(String accesskey) {
super.accesskey(accesskey);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button contenteditable(Object contenteditable) {
super.contenteditable(contenteditable);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button dir(String dir) {
super.dir(dir);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button hidden(Object hidden) {
super.hidden(hidden);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button id(String id) {
super.id(id);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button lang(String lang) {
super.lang(lang);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onabort(String onabort) {
super.onabort(onabort);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onblur(String onblur) {
super.onblur(onblur);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button oncancel(String oncancel) {
super.oncancel(oncancel);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button oncanplay(String oncanplay) {
super.oncanplay(oncanplay);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button oncanplaythrough(String oncanplaythrough) {
super.oncanplaythrough(oncanplaythrough);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onchange(String onchange) {
super.onchange(onchange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onclick(String onclick) {
super.onclick(onclick);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button oncuechange(String oncuechange) {
super.oncuechange(oncuechange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button ondblclick(String ondblclick) {
super.ondblclick(ondblclick);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button ondurationchange(String ondurationchange) {
super.ondurationchange(ondurationchange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onemptied(String onemptied) {
super.onemptied(onemptied);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onended(String onended) {
super.onended(onended);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onerror(String onerror) {
super.onerror(onerror);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onfocus(String onfocus) {
super.onfocus(onfocus);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button oninput(String oninput) {
super.oninput(oninput);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button oninvalid(String oninvalid) {
super.oninvalid(oninvalid);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onkeydown(String onkeydown) {
super.onkeydown(onkeydown);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onkeypress(String onkeypress) {
super.onkeypress(onkeypress);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onkeyup(String onkeyup) {
super.onkeyup(onkeyup);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onload(String onload) {
super.onload(onload);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onloadeddata(String onloadeddata) {
super.onloadeddata(onloadeddata);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onloadedmetadata(String onloadedmetadata) {
super.onloadedmetadata(onloadedmetadata);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onloadstart(String onloadstart) {
super.onloadstart(onloadstart);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onmousedown(String onmousedown) {
super.onmousedown(onmousedown);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onmouseenter(String onmouseenter) {
super.onmouseenter(onmouseenter);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onmouseleave(String onmouseleave) {
super.onmouseleave(onmouseleave);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onmousemove(String onmousemove) {
super.onmousemove(onmousemove);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onmouseout(String onmouseout) {
super.onmouseout(onmouseout);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onmouseover(String onmouseover) {
super.onmouseover(onmouseover);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onmouseup(String onmouseup) {
super.onmouseup(onmouseup);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onmousewheel(String onmousewheel) {
super.onmousewheel(onmousewheel);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onpause(String onpause) {
super.onpause(onpause);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onplay(String onplay) {
super.onplay(onplay);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onplaying(String onplaying) {
super.onplaying(onplaying);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onprogress(String onprogress) {
super.onprogress(onprogress);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onratechange(String onratechange) {
super.onratechange(onratechange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onreset(String onreset) {
super.onreset(onreset);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onresize(String onresize) {
super.onresize(onresize);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onscroll(String onscroll) {
super.onscroll(onscroll);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onseeked(String onseeked) {
super.onseeked(onseeked);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onseeking(String onseeking) {
super.onseeking(onseeking);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onselect(String onselect) {
super.onselect(onselect);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onshow(String onshow) {
super.onshow(onshow);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onstalled(String onstalled) {
super.onstalled(onstalled);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onsubmit(String onsubmit) {
super.onsubmit(onsubmit);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onsuspend(String onsuspend) {
super.onsuspend(onsuspend);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button ontimeupdate(String ontimeupdate) {
super.ontimeupdate(ontimeupdate);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button ontoggle(String ontoggle) {
super.ontoggle(ontoggle);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onvolumechange(String onvolumechange) {
super.onvolumechange(onvolumechange);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button onwaiting(String onwaiting) {
super.onwaiting(onwaiting);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button spellcheck(Object spellcheck) {
super.spellcheck(spellcheck);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button style(String style) {
super.style(style);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button tabindex(Object tabindex) {
super.tabindex(tabindex);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button title(String title) {
super.title(title);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
public Button translate(Object translate) {
super.translate(translate);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElementMixed */
public Button child(Object child) {
super.child(child);
return this;
}
@Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElementMixed */
public Button children(Object...children) {
super.children(children);
return this;
}
//
}