KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > dom > html > HTMLAnchorElement


1 /*
2  * Copyright (c) 2000 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. See W3C License http://www.w3.org/Consortium/Legal/ for more
10  * details.
11  */

12
13 package org.w3c.dom.html;
14
15 /**
16  * The anchor element. See the A element definition in HTML 4.0.
17  * <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>.
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.0.
23      */

24     public String JavaDoc getAccessKey();
25     public void setAccessKey(String JavaDoc accessKey);
26
27     /**
28      * The character encoding of the linked resource. See the charset
29      * attribute definition in HTML 4.0.
30      */

31     public String JavaDoc getCharset();
32     public void setCharset(String JavaDoc charset);
33
34     /**
35      * Comma-separated list of lengths, defining an active region geometry.
36      * See also <code>shape</code> for the shape of the region. See the
37      * coords attribute definition in HTML 4.0.
38      */

39     public String JavaDoc getCoords();
40     public void setCoords(String JavaDoc coords);
41
42     /**
43      * The URI of the linked resource. See the href attribute definition in
44      * HTML 4.0.
45      */

46     public String JavaDoc getHref();
47     public void setHref(String JavaDoc href);
48
49     /**
50      * Language code of the linked resource. See the hreflang attribute
51      * definition in HTML 4.0.
52      */

53     public String JavaDoc getHreflang();
54     public void setHreflang(String JavaDoc hreflang);
55
56     /**
57      * Anchor name. See the name attribute definition in HTML 4.0.
58      */

59     public String JavaDoc getName();
60     public void setName(String JavaDoc name);
61
62     /**
63      * Forward link type. See the rel attribute definition in HTML 4.0.
64      */

65     public String JavaDoc getRel();
66     public void setRel(String JavaDoc rel);
67
68     /**
69      * Reverse link type. See the rev attribute definition in HTML 4.0.
70      */

71     public String JavaDoc getRev();
72     public void setRev(String JavaDoc rev);
73
74     /**
75      * The shape of the active area. The coordinates are given by
76      * <code>coords</code> . See the shape attribute definition in HTML 4.0.
77      */

78     public String JavaDoc getShape();
79     public void setShape(String JavaDoc shape);
80
81     /**
82      * Index that represents the element's position in the tabbing order. See
83      * the tabindex attribute definition in HTML 4.0.
84      */

85     public int getTabIndex();
86     public void setTabIndex(int tabIndex);
87
88     /**
89      * Frame to render the resource in. See the target attribute definition
90      * in HTML 4.0.
91      */

92     public String JavaDoc getTarget();
93     public void setTarget(String JavaDoc target);
94
95     /**
96      * Advisory content type. See the type attribute definition in HTML 4.0.
97      */

98     public String JavaDoc getType();
99     public void setType(String JavaDoc type);
100
101     /**
102      * Removes keyboard focus from this element.
103      */

104     public void blur();
105
106     /**
107      * Gives keyboard focus to this element.
108      */

109     public void focus();
110
111 }
112
113
Popular Tags