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 key)
Creates a new AccessibleState using the given locale independent key.
|
toDisplayString, toDisplayString, toDisplayString, toString
public static final AccessibleState ACTIVE
public static final AccessibleState PRESSED
AccessibleRole.PUSH_BUTTON
public static final AccessibleState ARMED
AccessibleRole.PUSH_BUTTON
public static final AccessibleState BUSY
public static final AccessibleState CHECKED
public static final AccessibleState EDITABLE
ENABLED
public static final AccessibleState EXPANDABLE
EXPANDED
,
COLLAPSED
,
AccessibleRole.TREE
public static final AccessibleState COLLAPSED
EXPANDABLE
,
EXPANDED
,
AccessibleRole.TREE
public static final AccessibleState EXPANDED
EXPANDABLE
,
COLLAPSED
,
AccessibleRole.TREE
public static final AccessibleState ENABLED
public static final AccessibleState FOCUSABLE
FOCUSED
public static final AccessibleState FOCUSED
FOCUSABLE
public static final AccessibleState ICONIFIED
public static final AccessibleState MODAL
AccessibleRole.DIALOG
public 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
VISIBLE
public static final AccessibleState VISIBLE
SHOWING
public 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, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.