@Override
protected SpeechProcessor getFocusEventProcessor() {
if (button == null)
return new NullProcessor();
ToggleButtonProcessor proc = new ToggleButtonProcessor();
String text = button.getText();
if(text == null || text == "") {
AccessibleContext ac = button.getAccessibleContext();
if(ac != null) {
text = ac.getAccessibleName();
}
if(text == null || text == "") {
text = ac.getAccessibleDescription();
}
if(text == null || text == "") {
text = button.getToolTipText();
}
}
proc.setText(text);
return proc;
}