FileDocCategorySizeDatePackage
HTMLInputElementImpl.javaAPI DocApache Xerces 3.0.16423Fri Sep 14 20:33:54 BST 2007org.apache.html.dom

HTMLInputElementImpl

public class HTMLInputElementImpl extends HTMLElementImpl implements HTMLFormControl, HTMLInputElement
xerces.internal
version
$Revision: 447255 $ $Date: 2006-09-18 01:36:42 -0400 (Mon, 18 Sep 2006) $
author
Assaf Arkin
see
org.w3c.dom.html.HTMLInputElement
see
org.apache.xerces.dom.ElementImpl

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public HTMLInputElementImpl(HTMLDocumentImpl owner, String name)
Constructor requires owner document.

param
owner The owner HTML document

        super( owner, name );
    
Methods Summary
public voidblur()

        // No scripting in server-side DOM. This method is moot.
    
public voidclick()

        // No scripting in server-side DOM. This method is moot.
    
public voidfocus()

        // No scripting in server-side DOM. This method is moot.
    
public java.lang.StringgetAccept()

        return getAttribute( "accept" );
    
public java.lang.StringgetAccessKey()

        String    accessKey;
        
        // Make sure that the access key is a single character.
        accessKey = getAttribute( "accesskey" );
        if ( accessKey != null && accessKey.length() > 1 )
            accessKey = accessKey.substring( 0, 1 );
        return accessKey;
    
public java.lang.StringgetAlign()

        return capitalize( getAttribute( "align" ) );
    
public java.lang.StringgetAlt()

        return getAttribute( "alt" );
    
public booleangetChecked()

        return getBinary( "checked" );
    
public booleangetDefaultChecked()

        // ! NOT FULLY IMPLEMENTED !
        return getBinary( "defaultChecked" );
    
public java.lang.StringgetDefaultValue()


      
    
        // ! NOT FULLY IMPLEMENTED !
        return getAttribute( "defaultValue" );
    
public booleangetDisabled()

        return getBinary( "disabled" );
    
public intgetMaxLength()

        return getInteger( getAttribute( "maxlength" ) );
    
public java.lang.StringgetName()

        return getAttribute( "name" );
    
public booleangetReadOnly()

        return getBinary( "readonly" );
    
public java.lang.StringgetSize()

        return getAttribute( "size" );
    
public java.lang.StringgetSrc()

        return getAttribute( "src" );
    
public intgetTabIndex()

        try
        {
            return Integer.parseInt( getAttribute( "tabindex" ) );
        }
        catch ( NumberFormatException except )
        {
            return 0;
        }
    
public java.lang.StringgetType()

        return getAttribute( "type" );
    
public java.lang.StringgetUseMap()

        return getAttribute( "useMap" );
    
public java.lang.StringgetValue()

        return getAttribute( "value" );
    
public voidselect()

        // No scripting in server-side DOM. This method is moot.
    
public voidsetAccept(java.lang.String accept)

        setAttribute( "accept", accept );
    
public voidsetAccessKey(java.lang.String accessKey)

        // Make sure that the access key is a single character.    
        if ( accessKey != null && accessKey.length() > 1 )
            accessKey = accessKey.substring( 0, 1 );
        setAttribute( "accesskey", accessKey );
    
public voidsetAlign(java.lang.String align)

        setAttribute( "align", align );
    
public voidsetAlt(java.lang.String alt)

        setAttribute( "alt", alt );
    
public voidsetChecked(boolean checked)

        setAttribute( "checked", checked );
    
public voidsetDefaultChecked(boolean defaultChecked)

        // ! NOT FULLY IMPLEMENTED !
        setAttribute( "defaultChecked", defaultChecked );
    
public voidsetDefaultValue(java.lang.String defaultValue)

        // ! NOT FULLY IMPLEMENTED !
        setAttribute( "defaultValue", defaultValue );
    
public voidsetDisabled(boolean disabled)

        setAttribute( "disabled", disabled );
    
public voidsetMaxLength(int maxLength)

        setAttribute( "maxlength", String.valueOf( maxLength ) );
    
public voidsetName(java.lang.String name)

        setAttribute( "name", name );
    
public voidsetReadOnly(boolean readOnly)

        setAttribute( "readonly", readOnly );
    
public voidsetSize(java.lang.String size)

        setAttribute( "size", size );
    
public voidsetSrc(java.lang.String src)

        setAttribute( "src", src );
    
public voidsetTabIndex(int tabIndex)

        setAttribute( "tabindex", String.valueOf( tabIndex ) );
    
public voidsetUseMap(java.lang.String useMap)

        setAttribute( "useMap", useMap );
    
public voidsetValue(java.lang.String value)

        setAttribute( "value", value );