1 |
/* Accessible.java -- Primary Java accessibility interface |
/* Accessible.java -- primary Java accessibility interface |
2 |
Copyright (C) 2000 Free Software Foundation, Inc. |
Copyright (C) 2000, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
8 |
the Free Software Foundation; either version 2, or (at your option) |
the Free Software Foundation; either version 2, or (at your option) |
9 |
any later version. |
any later version. |
10 |
|
|
11 |
GNU Classpath is distributed in the hope that it will be useful, but |
GNU Classpath is distributed in the hope that it will be useful, but |
12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
35 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
36 |
exception statement from your version. */ |
exception statement from your version. */ |
37 |
|
|
38 |
|
|
39 |
package javax.accessibility; |
package javax.accessibility; |
40 |
|
|
41 |
/** |
/** |
42 |
* Implementing the Accessibility API must start with implementation |
* Implementing the Accessibility API must start with implementation |
43 |
* of this interface at a bare minimum. This is the major interface |
* of this interface at a bare minimum. This is the major interface |
44 |
* for the Accessibility API which must be implemented by all user |
* for the Accessibility API which must be implemented by all user |
45 |
* interface components. |
* interface components. |
46 |
|
* |
47 |
|
* @author Eric Blake <ebb9@email.byu.edu> |
48 |
|
* @since 1.2 |
49 |
|
* @status updated to 1.4 |
50 |
*/ |
*/ |
51 |
public interface Accessible { |
public interface Accessible |
52 |
|
{ |
53 |
/** |
/** |
54 |
* If a component supports the Accessibility API then this |
* If a component supports the Accessibility API then this method should |
55 |
* method should not return <code>null</code>. |
* not return <code>null</code>. Only classes which must extend an accessible |
56 |
*/ |
* class, but must not itself be accessible, may return null. |
57 |
public abstract AccessibleContext getAccessibleContext(); |
* |
58 |
} |
* @return the context associated with this accessible object |
59 |
|
*/ |
60 |
|
AccessibleContext getAccessibleContext(); |
61 |
|
} // interface Accessible |