List of usage examples for javax.accessibility AccessibleContext getAccessibleSelection
public AccessibleSelection getAccessibleSelection()
From source file:MainClass.java
void dumpSelectionInfo(AccessibleContext ac) { AccessibleSelection as = ac.getAccessibleSelection(); if (as != null) { int count = as.getAccessibleSelectionCount(); for (int i = 0; i < count; i++) { Accessible a = as.getAccessibleSelection(i); AccessibleContext ac2 = a.getAccessibleContext(); String s = ac2.getAccessibleName(); System.out.println("Name = " + s); }/*from ww w .j av a 2s . c o m*/ return; } int nChildren = ac.getAccessibleChildrenCount(); for (int i = 0; i < nChildren; i++) dumpSelectionInfo(ac.getAccessibleChild(i).getAccessibleContext()); }