public class AccessibleActionAdapter extends java.lang.Object implements AccessibleActionListener
AccessibleActionListener
interface.
Classes that wish to deal with AccessibleAction
events can
extend this class and override only the methods that they are
interested in.
AccessibleActionListener
,
AccessibleActionEvent
Constructor and Description |
---|
AccessibleActionAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
doAction(AccessibleActionEvent e)
Performs the specified action on the object.
|
void |
getActionCount(AccessibleActionEvent e)
Returns the number of accessible actions available in this object.
|
void |
getDescription(AccessibleActionEvent e)
Returns a description of the specified action.
|
void |
getKeyBinding(AccessibleActionEvent e)
Returns a string representing one or more key bindings, if there
are any, associated with the specified action.
|
void |
getName(AccessibleActionEvent e)
Returns the name of the specified action.
|
public void getActionCount(AccessibleActionEvent e)
If there are more than one, the first one (index 0) is considered the "default" action of the object.
getActionCount
in interface AccessibleActionListener
e
- an event object containing the following fields:public void doAction(AccessibleActionEvent e)
doAction
in interface AccessibleActionListener
e
- an event object containing the following fields:ACC.OK
if the action was performed.public void getDescription(AccessibleActionEvent e)
getDescription
in interface AccessibleActionListener
e
- an event object containing the following fields:public void getKeyBinding(AccessibleActionEvent e)
The returned string is of the following form: mnemonic;accelerator for example: "C;CTRL+C" for the Copy item in a typical Edit menu.
getKeyBinding
in interface AccessibleActionListener
e
- an event object containing the following fields:public void getName(AccessibleActionEvent e)
There is no need to implement this method for single action controls since that would be redundant with AccessibleControlListener.getDefaultAction.
getName
in interface AccessibleActionListener
e
- an event object containing the following fields:
Copyright (c) EclipseSource and others 2002, 2014.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0