KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2     GNU LESSER GENERAL PUBLIC LICENSE
3     Copyright (C) 2006 The Lobo Project
4
5     This library is free software; you can redistribute it and/or
6     modify it under the terms of the GNU Lesser General Public
7     License as published by the Free Software Foundation; either
8     version 2.1 of the License, or (at your option) any later version.
9
10     This library is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13     Lesser General Public License for more details.
14
15     You should have received a copy of the GNU Lesser General Public
16     License along with this library; if not, write to the Free Software
17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19     Contact info: xamjadmin@users.sourceforge.net
20 */

21 /*
22  * Copyright (c) 2003 World Wide Web Consortium,
23  * (Massachusetts Institute of Technology, Institut National de
24  * Recherche en Informatique et en Automatique, Keio University). All
25  * Rights Reserved. This program is distributed under the W3C's Software
26  * Intellectual Property License. This program is distributed in the
27  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
28  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
29  * PURPOSE.
30  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
31  */

32
33 package org.w3c.dom.html2;
34
35 /**
36  * The anchor element. See the A element definition in HTML 4.01.
37  * <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>.
38  */

39 public interface HTMLAnchorElement extends HTMLElement {
40     /**
41      * A single character access key to give access to the form control. See
42      * the accesskey attribute definition in HTML 4.01.
43      */

44     public String JavaDoc getAccessKey();
45     /**
46      * A single character access key to give access to the form control. See
47      * the accesskey attribute definition in HTML 4.01.
48      */

49     public void setAccessKey(String JavaDoc accessKey);
50
51     /**
52      * The character encoding of the linked resource. See the charset
53      * attribute definition in HTML 4.01.
54      */

55     public String JavaDoc getCharset();
56     /**
57      * The character encoding of the linked resource. See the charset
58      * attribute definition in HTML 4.01.
59      */

60     public void setCharset(String JavaDoc charset);
61
62     /**
63      * Comma-separated list of lengths, defining an active region geometry.
64      * See also <code>shape</code> for the shape of the region. See the
65      * coords attribute definition in HTML 4.01.
66      */

67     public String JavaDoc getCoords();
68     /**
69      * Comma-separated list of lengths, defining an active region geometry.
70      * See also <code>shape</code> for the shape of the region. See the
71      * coords attribute definition in HTML 4.01.
72      */

73     public void setCoords(String JavaDoc coords);
74
75     /**
76      * The absolute URI [<a HREF='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] of the linked resource. See the href attribute
77      * definition in HTML 4.01.
78      */

79     public String JavaDoc getHref();
80     /**
81      * The absolute URI [<a HREF='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] of the linked resource. See the href attribute
82      * definition in HTML 4.01.
83      */

84     public void setHref(String JavaDoc href);
85
86     /**
87      * Language code of the linked resource. See the hreflang attribute
88      * definition in HTML 4.01.
89      */

90     public String JavaDoc getHreflang();
91     /**
92      * Language code of the linked resource. See the hreflang attribute
93      * definition in HTML 4.01.
94      */

95     public void setHreflang(String JavaDoc hreflang);
96
97     /**
98      * Anchor name. See the name attribute definition in HTML 4.01.
99      */

100     public String JavaDoc getName();
101     /**
102      * Anchor name. See the name attribute definition in HTML 4.01.
103      */

104     public void setName(String JavaDoc name);
105
106     /**
107      * Forward link type. See the rel attribute definition in HTML 4.01.
108      */

109     public String JavaDoc getRel();
110     /**
111      * Forward link type. See the rel attribute definition in HTML 4.01.
112      */

113     public void setRel(String JavaDoc rel);
114
115     /**
116      * Reverse link type. See the rev attribute definition in HTML 4.01.
117      */

118     public String JavaDoc getRev();
119     /**
120      * Reverse link type. See the rev attribute definition in HTML 4.01.
121      */

122     public void setRev(String JavaDoc rev);
123
124     /**
125      * The shape of the active area. The coordinates are given by
126      * <code>coords</code>. See the shape attribute definition in HTML 4.01.
127      */

128     public String JavaDoc getShape();
129     /**
130      * The shape of the active area. The coordinates are given by
131      * <code>coords</code>. See the shape attribute definition in HTML 4.01.
132      */

133     public void setShape(String JavaDoc shape);
134
135     /**
136      * Index that represents the element's position in the tabbing order. See
137      * the tabindex attribute definition in HTML 4.01.
138      */

139     public int getTabIndex();
140     /**
141      * Index that represents the element's position in the tabbing order. See
142      * the tabindex attribute definition in HTML 4.01.
143      */

144     public void setTabIndex(int tabIndex);
145
146     /**
147      * Frame to render the resource in. See the target attribute definition in
148      * HTML 4.01.
149      */

150     public String JavaDoc getTarget();
151     /**
152      * Frame to render the resource in. See the target attribute definition in
153      * HTML 4.01.
154      */

155     public void setTarget(String JavaDoc target);
156
157     /**
158      * Advisory content type. See the type attribute definition in HTML 4.01.
159      */

160     public String JavaDoc getType();
161     /**
162      * Advisory content type. See the type attribute definition in HTML 4.01.
163      */

164     public void setType(String JavaDoc type);
165
166     /**
167      * Removes keyboard focus from this element.
168      */

169     public void blur();
170
171     /**
172      * Gives keyboard focus to this element.
173      */

174     public void focus();
175
176 }
177
Popular Tags