W3cubDocs

/OpenJDK 21

Class Label.AccessibleAWTLabel

All Implemented Interfaces:
Serializable, AccessibleComponent
Enclosing class:
Label
protected class Label.AccessibleAWTLabel extends Component.AccessibleAWTComponent
This class implements accessibility support for the Label class. It provides an implementation of the Java Accessibility API appropriate to label user-interface elements.
Since:
1.3
See Also:

Nested Class Summary

Field Summary

Constructor Summary

Constructor Description
AccessibleAWTLabel()
Constructor for the accessible label.

Method Summary

Modifier and Type Method Description
String getAccessibleName()
Get the accessible name of this object.
AccessibleRole getAccessibleRole()
Get the role of this object.

Methods declared in class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

AccessibleAWTLabel

public AccessibleAWTLabel()
Constructor for the accessible label.

Method Details

getAccessibleName

public String getAccessibleName()
Get the accessible name of this object.
Overrides:
getAccessibleName in class Component.AccessibleAWTComponent
Returns:
the localized name of the object -- can be null if this object does not have a name
See Also:

getAccessibleRole

public AccessibleRole getAccessibleRole()
Get the role of this object.
Overrides:
getAccessibleRole in class Component.AccessibleAWTComponent
Returns:
an instance of AccessibleRole describing the role of the object
See Also:

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/Label.AccessibleAWTLabel.html