public class AccessibleState extends AccessibleBundle
Class 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 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.
| Modifier and Type | Field and Description | 
|---|---|
| static AccessibleState | ACTIVEIndicates a window is currently the active window. | 
| static AccessibleState | ARMEDIndicates that the object is armed. | 
| static AccessibleState | BUSYIndicates the current object is busy. | 
| static AccessibleState | CHECKEDIndicates this object is currently checked. | 
| static AccessibleState | COLLAPSEDIndicates this object is collapsed. | 
| static AccessibleState | EDITABLEIndicates the user can change the contents of this object. | 
| static AccessibleState | ENABLEDIndicates this object is enabled. | 
| static AccessibleState | EXPANDABLEIndicates this object allows progressive disclosure of its children. | 
| static AccessibleState | EXPANDEDIndicates this object is expanded. | 
| static AccessibleState | FOCUSABLEIndicates 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 AccessibleState | FOCUSEDIndicates this object currently has the keyboard focus. | 
| static AccessibleState | HORIZONTALIndicates the orientation of this object is horizontal. | 
| static AccessibleState | ICONIFIEDIndicates this object is minimized and is represented only by an
 icon. | 
| static AccessibleState | INDETERMINATEIndicates that the object state is indeterminate. | 
| static AccessibleState | MANAGES_DESCENDANTSIndicates this object is responsible for managing its
 subcomponents. | 
| static AccessibleState | MODALIndicates something must be done with this object before the
 user can interact with an object in a different window. | 
| static AccessibleState | MULTI_LINEIndicates this (text) object can contain multiple lines of text | 
| static AccessibleState | MULTISELECTABLEIndicates this object allows more than one of its children to
 be selected at the same time. | 
| static AccessibleState | OPAQUEIndicates this object paints every pixel within its
 rectangular region. | 
| static AccessibleState | PRESSEDIndicates this object is currently pressed. | 
| static AccessibleState | RESIZABLEIndicates the size of this object is not fixed. | 
| static AccessibleState | SELECTABLEIndicates 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 AccessibleState | SELECTEDIndicates 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 AccessibleState | SHOWINGIndicates this object, the object's parent, the object's parent's
 parent, and so on, are all visible. | 
| static AccessibleState | SINGLE_LINEIndicates this (text) object can contain only a single line of text | 
| static AccessibleState | TRANSIENTIndicates this object is transient. | 
| static AccessibleState | TRUNCATEDA state indicating that text is truncated by a bounding rectangle
 and that some of the text is not displayed on the screen. | 
| static AccessibleState | VERTICALIndicates the orientation of this object is vertical. | 
| static AccessibleState | VISIBLEIndicates this object is visible. | 
key| Modifier | Constructor and Description | 
|---|---|
| protected  | AccessibleState(String key)Creates a new AccessibleState using the given locale independent key. | 
toDisplayString, toDisplayString, toDisplayString, toStringpublic static final AccessibleState ACTIVE
public static final AccessibleState PRESSED
AccessibleRole.PUSH_BUTTONpublic static final AccessibleState ARMED
AccessibleRole.PUSH_BUTTONpublic static final AccessibleState BUSY
public static final AccessibleState CHECKED
public static final AccessibleState EDITABLE
ENABLEDpublic static final AccessibleState EXPANDABLE
EXPANDED, 
COLLAPSED, 
AccessibleRole.TREEpublic static final AccessibleState COLLAPSED
EXPANDABLE, 
EXPANDED, 
AccessibleRole.TREEpublic static final AccessibleState EXPANDED
EXPANDABLE, 
COLLAPSED, 
AccessibleRole.TREEpublic static final AccessibleState ENABLED
public static final AccessibleState FOCUSABLE
FOCUSEDpublic static final AccessibleState FOCUSED
FOCUSABLEpublic static final AccessibleState ICONIFIED
public static final AccessibleState MODAL
AccessibleRole.DIALOGpublic static final AccessibleState OPAQUE
public static final AccessibleState RESIZABLE
public static final AccessibleState MULTISELECTABLE
public static final AccessibleState SELECTABLE
public static final AccessibleState SELECTED
public static final AccessibleState SHOWING
VISIBLEpublic static final AccessibleState VISIBLE
SHOWINGpublic static final AccessibleState VERTICAL
public static final AccessibleState HORIZONTAL
public static final AccessibleState SINGLE_LINE
public static final AccessibleState MULTI_LINE
public static final AccessibleState TRANSIENT
public static final AccessibleState MANAGES_DESCENDANTS
public static final AccessibleState INDETERMINATE
public static final AccessibleState TRUNCATED
protected AccessibleState(String key)
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 toDisplayString.
key - the locale independent name of the state.AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale) Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.