Class AccessibleState
public class AccessibleState extends AccessibleBundle
AccessibleState
describes a component's particular state. The actual state of the component is defined as an AccessibleStateSet
, which is a composed set of AccessibleStates
. The AccessibleBundle.toDisplayString()
method allows you to obtain the localized string for a locale independent key from a predefined ResourceBundle
for the keys defined in this class.
The constants in this class present a strongly typed enumeration of common object roles. A public constructor for this class has been purposely omitted and applications should use one of the constants from this class. If the constants in this class are not sufficient to describe the role of an object, a subclass should be generated from this class and it should provide constants in a similar manner.
Field Summary
Modifier and Type | Field | Description |
---|---|---|
static final AccessibleState |
ACTIVE |
Indicates a window is currently the active window. |
static final AccessibleState |
ARMED |
Indicates that the object is armed. |
static final AccessibleState |
BUSY |
Indicates the current object is busy. |
static final AccessibleState |
CHECKED |
Indicates this object is currently checked. |
static final AccessibleState |
COLLAPSED |
Indicates this object is collapsed. |
static final AccessibleState |
EDITABLE |
Indicates the user can change the contents of this object. |
static final AccessibleState |
ENABLED |
Indicates this object is enabled. |
static final AccessibleState |
EXPANDABLE |
Indicates this object allows progressive disclosure of its children. |
static final AccessibleState |
EXPANDED |
Indicates this object is expanded. |
static final AccessibleState |
FOCUSABLE |
Indicates this object can accept keyboard focus, which means all events resulting from typing on the keyboard will normally be passed to it when it has focus. |
static final AccessibleState |
FOCUSED |
Indicates this object currently has the keyboard focus. |
static final AccessibleState |
HORIZONTAL |
Indicates the orientation of this object is horizontal. |
static final AccessibleState |
ICONIFIED |
Indicates this object is minimized and is represented only by an icon. |
static final AccessibleState |
INDETERMINATE |
Indicates that the object state is indeterminate. |
static final AccessibleState |
MANAGES_DESCENDANTS |
Indicates this object is responsible for managing its subcomponents. |
static final AccessibleState |
MODAL |
Indicates something must be done with this object before the user can interact with an object in a different window. |
static final AccessibleState |
MULTI_LINE |
Indicates this (text) object can contain multiple lines of text. |
static final AccessibleState |
MULTISELECTABLE |
Indicates this object allows more than one of its children to be selected at the same time. |
static final AccessibleState |
OPAQUE |
Indicates this object paints every pixel within its rectangular region. |
static final AccessibleState |
PRESSED |
Indicates this object is currently pressed. |
static final AccessibleState |
RESIZABLE |
Indicates the size of this object is not fixed. |
static final AccessibleState |
SELECTABLE |
Indicates this object is the child of an object that allows its children to be selected, and that this child is one of those children that can be selected. |
static final AccessibleState |
SELECTED |
Indicates this object is the child of an object that allows its children to be selected, and that this child is one of those children that has been selected. |
static final AccessibleState |
SHOWING |
Indicates this object, the object's parent, the object's parent's parent, and so on, are all visible. |
static final AccessibleState |
SINGLE_LINE |
Indicates this (text) object can contain only a single line of text. |
static final AccessibleState |
TRANSIENT |
Indicates this object is transient. |
static final AccessibleState |
TRUNCATED |
A state indicating that text is truncated by a bounding rectangle and that some of the text is not displayed on the screen. |
static final AccessibleState |
VERTICAL |
Indicates the orientation of this object is vertical. |
static final AccessibleState |
VISIBLE |
Indicates this object is visible. |
Fields declared in class javax.accessibility.AccessibleBundle
key
Constructor Summary
Modifier | Constructor | Description |
---|---|---|
protected |
Creates a new AccessibleState using the given locale independent key. |
Method Summary
Methods declared in class javax.accessibility.AccessibleBundle
toDisplayString, toDisplayString, toDisplayString, toString
Field Details
ACTIVE
public static final AccessibleState ACTIVE
PRESSED
public static final AccessibleState PRESSED
- See Also:
ARMED
public static final AccessibleState ARMED
- See Also:
BUSY
public static final AccessibleState BUSY
CHECKED
public static final AccessibleState CHECKED
EDITABLE
public static final AccessibleState EDITABLE
- See Also:
EXPANDABLE
public static final AccessibleState EXPANDABLE
EXPANDED
or COLLAPSED
states.- See Also:
COLLAPSED
public static final AccessibleState COLLAPSED
EXPANDABLE
state and is used on objects that provide progressive disclosure such as trees.- See Also:
EXPANDED
public static final AccessibleState EXPANDED
EXPANDABLE
state and is used on objects that provide progressive disclosure such as trees.- See Also:
ENABLED
public static final AccessibleState ENABLED
FOCUSABLE
public static final AccessibleState FOCUSABLE
- See Also:
FOCUSED
public static final AccessibleState FOCUSED
- See Also:
ICONIFIED
public static final AccessibleState ICONIFIED
MODAL
public static final AccessibleState MODAL
- See Also:
OPAQUE
public static final AccessibleState OPAQUE
RESIZABLE
public static final AccessibleState RESIZABLE
MULTISELECTABLE
public static final AccessibleState MULTISELECTABLE
SELECTABLE
public static final AccessibleState SELECTABLE
SELECTED
public static final AccessibleState SELECTED
SHOWING
public static final AccessibleState SHOWING
- See Also:
VISIBLE
public static final AccessibleState VISIBLE
- See Also:
VERTICAL
public static final AccessibleState VERTICAL
HORIZONTAL
public static final AccessibleState HORIZONTAL
SINGLE_LINE
public static final AccessibleState SINGLE_LINE
MULTI_LINE
public static final AccessibleState MULTI_LINE
TRANSIENT
public static final AccessibleState TRANSIENT
PropertyChange
listener to an object with transient state, as that object will never generate any events. Transient objects are typically created to answer Java Accessibility method queries, but otherwise do not remain linked to the underlying object (for example, those objects underneath lists, tables, and trees in Swing, where only one actual UI Component
does shared rendering duty for all of the data objects underneath the actual list/table/tree elements).- Since:
- 1.5
MANAGES_DESCENDANTS
public static final AccessibleState MANAGES_DESCENDANTS
- Since:
- 1.5
INDETERMINATE
public static final AccessibleState INDETERMINATE
- Since:
- 1.5
TRUNCATED
public static final AccessibleState TRUNCATED
- Since:
- 1.5
Constructor Details
AccessibleState
protected AccessibleState(String key)
AccessibleState
using the given locale independent key. This should not be a public method. Instead, it is used to create the constants in this file to make it a strongly typed enumeration. Subclasses of this class should enforce similar policy. The key String
should be a locale independent key for the state. It is not intended to be used as the actual String
to display to the user. To get the localized string, use AccessibleBundle.toDisplayString()
.
- Parameters:
-
key
- the locale independent name of the state - See Also:
© 1993, 2021, 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/17/docs/api/java.desktop/javax/accessibility/AccessibleState.html