javax.accessibility
Interface AccessibleKeyBinding
java.lang.Object
|
+--javax.accessibility.AccessibleKeyBinding
public interface AccessibleKeyBinding
Objects which have keyboard bindings for mneumonics or shortcuts should
implement this interface. Accessibility software can use the
implementations of this interface to aid the user in using the key
bindings.
The AccessibleContext.getAccessibleKeyBinding()
method
should return null
if an object does not implement this
interface.
Since:Author:- Eric Blake <ebb9@email.byu.edu>
See Also:
getAccessibleKeyBinding
public Object getAccessibleKeyBinding(int i)
Return the numbered key binding, which can then be cast in an
implementation dependent way to the appropriate object type. For example,
swing uses javax.swing.KeyStroke
. This returns null if i
is out of bounds.
Parameters:
Returns:
See Also:
getAccessibleKeyBindingCount
public int getAccessibleKeyBindingCount()
Returns the count of key bindings for this object.
Returns:
- the 0-based count, or -1 if there are none
The
AccessibleContext.getAccessibleKeyBinding()
method should returnnull
if an object does not implement this interface.