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

HTMLAnchorElementImpl

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

Fields Summary
Constructors Summary
public HTMLAnchorElementImpl(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 voidfocus()

        // No scripting in server-side DOM. This method is moot.
    
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.StringgetCharset()

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

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

        return getAttribute( "href" );
    
public java.lang.StringgetHreflang()

        return getAttribute( "hreflang" );
    
public java.lang.StringgetName()

        return getAttribute( "name" );
    
public java.lang.StringgetRel()

        return getAttribute( "rel" );
    
public java.lang.StringgetRev()

        return getAttribute( "rev" );
    
public java.lang.StringgetShape()

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

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

        return getAttribute( "target" );
    
public java.lang.StringgetType()

        return getAttribute( "type" );
    
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 voidsetCharset(java.lang.String charset)

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

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

        setAttribute( "href", href );
    
public voidsetHreflang(java.lang.String hreflang)

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

        setAttribute( "name", name );
    
public voidsetRel(java.lang.String rel)

        setAttribute( "rel", rel );
    
public voidsetRev(java.lang.String rev)

        setAttribute( "rev", rev );
    
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 );
    
public voidsetType(java.lang.String type)

        setAttribute( "type", type );