Example usage for javax.accessibility AccessibleTable getAccessibleColumnCount

List of usage examples for javax.accessibility AccessibleTable getAccessibleColumnCount

Introduction

In this page you can find the example usage for javax.accessibility AccessibleTable getAccessibleColumnCount.

Prototype

public int getAccessibleColumnCount();

Source Link

Document

Returns the number of columns in the table.

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;//ww  w .jav a  2 s .c o m
    }

    int nChildren = ac.getAccessibleChildrenCount();

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