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

HTMLAreaElementImpl

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

Fields Summary
Constructors Summary
public HTMLAreaElementImpl(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 java.lang.StringgetAlt()

        return getAttribute( "alt" );
    
public java.lang.StringgetCoords()

        return getAttribute( "coords" );
    
public java.lang.StringgetHref()

        return getAttribute( "href" );
    
public booleangetNoHref()

        return getBinary( "href" );
    
public java.lang.StringgetShape()

        return capitalize( getAttribute( "shape" ) );
    
public intgetTabIndex()

        return getInteger( getAttribute( "tabindex" ) );
    
public java.lang.StringgetTarget()

        return getAttribute( "target" );
    
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 voidsetAlt(java.lang.String alt)

        setAttribute( "alt", alt );
    
public voidsetCoords(java.lang.String coords)

        setAttribute( "coords", coords );
    
public voidsetHref(java.lang.String href)

        setAttribute( "href", href );
    
public voidsetNoHref(boolean noHref)

        setAttribute( "nohref", noHref );
    
public voidsetShape(java.lang.String shape)

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

        setAttribute( "tabindex", String.valueOf( tabIndex ) );
    
public voidsetTarget(java.lang.String target)

        setAttribute( "target", target );