/**
* Initialise accessibility listeners for this control.
*/
private void initAccessible() {
StandardAccessibleListener unitsListener =
new StandardAccessibleListener() {
public void getName(AccessibleEvent ae) {
ae.result = TEXT_UNITS;
}
};
unitsListener.setControl(theCombo);
theCombo.getAccessible().addAccessibleListener(unitsListener);
StandardAccessibleListener valueListener =
new StandardAccessibleListener() {
public void getName(AccessibleEvent ae) {
ae.result = TEXT_VALUE;
}
};
valueListener.setControl(theText);
theText.getAccessible().addAccessibleListener(valueListener);
}