FileDocCategorySizeDatePackage
HTMLButtonElementImpl.javaAPI DocJava SE 5 API5065Fri Aug 26 14:55:26 BST 2005com.sun.org.apache.html.internal.dom

HTMLButtonElementImpl

public class HTMLButtonElementImpl extends HTMLElementImpl implements HTMLFormControl, HTMLButtonElement
version
$Revision: 1.6 $ $Date: 2003/05/08 20:13:09 $
author
Assaf Arkin
see
org.w3c.dom.html.HTMLButtonElement
see
com.sun.org.apache.xerces.internal.dom.ElementImpl

Fields Summary
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 );