001    /*
002     * Copyright (c) 2003 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.
010     * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011     */
012    
013    package org.w3c.dom.html2;
014    
015    /**
016     * The anchor element. See the A element definition in HTML 4.01.
017     * <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>.
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.01.
023         */
024        public String getAccessKey();
025        /**
026         * A single character access key to give access to the form control. See 
027         * the accesskey attribute definition in HTML 4.01.
028         */
029        public void setAccessKey(String accessKey);
030    
031        /**
032         * The character encoding of the linked resource. See the charset 
033         * attribute definition in HTML 4.01.
034         */
035        public String getCharset();
036        /**
037         * The character encoding of the linked resource. See the charset 
038         * attribute definition in HTML 4.01.
039         */
040        public void setCharset(String charset);
041    
042        /**
043         * Comma-separated list of lengths, defining an active region geometry. 
044         * See also <code>shape</code> for the shape of the region. See the 
045         * coords attribute definition in HTML 4.01.
046         */
047        public String getCoords();
048        /**
049         * Comma-separated list of lengths, defining an active region geometry. 
050         * See also <code>shape</code> for the shape of the region. See the 
051         * coords attribute definition in HTML 4.01.
052         */
053        public void setCoords(String coords);
054    
055        /**
056         * The absolute URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] of the linked resource. See the href attribute 
057         * definition in HTML 4.01.
058         */
059        public String getHref();
060        /**
061         * The absolute URI [<a href='http://www.ietf.org/rfc/rfc2396.txt'>IETF RFC 2396</a>] of the linked resource. See the href attribute 
062         * definition in HTML 4.01.
063         */
064        public void setHref(String href);
065    
066        /**
067         * Language code of the linked resource. See the hreflang attribute 
068         * definition in HTML 4.01.
069         */
070        public String getHreflang();
071        /**
072         * Language code of the linked resource. See the hreflang attribute 
073         * definition in HTML 4.01.
074         */
075        public void setHreflang(String hreflang);
076    
077        /**
078         * Anchor name. See the name attribute definition in HTML 4.01.
079         */
080        public String getName();
081        /**
082         * Anchor name. See the name attribute definition in HTML 4.01.
083         */
084        public void setName(String name);
085    
086        /**
087         * Forward link type. See the rel attribute definition in HTML 4.01.
088         */
089        public String getRel();
090        /**
091         * Forward link type. See the rel attribute definition in HTML 4.01.
092         */
093        public void setRel(String rel);
094    
095        /**
096         * Reverse link type. See the rev attribute definition in HTML 4.01.
097         */
098        public String getRev();
099        /**
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    }