All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental.html.ValidityState Maven / Gradle / Ivy

Go to download

Vaadin is a web application framework for Rich Internet Applications (RIA). Vaadin enables easy development and maintenance of fast and secure rich web applications with a stunning look and feel and a wide browser support. It features a server-side architecture with the majority of the logic running on the server. Ajax technology is used at the browser-side to ensure a rich and interactive user experience.

There is a newer version: 8.27.1
Show newest version
/*
 * Copyright 2012 Google Inc.
 * 
 * Licensed 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 elemental.html;

import elemental.events.*;
import elemental.util.*;
import elemental.dom.*;
import elemental.html.*;
import elemental.css.*;
import elemental.stylesheets.*;

import java.util.Date;

/**
  * The DOM ValidityState interface represents the validity states that an element can be in, with respect to constraint validation.
  */
public interface ValidityState {


  /**
    * The element's custom validity message has been set to a non-empty string by calling the element's setCustomValidity() method.
    */
  boolean isCustomError();


  /**
    * The value does not match the specified 

pattern
.
    */
  boolean isPatternMismatch();


  /**
    * The value is greater than the specified 

max
.
    */
  boolean isRangeOverflow();


  /**
    * The value is less than the specified 

min
.
    */
  boolean isRangeUnderflow();


  /**
    * The value does not fit the rules determined by 

step
.
    */
  boolean isStepMismatch();


  /**
    * 

The value exceeds the specified maxlength for HTMLInputElement or HTMLTextAreaElement objects.

Note: This will never be true in Gecko, because elements' values are prevented from being longer than maxlength.
*/ boolean isTooLong(); /** * The value is not in the required syntax (when type is email or url). */ boolean isTypeMismatch(); /** * No other constraint validation conditions are true. */ boolean isValid(); /** * The element has a required attribute, but no value. */ boolean isValueMissing(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy