jdk/src/java.desktop/share/classes/javax/accessibility/package.html
author avstepan
Wed, 12 Aug 2015 13:57:12 +0300
changeset 32283 1a96ab120a48
parent 25859 3317bb8137f4
permissions -rw-r--r--
8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop Reviewed-by: alexsch
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<HTML>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
<HEAD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
   <META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (WinNT; I) [Netscape]">
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
<!--
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     6
Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    11
published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    13
by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
5551
327690766109 6956202: Fix a few missed rebranding issues, please contact lines etc.
ohair
parents: 5506
diff changeset
    25
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
327690766109 6956202: Fix a few missed rebranding issues, please contact lines etc.
ohair
parents: 5506
diff changeset
    26
or visit www.oracle.com if you need additional information or have any
327690766109 6956202: Fix a few missed rebranding issues, please contact lines etc.
ohair
parents: 5506
diff changeset
    27
questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
-->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
</HEAD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
<BODY BGCOLOR="#FFFFFF">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
Defines a contract between user-interface components and an assistive technology
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
that provides access to those components. If a Java application fully supports
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
the Java Accessibility API, then it should be compatible with, and friendly
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
toward, assistive technologies such as screen readers, screen magnifiers,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
etc. With a Java application that fully supports the Java Accessibility
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
API, no screen reader off screen model would be necessary because the API
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
provides all of the information normally contained in an off screen model.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
<P>The Java Accessibility API package consists of 8 Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
interfaces, and 6 Java programming language classes. These are described
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
below.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
<A NAME="Accessible"></A><A HREF="Accessible.html">Interface Accessible</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
<A HREF="Accessible.html">Interface Accessible</A> is the main interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
of the Java Accessibility API. All components that support the Java Accessibility
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
    46
API must implement this interface. It contains a single method, <code>getAccessibleContext</code>,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
that returns an instance of the class <A HREF="#AccessibleContext">AccessibleContext</A>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
Sun thinks that implementing this interface is the absolute minimum requirement
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
of every object that is part of the user interface of a Java application,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
if that program is to be compatible with assistive technologies.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
<A NAME="AccessibleContext"></A><A HREF="AccessibleContext.html">Class
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
AccessibleContext</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
<A HREF="AccessibleContext.html">AccessibleContext</A> represents the minimum
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
information all accessible objects return and is obtained by calling the
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
    56
<code>getAccessibleContext</code> method on an object that implements the <A HREF="#Accessible">Accessible</A>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
interface. This information includes the accessible name, description,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
<A HREF="#AccessibleRole">role</A>, and <A HREF="#AccessibleState">state</A>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
of the object, as well as information about the parent and children of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
the object.&nbsp; In addition, JavaBeans <SUP><FONT SIZE=-2>TM</FONT></SUP>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
property change support is also included to allow assisitive technologies
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
learn when the values of the accessible properties change. AccessibleContext
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
also contains methods for obtaining more specific accessibility information
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
about a component. If the component supports it, these methods will return
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
an object that implements one or more of the following interfaces:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
<UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
<LI>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
<B><A HREF="#AccessibleAction">AccessibleAction</A></B> - the object can
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
perform one or more actions. This interface provides the standard mechanism
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
for an assistive technology to determine what those actions are and tell
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
the object to perform those actions. Any object that can be manipulated
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
    72
should return an object that implements this interface when the <code>getAccessibleAction</code>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
method is called on an AccessibleContext.</LI>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
<LI>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
<B><A HREF="#AccessibleComponent">AccessibleComponent</A></B> - the object
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
has a graphical representation. This interface provides the standard mechanism
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
for an assistive technology to determine and set the graphical representation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
of the object. Any object that is rendered on the screen should return
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
    80
an object that implements this interface when the <code>getAccessibleComponent</code>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
method is called on an AccessibleContext.</LI>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
<LI>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
<B><A HREF="#AccessibleSelection">AccessibleSelection</A></B> - the object
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
allows its children to be selected. This interface provides the standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
mechanism for an assistive technology to determine the currently selected
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
children as well as modify the selection set. Any object that has children
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
that can be selected should return an object that implements this interface
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
    89
when the <code>getAccessibleSelection</code> method is called on an AccessibleContext.</LI>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
<LI>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
<B><A HREF="#AccessibleText">AccessibleText</A></B> - the object presents
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
editable textual information on the display. This interface provides the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
standard mechanism for an assistive technology to access that text via
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
its content, attributes, and spatial location. Any object that contains
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
editable text should return an object that implements this interface when
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
    97
the <code>getAccessibleText</code> method is called on an AccessibleContext.</LI>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
<LI>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
<B><A HREF="#AccessibleHypertext">AccessibleHypertext</A></B> - the object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
presents hypertext information on the display. This interface provides
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
the standard mechanism for an assistive technology to access that hypertext
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
via its content, attributes, and spatial location. Any object that contains
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
hypertext should return an object that implements this interface when the
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   105
<code>getAccessibleText</code> method is called on an AccessibleContext.</LI>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
<LI>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
<B><A HREF="#AccessibleValue">AccessibleValue</A></B> - the object supports
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
a numerical value. This interface provides the standard mechanism for an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
assistive technology to determine and set the current value of the object,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
as well as the minimum and maximum values. Any object that supports a numerical
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   112
value should return an object that implements this interface when the <code>getAccessibleValue</code>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
method is called on an AccessibleContext.</LI>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
</UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
<A NAME="AccessibleRole"></A><A HREF="AccessibleRole.html">Class AccessibleRole</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
This class encapsulates the Accessible object's role in the user interface
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   119
and is obtained by calling the <code>getAccessibleRole</code> method on an
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
<A HREF="#AccessibleContext">AccessibleContext</A>. Accessible roles include
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
"Check box", "Menu Item", "Panel", etc. These roles are identified by the
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   122
constants in this class such as <code>AccessibleRole.CHECK_BOX, AccessibleRole.MENU_ITEM,</code>
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   123
and <code>AccessibleRole.PANEL</code>. The constants in this class present
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
a strongly typed enumeration of common object roles. A public constructor
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
for this class has been purposely omitted and applications should use one
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
of the constants from this class. Although this class pre-defines a large
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
list of standard roles, it is extensible so additional programmer-defined
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
roles can be added in the future without needing to modify the base class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
<A NAME="AccessibleState"></A><A HREF="AccessibleState.html">Class AccessibleState</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
This class encapsulates a particular state of the Accessible object. Accessible
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
states include things like "Armed", "Busy", "Checked", "Focused", etc.
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   134
These roles are identified by the constants in this class such as <code>AccessibleState.ARMED,
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   135
AccessibleState.BUSY, AccessibleState.CHECKED,</code> and <code>AccessibleState.FOCUSED</code>.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
The sum of all the states of an Accessible object is called the <A HREF="#AccessibleStateSet">AccessibleStateSet</A>,
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   137
and can be obtained by calling the <code>getAccessibleStateSet</code> method
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
on an <A HREF="#AccessibleContext">AccessibleContext</A>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
<P>The constants in this class present a strongly typed enumeration of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
common object roles. A public constructor for this class has been purposely
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
omitted and applications should use one of the constants from this class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
Although this class pre-defines a large list of standard roles, it is extensible
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
so additional, programmer-defined roles can be added in the future without
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
needing to modify the base class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
<A NAME="AccessibleStateSet"></A><A HREF="AccessibleStateSet.html">Class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
AccessibleStateSet</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
This class encapsulates a collection of states of the Accessible object
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   151
and is obtained by calling the <code>getAccessibleStateSet</code> method on
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
an <A HREF="#AccessibleContext">AccessibleContext</A>. Since an object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
might have multiple states (e.g. it might be both "Checked" and "Focused"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
this class is needed to encapsulate a collection of these states. Methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
in the class provide for retrieving the individual <A HREF="#AccessibleState">AccessibleStates</A>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
on the state set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
<A NAME="AccessibleBundle"></A><A HREF="AccessibleBundle.html">Class AccessibleBundle</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
This class is used to maintain a strongly typed enumeration. It is the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
super class of both the <A HREF="#AccessibleRole">AccessibleRole</A> and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
<A HREF="#AccessibleState">AccessibleState</A> classes. Programmers normally
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
do not interact with this class directly, but will instead use the <A HREF="#AccessibleRole">AccessibleRole</A>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
and <A HREF="#AccessibleState">AccessibleState</A> classes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
<A NAME="AccessibleAction"></A><A HREF="AccessibleAction.html">Interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
AccessibleAction</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
The <A HREF="AccessibleAction.html">AccessibleAction</A> interface should
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
be supported by any object that can perform one or more actions. This interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
provides the standard mechanism for an assistive technology to determine
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
what those actions are as well as tell the object to perform those actions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
Any object that can be manipulated should support this interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
<P>Applications can determine if an object supports the AccessibleAction
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
interface by first obtaining its <A HREF="#AccessibleContext">AccessibleContext</A>
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   176
(see <A HREF="#Accessible">Accessible</A>) and then calling the <code>getAccessibleAction</code>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
method of <A HREF="#AccessibleContext">AccessibleContext</A>. If the return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
value is not null, the object supports this interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
<A NAME="AccessibleComponent"></A><A HREF="AccessibleComponent.html">Interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
AccessibleComponent</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
The <A HREF="AccessibleComponent.html">AccessibleComponent</A> interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
should be supported by any object that is rendered on the screen. This
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
interface provides the standard mechanism for an assistive technology to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
determine and set the graphical representation of an object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
<P>Applications can determine if an object supports the AccessibleComponent
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
interface by first obtaining its <A HREF="#AccessibleContext">AccessibleContext</A>
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   189
(see <A HREF="#Accessible">Accessible</A>) and then calling the <code>getAccessibleComponent</code>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
method of <A HREF="#AccessibleContext">AccessibleContext</A>. If the return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
value is not null, the object supports this interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
<A NAME="AccessibleSelection"></A><A HREF="AccessibleSelection.html">Interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
AccessibleSelection</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
The <A HREF="AccessibleSelection.html">AccessibleSelection</A> interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
provides the standard mechanism for an assistive technology to determine
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
what the current selected children are, as well as modify the selection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
set. Any object that has children that can be selected should support this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
the AccessibleSelection interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
<P>Applications can determine if an object supports the AccessibleSelection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
interface by first obtaining its <A HREF="#AccessibleContext">AccessibleContext</A>
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   203
(see <A HREF="#Accessible">Accessible</A>) and then calling the <code>getAccessibleSelection</code>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
method of <A HREF="#AccessibleContext">AccessibleContext</A>. If the return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
value is not null, the object supports this interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
<A NAME="AccessibleText"></A><A HREF="AccessibleText.html">Interface AccessibleText</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
Interface <A HREF="AccessibleText.html">AccessibleText</A> is the contract
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
for making rich, editable text Accessible. Not all text displayed on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
screen is rich and editable (e.g. text contained in buttons, labels, menus,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
etc., which users aren't expected to manipulate). However, objects containing
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
editable text must implement interface AccessibleText if they are to interoperate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
with assistive technologies.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
<P>This interface provides support for going between pixel coordinates
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
and the text at a given pixel coordinate, for retrieving the letter, word,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
and sentence at, before, or after a given position in the text. This interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
provides support for retrieving the attributes of the character at a given
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
position in the text (font, font size, style, etc.), as well as getting
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
the selected text (if any), the length of the text, and the location of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
the text caret.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
<P>Applications can determine if an object supports the AccessibleText
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
interface by first obtaining its <A HREF="#AccessibleContext">AccessibleContext</A>
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   225
(see <A HREF="#Accessible">Accessible</A>) and then calling the <code>getAccessibleText</code>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
method of <A HREF="#AccessibleContext">AccessibleContext</A>. If the return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
value is not null, the object supports this interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
<H3><A NAME="AccessibleHypertext"></A>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
<A HREF="AccessibleHypertext.html">Interface AccessibleHypertext</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
The <A HREF="AccessibleHypertext.html">AccessibleHypertext</A> interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
should be supported by any object that presents hypertext information on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
the display. This interface provides the standard mechanism for an assistive
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
technology to access that text via its content, attributes, and spatial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
location. It also provides standard mechanisms for manipulating <A HREF="#AccessibleHyperlink">hyperlinks</A>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
Applications can determine if an object supports the AccessibleHypertext
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
interface by first obtaining its <A HREF="#AccessibleContext">AccessibleContext</A>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
(see <A HREF="#Accessible">Accessible</A>) and then calling the AccessibleContext.getAccessibleText()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
method of <A HREF="#AccessibleContext">AccessibleContext</A>. If the return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
value is a class which extends AccessibleHypertext, then that object supports
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
AccessibleHypertext.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
<A NAME="AccessibleHyperlink"></A><A HREF="AccessibleHyperlink.html">Interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
AccessibleHyperlink</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
An object that is a hyperlink should support the <A HREF="AccessibleHyperlink.html">AccessibleHyperlink</A>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
interface.&nbsp; An object that implements this interface will be returned
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
by calling the getLink method on an <A HREF="#AccessibleHypertext">AccessibleHypertext</A>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
<H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
<A NAME="AccessibleValue"></A><A HREF="AccessibleValue.html">Interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
AccessibleValue</A></H3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
The <A HREF="AccessibleValue.html">AccessibleValue</A> interface should
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
be supported by any object that supports a numerical value (e.g., a scroll
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
bar). This interface provides the standard mechanism for an assistive technology
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
to determine and set the numerical value as well as get the minimum and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
maximum values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
<P>Applications can determine if an object supports the AccessibleValue
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
interface by first obtaining its <A HREF="#AccessibleContext">AccessibleContext</A>
32283
1a96ab120a48 8133134: docs: replace <tt> tags (obsolete in html5) for java.desktop
avstepan
parents: 25859
diff changeset
   259
(see <A HREF="#Accessible">Accessible</A>) and then calling the <code>getAccessibleValue</code>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
method of <A HREF="#AccessibleContext">AccessibleContext</A>. If the return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
value is not null, the object supports this interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
@since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
</BODY>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
</HTML>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266