Example usage for javax.accessibility AccessibleRole PANEL

List of usage examples for javax.accessibility AccessibleRole PANEL

Introduction

In this page you can find the example usage for javax.accessibility AccessibleRole PANEL.

Prototype

AccessibleRole PANEL

To view the source code for javax.accessibility AccessibleRole PANEL.

Click Source Link

Document

A generic container that is often used to group objects.

Usage

From source file:org.openide.windows.TopComponent.java

public AccessibleContext getAccessibleContext() {
    if (accessibleContext == null) {
        accessibleContext = new AccessibleJComponent() {
            public AccessibleRole getAccessibleRole() {
                return AccessibleRole.PANEL;
            }/*  w ww  .  j  a v  a  2s  . c  o m*/

            public String getAccessibleName() {
                if (accessibleName != null) {
                    return accessibleName;
                }
                return getName();
            }

            /* Fix for 19344: Null accessible decription of all TopComponents on JDK1.4 */
            public String getToolTipText() {
                return TopComponent.this.getToolTipText();
            }
        };
    }
    return accessibleContext;
}