01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: * $Header:$
18: */
19: package org.apache.beehive.netui.tags;
20:
21: /**
22: * This is an interface that defines the accessability properties defined by HTML accessability. All tags
23: * producing HTML elements that require accessability properties should implement this interface.
24: * The interface defines two primary properties that will be output with the HTML. The AccessKey
25: * usually results in an <code>accesskey</code> attribute. This allows for keyboard navigation to an element
26: * on an HTML page. The Alt property usually results in an <code>alt</code. attribute. This is a text description
27: * of the HTML element.
28: */
29: public interface IHtmlAccessable extends IHtmlCore {
30: /**
31: * Gets the accessKey attribute value.
32: * @return the accessKey value.
33: */
34: //String getAccessKey();
35: /**
36: * Sets the accessKey attribute value. This should key value of the
37: * keyboard navigation key. It is recommended not to use the following
38: * values because there are often used by browsers <code>A, C, E, F, G,
39: * H, V, left arrow, and right arrow</code>.
40: * @param accessKey - the accessKey value.
41: */
42: void setAccessKey(char accessKey);
43:
44: /**
45: * Gets the alt attribute on the generate <input tag.
46: * @return the alt value.
47: */
48: //String getAlt();
49: /**
50: * Sets the alt attribute value.
51: * @param alt - the alt value.
52: */
53: void setAlt(String alt);
54: }
|