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 |
ACTIVE
Indicates a window is currently the active window.
|
static AccessibleState |
ARMED
Indicates that the object is armed.
|
static AccessibleState |
BUSY
Indicates the current object is busy.
|
static AccessibleState |
CHECKED
Indicates this object is currently checked.
|
static AccessibleState |
COLLAPSED
Indicates this object is collapsed.
|
static AccessibleState |
EDITABLE
Indicates the user can change the contents of this object.
|
static AccessibleState |
ENABLED
Indicates this object is enabled.
|
static AccessibleState |
EXPANDABLE
Indicates this object allows progressive disclosure of its children.
|
static AccessibleState |
EXPANDED
Indicates this object is expanded.
|
static 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 AccessibleState |
FOCUSED
Indicates this object currently has the keyboard focus.
|
static AccessibleState |
HORIZONTAL
Indicates the orientation of this object is horizontal.
|
static AccessibleState |
ICONIFIED
Indicates this object is minimized and is represented only by an icon.
|
static AccessibleState |
INDETERMINATE
Indicates that the object state is indeterminate.
|
static AccessibleState |
MANAGES_DESCENDANTS
Indicates this object is responsible for managing its subcomponents.
|
static AccessibleState |
MODAL
Indicates something must be done with this object before the user can interact with an object in a different window.
|
static AccessibleState |
MULTI_LINE
Indicates this (text) object can contain multiple lines of text
|
static AccessibleState |
MULTISELECTABLE
Indicates this object allows more than one of its children to be selected at the same time.
|
static AccessibleState |
OPAQUE
Indicates this object paints every pixel within its rectangular region.
|
static AccessibleState |
PRESSED
Indicates this object is currently pressed.
|
static AccessibleState |
RESIZABLE
Indicates the size of this object is not fixed.
|
static 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 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 AccessibleState |
SHOWING
Indicates this object, the object's parent, the object's parent's parent, and so on, are all visible.
|
static AccessibleState |
SINGLE_LINE
Indicates this (text) object can contain only a single line of text
|
static AccessibleState |
TRANSIENT
Indicates this object is transient.
|
static 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 AccessibleState |
VERTICAL
Indicates the orientation of this object is vertical.
|
static AccessibleState |
VISIBLE
Indicates this object is visible.
|
key| Modifier | Constructor and Description |
|---|---|
protected |
AccessibleState(String
Creates a new AccessibleState using the given locale independent key.
|
toDisplayString, toDisplayString, toDisplayString, toStringpublic static final AccessibleStateACTIVE
public static final AccessibleStatePRESSED
AccessibleRole.PUSH_BUTTON
public static final AccessibleStateARMED
AccessibleRole.PUSH_BUTTON
public static final AccessibleStateBUSY
public static final AccessibleStateCHECKED
public static final AccessibleStateEDITABLE
ENABLED
public static final AccessibleStateEXPANDABLE
EXPANDED,
COLLAPSED,
AccessibleRole.TREE
public static final AccessibleStateCOLLAPSED
EXPANDABLE,
EXPANDED,
AccessibleRole.TREE
public static final AccessibleStateEXPANDED
EXPANDABLE,
COLLAPSED,
AccessibleRole.TREE
public static final AccessibleStateENABLED
public static final AccessibleStateFOCUSABLE
FOCUSED
public static final AccessibleStateFOCUSED
FOCUSABLE
public static final AccessibleStateICONIFIED
public static final AccessibleStateMODAL
AccessibleRole.DIALOG
public static final AccessibleStateOPAQUE
public static final AccessibleStateRESIZABLE
public static final AccessibleStateMULTISELECTABLE
public static final AccessibleStateSELECTABLE
public static final AccessibleStateSELECTED
public static final AccessibleStateSHOWING
VISIBLE
public static final AccessibleStateVISIBLE
SHOWING
public static final AccessibleStateVERTICAL
public static final AccessibleStateHORIZONTAL
public static final AccessibleStateSINGLE_LINE
public static final AccessibleStateMULTI_LINE
public static final AccessibleStateTRANSIENT
public static final AccessibleStateMANAGES_DESCENDANTS
public static final AccessibleStateINDETERMINATE
public static final AccessibleStateTRUNCATED
protected AccessibleState(Stringkey)
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)