Package org.w3c.dom.html

Examples of org.w3c.dom.html.HTMLInputElement


   *          the radio button value
   */
  public XRadioButton( String id, String value )
  {
    super();
    HTMLInputElement radio = (HTMLInputElement)htmlDoc.createElement( "INPUT" );
    Node text = htmlDoc.getBody().getFirstChild().cloneNode( true );
    radio.appendChild( text );
    radio.getFirstChild().setNodeValue( value );
    radio.setId( id );
    radio.setAttribute( "type", "radio" );
    inputElement = radio;
  }
View Full Code Here


   * Creates a new XPassword
   */
  public XPassword()
  {
    super();
    HTMLInputElement pwd = (HTMLInputElement)htmlDoc.createElement( "INPUT" );
    pwd.setAttribute( "type", "password" );
    inputElement = pwd;
  }
View Full Code Here

   *          the id of the password field
   */
  public XPassword( String id )
  {
    super();
    HTMLInputElement pwd = (HTMLInputElement)htmlDoc.createElement( "INPUT" );
    pwd.setAttribute( "type", "password" );
    pwd.setId( id );
    inputElement = pwd;
  }
View Full Code Here

   * @param id
   *          the id of the edit field
   */
  public XEdit( String value, String id )
  {
    HTMLInputElement edit = (HTMLInputElement)htmlDoc.createElement( "INPUT" );
    edit.setAttribute( "type", "text" );
    edit.setValue( value );
    edit.setId( id );
    inputElement = edit;
  }
View Full Code Here

TOP

Related Classes of org.w3c.dom.html.HTMLInputElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.