KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > tags > IHtmlAccessable


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18 package org.apache.beehive.netui.tags;
19
20 /**
21  * This is an interface that defines the accessability properties defined by HTML accessability. All tags
22  * producing HTML elements that require accessability properties should implement this interface.
23  * The interface defines two primary properties that will be output with the HTML. The AccessKey
24  * usually results in an <code>accesskey</code> attribute. This allows for keyboard navigation to an element
25  * on an HTML page. The Alt property usually results in an <code>alt</code. attribute. This is a text description
26  * of the HTML element.
27  */

28 public interface IHtmlAccessable extends IHtmlCore
29 {
30     /**
31      * Gets the accessKey attribute value.
32      * @return the accessKey value.
33      */

34     //String getAccessKey();
35

36     /**
37      * Sets the accessKey attribute value. This should key value of the
38      * keyboard navigation key. It is recommended not to use the following
39      * values because there are often used by browsers <code>A, C, E, F, G,
40      * H, V, left arrow, and right arrow</code>.
41      * @param accessKey - the accessKey value.
42      */

43     void setAccessKey(char accessKey);
44
45     /**
46      * Gets the alt attribute on the generate &lt;input tag.
47      * @return the alt value.
48      */

49     //String getAlt();
50

51     /**
52      * Sets the alt attribute value.
53      * @param alt - the alt value.
54      */

55     void setAlt(String JavaDoc alt);
56 }
57
Popular Tags