001: /*
002: * Copyright (c) 2000 World Wide Web Consortium,
003: * (Massachusetts Institute of Technology, Institut National de
004: * Recherche en Informatique et en Automatique, Keio University). All
005: * Rights Reserved. This program is distributed under the W3C's Software
006: * Intellectual Property License. This program is distributed in the
007: * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008: * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009: * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
010: * details.
011: */
012:
013: package org.w3c.dom.html;
014:
015: /**
016: * The anchor element. See the A element definition in HTML 4.0.
017: * <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
018: */
019: public interface HTMLAnchorElement extends HTMLElement {
020: /**
021: * A single character access key to give access to the form control. See
022: * the accesskey attribute definition in HTML 4.0.
023: */
024: public String getAccessKey();
025:
026: public void setAccessKey(String accessKey);
027:
028: /**
029: * The character encoding of the linked resource. See the charset
030: * attribute definition in HTML 4.0.
031: */
032: public String getCharset();
033:
034: public void setCharset(String charset);
035:
036: /**
037: * Comma-separated list of lengths, defining an active region geometry.
038: * See also <code>shape</code> for the shape of the region. See the
039: * coords attribute definition in HTML 4.0.
040: */
041: public String getCoords();
042:
043: public void setCoords(String coords);
044:
045: /**
046: * The URI of the linked resource. See the href attribute definition in
047: * HTML 4.0.
048: */
049: public String getHref();
050:
051: public void setHref(String href);
052:
053: /**
054: * Language code of the linked resource. See the hreflang attribute
055: * definition in HTML 4.0.
056: */
057: public String getHreflang();
058:
059: public void setHreflang(String hreflang);
060:
061: /**
062: * Anchor name. See the name attribute definition in HTML 4.0.
063: */
064: public String getName();
065:
066: public void setName(String name);
067:
068: /**
069: * Forward link type. See the rel attribute definition in HTML 4.0.
070: */
071: public String getRel();
072:
073: public void setRel(String rel);
074:
075: /**
076: * Reverse link type. See the rev attribute definition in HTML 4.0.
077: */
078: public String getRev();
079:
080: public void setRev(String rev);
081:
082: /**
083: * The shape of the active area. The coordinates are given by
084: * <code>coords</code> . See the shape attribute definition in HTML 4.0.
085: */
086: public String getShape();
087:
088: public void setShape(String shape);
089:
090: /**
091: * Index that represents the element's position in the tabbing order. See
092: * the tabindex attribute definition in HTML 4.0.
093: */
094: public int getTabIndex();
095:
096: public void setTabIndex(int tabIndex);
097:
098: /**
099: * Frame to render the resource in. See the target attribute definition
100: * in HTML 4.0.
101: */
102: public String getTarget();
103:
104: public void setTarget(String target);
105:
106: /**
107: * Advisory content type. See the type attribute definition in HTML 4.0.
108: */
109: public String getType();
110:
111: public void setType(String type);
112:
113: /**
114: * Removes keyboard focus from this element.
115: */
116: public void blur();
117:
118: /**
119: * Gives keyboard focus to this element.
120: */
121: public void focus();
122:
123: }
|