Source for org.w3c.dom.html2.HTMLAnchorElement

   1: /*
   2:  * Copyright (c) 2003 World Wide Web Consortium,
   3:  * (Massachusetts Institute of Technology, Institut National de
   4:  * Recherche en Informatique et en Automatique, Keio University). All
   5:  * Rights Reserved. This program is distributed under the W3C's Software
   6:  * Intellectual Property License. This program is distributed in the
   7:  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
   8:  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
   9:  * PURPOSE.
  10:  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11:  */
  12: 
  13: package org.w3c.dom.html2;
  14: 
  15: /**
  16:  * The anchor element. See the A element definition in HTML 4.01.
  17:  * <p>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document Object Model (DOM) Level 2 HTML Specification</a>.
  18:  */
  19: public interface HTMLAnchorElement extends HTMLElement {
  20:     /**
  21:      * A single character access key to give access to the form control. See
  22:      * the accesskey attribute definition in HTML 4.01.
  23:      */
  24:     public String getAccessKey();
  25:     /**
  26:      * A single character access key to give access to the form control. See
  27:      * the accesskey attribute definition in HTML 4.01.
  28:      */
  29:     public void setAccessKey(String accessKey);
  30: 
  31:     /**
  32:      * The character encoding of the linked resource. See the charset
  33:      * attribute definition in HTML 4.01.
  34:      */
  35:     public String getCharset();
  36:     /**
  37:      * The character encoding of the linked resource. See the charset
  38:      * attribute definition in HTML 4.01.
  39:      */
  40:     public void setCharset(String charset);
  41: 
  42:     /**
  43:      * Comma-separated list of lengths, defining an active region geometry.
  44:      * See also <code>shape</code> for the shape of the region. See the
  45:      * coords attribute definition in HTML 4.01.
  46:      */
  47:     public String getCoords();
  48:     /**
  49:      * Comma-separated list of lengths, defining an active region geometry.
  50:      * See also <code>shape</code> for the shape of the region. See the
  51:      * coords attribute definition in HTML 4.01.
  52:      */
  53:     public void setCoords(String coords);
  54: 
  55:     /**
  56:      * The absolute URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] of the linked resource. See the href attribute
  57:      * definition in HTML 4.01.
  58:      */
  59:     public String getHref();
  60:     /**
  61:      * The absolute URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] of the linked resource. See the href attribute
  62:      * definition in HTML 4.01.
  63:      */
  64:     public void setHref(String href);
  65: 
  66:     /**
  67:      * Language code of the linked resource. See the hreflang attribute
  68:      * definition in HTML 4.01.
  69:      */
  70:     public String getHreflang();
  71:     /**
  72:      * Language code of the linked resource. See the hreflang attribute
  73:      * definition in HTML 4.01.
  74:      */
  75:     public void setHreflang(String hreflang);
  76: 
  77:     /**
  78:      * Anchor name. See the name attribute definition in HTML 4.01.
  79:      */
  80:     public String getName();
  81:     /**
  82:      * Anchor name. See the name attribute definition in HTML 4.01.
  83:      */
  84:     public void setName(String name);
  85: 
  86:     /**
  87:      * Forward link type. See the rel attribute definition in HTML 4.01.
  88:      */
  89:     public String getRel();
  90:     /**
  91:      * Forward link type. See the rel attribute definition in HTML 4.01.
  92:      */
  93:     public void setRel(String rel);
  94: 
  95:     /**
  96:      * Reverse link type. See the rev attribute definition in HTML 4.01.
  97:      */
  98:     public String getRev();
  99:     /**
 100:      * Reverse link type. See the rev attribute definition in HTML 4.01.
 101:      */
 102:     public void setRev(String rev);
 103: 
 104:     /**
 105:      * The shape of the active area. The coordinates are given by
 106:      * <code>coords</code>. See the shape attribute definition in HTML 4.01.
 107:      */
 108:     public String getShape();
 109:     /**
 110:      * The shape of the active area. The coordinates are given by
 111:      * <code>coords</code>. See the shape attribute definition in HTML 4.01.
 112:      */
 113:     public void setShape(String shape);
 114: 
 115:     /**
 116:      * Index that represents the element's position in the tabbing order. See
 117:      * the tabindex attribute definition in HTML 4.01.
 118:      */
 119:     public int getTabIndex();
 120:     /**
 121:      * Index that represents the element's position in the tabbing order. See
 122:      * the tabindex attribute definition in HTML 4.01.
 123:      */
 124:     public void setTabIndex(int tabIndex);
 125: 
 126:     /**
 127:      * Frame to render the resource in. See the target attribute definition in
 128:      * HTML 4.01.
 129:      */
 130:     public String getTarget();
 131:     /**
 132:      * Frame to render the resource in. See the target attribute definition in
 133:      * HTML 4.01.
 134:      */
 135:     public void setTarget(String target);
 136: 
 137:     /**
 138:      * Advisory content type. See the type attribute definition in HTML 4.01.
 139:      */
 140:     public String getType();
 141:     /**
 142:      * Advisory content type. See the type attribute definition in HTML 4.01.
 143:      */
 144:     public void setType(String type);
 145: 
 146:     /**
 147:      * Removes keyboard focus from this element.
 148:      */
 149:     public void blur();
 150: 
 151:     /**
 152:      * Gives keyboard focus to this element.
 153:      */
 154:     public void focus();
 155: 
 156: }