javax.accessibility

Interface 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: 1.2

See Also: Accessible AccessibleContext AccessibleContext

UNKNOWN: updated to 1.4

Method Summary
ObjectgetAccessibleKeyBinding(int i)
Return the numbered key binding, which can then be cast in an implementation dependent way to the appropriate object type.
intgetAccessibleKeyBindingCount()
Returns the count of key bindings for this object.

Method Detail

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: i the 0-based index of key bindings

Returns: the key binding

See Also: getAccessibleKeyBindingCount

getAccessibleKeyBindingCount

public int getAccessibleKeyBindingCount()
Returns the count of key bindings for this object.

Returns: the 0-based count, or -1 if there are none