xyz.jsinterop.client.dom.HTMLFieldSetElement Maven / Gradle / Ivy
package xyz.jsinterop.client.dom;
/*
* #%L
* jsinterop
* %%
* Copyright (C) 2016 Norbert Sándor
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* #L%
*/
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public interface HTMLFieldSetElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
*/
@JsProperty
public abstract String getAlign();
/**
* Sets or retrieves how the object is aligned with adjacent text.
*/
@JsProperty
public abstract void setAlign(final String value);
@JsProperty
public abstract boolean isDisabled();
@JsProperty
public abstract void setDisabled(final boolean value);
/**
* Retrieves a reference to the form that the object is embedded in.
*/
@JsProperty
public abstract HTMLFormElement getForm();
/**
* Retrieves a reference to the form that the object is embedded in.
*/
@JsProperty
public abstract void setForm(final HTMLFormElement value);
/**
* Returns the error message that would be displayed if the user submits the
* form, or an empty string if no error message. It also triggers the
* standard error message, such as "this is a required field". The result is
* that the user sees validation messages without actually submitting.
*/
@JsProperty
public abstract String getValidationMessage();
/**
* Returns the error message that would be displayed if the user submits the
* form, or an empty string if no error message. It also triggers the
* standard error message, such as "this is a required field". The result is
* that the user sees validation messages without actually submitting.
*/
@JsProperty
public abstract void setValidationMessage(final String value);
/**
* Returns a ValidityState object that represents the validity states of an
* element.
*/
@JsProperty
public abstract ValidityState getValidity();
/**
* Returns a ValidityState object that represents the validity states of an
* element.
*/
@JsProperty
public abstract void setValidity(final ValidityState value);
/**
* Returns whether an element will successfully validate based on forms
* validation rules and constraints.
*/
@JsProperty
public abstract boolean isWillValidate();
/**
* Returns whether an element will successfully validate based on forms
* validation rules and constraints.
*/
@JsProperty
public abstract void setWillValidate(final boolean value);
/**
* Returns whether a form will validate when it is submitted, without having
* to submit it.
*/
@JsMethod
public abstract boolean checkValidity();
/**
* Sets a custom error message that is displayed when a form is submitted.
*
* @param error
* Sets a custom error message that is displayed when a form is
* submitted.
*/
@JsMethod
public abstract void setCustomValidity(final String error);
}