|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.accessibility.AccessibleBundle javax.accessibility.AccessibleState
public class AccessibleState
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.
Field Summary | |
---|---|
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. |
Fields inherited from class javax.accessibility.AccessibleBundle |
---|
key |
Constructor Summary | |
---|---|
protected |
AccessibleState(String key)
Creates a new AccessibleState using the given locale independent key. |
Method Summary |
---|
Methods inherited from class javax.accessibility.AccessibleBundle |
---|
toDisplayString, toDisplayString, toDisplayString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final AccessibleState ACTIVE
AccessibleRole.WINDOW
,
AccessibleRole.FRAME
,
AccessibleRole.DIALOG
public static final AccessibleState PRESSED
AccessibleRole.PUSH_BUTTON
public static final AccessibleState ARMED
AccessibleRole.PUSH_BUTTON
public static final AccessibleState BUSY
AccessibleRole.PROGRESS_BAR
,
AccessibleRole.SCROLL_BAR
,
AccessibleRole.SLIDER
public static final AccessibleState CHECKED
AccessibleRole.TOGGLE_BUTTON
,
AccessibleRole.RADIO_BUTTON
,
AccessibleRole.CHECK_BOX
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
AccessibleRole.FRAME
,
AccessibleRole.INTERNAL_FRAME
public static final AccessibleState MODAL
AccessibleRole.DIALOG
public static final AccessibleState OPAQUE
Accessible.getAccessibleContext()
,
AccessibleContext.getAccessibleComponent()
,
AccessibleComponent.getBounds()
public static final AccessibleState RESIZABLE
Accessible.getAccessibleContext()
,
AccessibleContext.getAccessibleComponent()
,
AccessibleComponent.getSize()
,
AccessibleComponent.setSize(java.awt.Dimension)
public static final AccessibleState MULTISELECTABLE
Accessible.getAccessibleContext()
,
AccessibleContext.getAccessibleSelection()
,
AccessibleSelection
public static final AccessibleState SELECTABLE
SELECTED
,
Accessible.getAccessibleContext()
,
AccessibleContext.getAccessibleSelection()
,
AccessibleSelection
public static final AccessibleState SELECTED
SELECTABLE
,
Accessible.getAccessibleContext()
,
AccessibleContext.getAccessibleSelection()
,
AccessibleSelection
public static final AccessibleState SHOWING
VISIBLE
public static final AccessibleState VISIBLE
SHOWING
public static final AccessibleState VERTICAL
VERTICAL
,
AccessibleRole.SCROLL_BAR
,
AccessibleRole.SLIDER
,
AccessibleRole.PROGRESS_BAR
public static final AccessibleState HORIZONTAL
HORIZONTAL
,
AccessibleRole.SCROLL_BAR
,
AccessibleRole.SLIDER
,
AccessibleRole.PROGRESS_BAR
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
Constructor Detail |
---|
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)
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.