1516171819202122232425
*/ public class TopComponentReader extends AbstractScreenReader{ @Override protected SpeechProcessor getFocusEventProcessor() { RawProcessor proc = new RawProcessor(); proc.setText(getComponentString()); return proc; }
20212223242526272829
private JPanel jp; @Override protected SpeechProcessor getFocusEventProcessor() { RawProcessor proc = new RawProcessor(); proc.setText(getComponentString() + " gained focus"); return proc; }
28293031323334353637
return proc; } @Override protected SpeechProcessor getKeyEventProcessor() { RawProcessor proc = new RawProcessor(); proc.setText(getComponentString()); return proc; }
@Override protected SpeechProcessor getFocusEventProcessor() { if (label == null) return new NullProcessor(); RawProcessor proc = new RawProcessor(); proc.setText(label.getText()); return proc; }