Example usage for javax.accessibility AccessibleContext getAccessibleTable

List of usage examples for javax.accessibility AccessibleContext getAccessibleTable

Introduction

In this page you can find the example usage for javax.accessibility AccessibleContext getAccessibleTable.

Prototype

public AccessibleTable getAccessibleTable() 

Source Link

Document

Gets the AccessibleTable associated with an object.

Usage

From source file:MainClass.java

void dumpTableInfo(AccessibleContext ac) {
    AccessibleTable at = ac.getAccessibleTable();

    if (at != null) {
        int nCol = at.getAccessibleColumnCount();
        System.out.println("Columns = " + nCol);

        int nRow = at.getAccessibleRowCount();
        System.out.println("Rows = " + nRow);

        return;// www  . j  ava 2  s  .c om
    }

    int nChildren = ac.getAccessibleChildrenCount();

    for (int i = 0; i < nChildren; i++)
        dumpTableInfo(ac.getAccessibleChild(i).getAccessibleContext());
}