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
10 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
13 package org
.w3c
.dom
.html2
;
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>.
19 public interface HTMLAnchorElement
extends HTMLElement
{
21 * A single character access key to give access to the form control. See
22 * the accesskey attribute definition in HTML 4.01.
24 public String
getAccessKey();
26 * A single character access key to give access to the form control. See
27 * the accesskey attribute definition in HTML 4.01.
29 public void setAccessKey(String accessKey
);
32 * The character encoding of the linked resource. See the charset
33 * attribute definition in HTML 4.01.
35 public String
getCharset();
37 * The character encoding of the linked resource. See the charset
38 * attribute definition in HTML 4.01.
40 public void setCharset(String charset
);
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.
47 public String
getCoords();
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.
53 public void setCoords(String coords
);
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.
59 public String
getHref();
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.
64 public void setHref(String href
);
67 * Language code of the linked resource. See the hreflang attribute
68 * definition in HTML 4.01.
70 public String
getHreflang();
72 * Language code of the linked resource. See the hreflang attribute
73 * definition in HTML 4.01.
75 public void setHreflang(String hreflang
);
78 * Anchor name. See the name attribute definition in HTML 4.01.
80 public String
getName();
82 * Anchor name. See the name attribute definition in HTML 4.01.
84 public void setName(String name
);
87 * Forward link type. See the rel attribute definition in HTML 4.01.
89 public String
getRel();
91 * Forward link type. See the rel attribute definition in HTML 4.01.
93 public void setRel(String rel
);
96 * Reverse link type. See the rev attribute definition in HTML 4.01.
98 public String
getRev();
100 * Reverse link type. See the rev attribute definition in HTML 4.01.
102 public void setRev(String rev
);
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.
108 public String
getShape();
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.
113 public void setShape(String shape
);
116 * Index that represents the element's position in the tabbing order. See
117 * the tabindex attribute definition in HTML 4.01.
119 public int getTabIndex();
121 * Index that represents the element's position in the tabbing order. See
122 * the tabindex attribute definition in HTML 4.01.
124 public void setTabIndex(int tabIndex
);
127 * Frame to render the resource in. See the target attribute definition in
130 public String
getTarget();
132 * Frame to render the resource in. See the target attribute definition in
135 public void setTarget(String target
);
138 * Advisory content type. See the type attribute definition in HTML 4.01.
140 public String
getType();
142 * Advisory content type. See the type attribute definition in HTML 4.01.
144 public void setType(String type
);
147 * Removes keyboard focus from this element.
152 * Gives keyboard focus to this element.