Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * 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.html.*;
 
 import java.util.Date;

 
 public interface OutputElement extends Element {


  
The default value of the element, initially the empty string.
 
 
   void setDefaultValue(String arg);


  
Indicates the control's form owner, reflecting the form  HTML attribute if it is defined.
 
   FormElement getForm();


  
Reflects the for HTML attribute, containing a list of IDs of other elements in the same document that contribute to (or otherwise affect) the calculated value.
 
 
   void setHtmlFor(DOMSettableTokenList arg);


  
A list of label elements associated with this output element.
 
   NodeList getLabels();


  
Reflects the name HTML attribute, containing the name for the control that is submitted with form data.
 
   String getName();
 
   void setName(String arg);


  
Must be the string output.
 
   String getType();


  
A localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
 
The validity states that this element is in.
 
The value of the contents of the elements. Behaves like the textContent property.
  void setValue(String arg);


  

in Gecko 2.0. Indicates whether the element is a candidate for constraint validation. It is false if any conditions bar it from constraint validation. (See bug 604673 .)

The standard behavior is to always return false because output objects are never candidates for constraint validation.

  boolean isWillValidate();


  

in Gecko 2.0. Returns false if the element is a candidate for constraint validation, and it does not satisfy its constraints. In this case, it also fires an invalid event at the element. It returns true if the element is not a candidate for constraint validation, or if it satisfies its constraints.

The standard behavior is to always return true because output objects are never candidates for constraint validation.

  boolean checkValidity();


  
Sets a custom validity message for the element. If this message is not the empty string, then the element is suffering from a custom validity error, and does not validate.
  void setCustomValidity(String error);
New to GrepCode? Check out our FAQ X