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

HTMLButtonElementImpl

public class HTMLButtonElementImpl extends HTMLElementImpl implements HTMLFormControl, HTMLButtonElement
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.HTMLButtonElement
see
org.apache.xerces.dom.ElementImpl

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

param
owner The owner HTML document

        super( owner, name );
    
Methods Summary
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 booleangetDisabled()

        return getBinary( "disabled" );
    
public java.lang.StringgetName()

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

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

        return capitalize( getAttribute( "type" ) );
    
public java.lang.StringgetValue()

        return getAttribute( "value" );
    
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 voidsetDisabled(boolean disabled)

        setAttribute( "disabled", disabled );
    
public voidsetName(java.lang.String name)

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

        setAttribute( "tabindex", String.valueOf( tabIndex ) );
    
public voidsetValue(java.lang.String value)

        setAttribute( "value", value );