javax.accessibility
Class AccessibleState

java.lang.Object
  |
  +--javax.accessibility.AccessibleBundle
        |
        +--javax.accessibility.AccessibleState

public class AccessibleState
extends AccessibleBundle

Untamed:


Field Summary
static AccessibleState ACTIVE
          Enabled: Indicates a window is currently the active window.
static AccessibleState ARMED
          Enabled: Indicates that the object is armed.
static AccessibleState BUSY
          Enabled: Indicates the current object is busy.
static AccessibleState CHECKED
          Enabled: Indicates this object is currently checked.
static AccessibleState COLLAPSED
          Enabled: Indicates this object is collapsed.
static AccessibleState EDITABLE
          Enabled: Indicates the user can change the contents of this object.
static AccessibleState ENABLED
          Enabled: Indicates this object is enabled.
static AccessibleState EXPANDABLE
          Enabled: Indicates this object allows progressive disclosure of its children.
static AccessibleState EXPANDED
          Enabled: Indicates this object is expanded.
static AccessibleState FOCUSABLE
          Enabled: 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
          Enabled: Indicates this object currently has the keyboard focus.
static AccessibleState HORIZONTAL
          Enabled: Indicates the orientation of this object is horizontal.
static AccessibleState ICONIFIED
          Enabled: Indicates this object is minimized and is represented only by an icon.
static AccessibleState MODAL
          Enabled: Indicates something must be done with this object before the user can interact with an object in a different window.
static AccessibleState MULTI_LINE
          Enabled: Indicates this (text) object can contain multiple lines of text
static AccessibleState MULTISELECTABLE
          Enabled: Indicates this object allows more than one of its children to be selected at the same time.
static AccessibleState OPAQUE
          Enabled: Indicates this object paints every pixel within its rectangular region.
static AccessibleState PRESSED
          Enabled: Indicates this object is currently pressed.
static AccessibleState RESIZABLE
          Enabled: Indicates the size of this object is not fixed.
static AccessibleState SELECTABLE
          Enabled: 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
          Enabled: 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
          Enabled: Indicates this object, the object's parent, the object's parent's parent, and so on, are all visible.
static AccessibleState SINGLE_LINE
          Enabled: Indicates this (text) object can contain only a single line of text
static AccessibleState TRANSIENT
          Enabled: Indicates this object is transient.
static AccessibleState VERTICAL
          Enabled: Indicates the orientation of this object is vertical.
static AccessibleState VISIBLE
          Enabled: 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.
 
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

ACTIVE

public static final AccessibleState ACTIVE
Enabled: Indicates a window is currently the active window. This includes windows, dialogs, frames, etc. In addition, this state is used to indicate the currently active child of a component such as a list, table, or tree. For example, the active child of a list is the child that is drawn with a rectangle around it.

See Also:
AccessibleRole.WINDOW, AccessibleRole.FRAME, AccessibleRole.DIALOG

PRESSED

public static final AccessibleState PRESSED
Enabled: Indicates this object is currently pressed. This is usually associated with buttons and indicates the user has pressed a mouse button while the pointer was over the button and has not yet released the mouse button.

See Also:
AccessibleRole.PUSH_BUTTON

ARMED

public static final AccessibleState ARMED
Enabled: Indicates that the object is armed. This is usually used on buttons that have been pressed but not yet released, and the mouse pointer is still over the button.

See Also:
AccessibleRole.PUSH_BUTTON

BUSY

public static final AccessibleState BUSY
Enabled: Indicates the current object is busy. This is usually used on objects such as progress bars, sliders, or scroll bars to indicate they are in a state of transition.

See Also:
AccessibleRole.PROGRESS_BAR, AccessibleRole.SCROLL_BAR, AccessibleRole.SLIDER

CHECKED

public static final AccessibleState CHECKED
Enabled: Indicates this object is currently checked. This is usually used on objects such as toggle buttons, radio buttons, and check boxes.

See Also:
AccessibleRole.TOGGLE_BUTTON, AccessibleRole.RADIO_BUTTON, AccessibleRole.CHECK_BOX

EDITABLE

public static final AccessibleState EDITABLE
Enabled: Indicates the user can change the contents of this object. This is usually used primarily for objects that allow the user to enter text. Other objects, such as scroll bars and sliders, are automatically editable if they are enabled.

See Also:
ENABLED

EXPANDABLE

public static final AccessibleState EXPANDABLE
Enabled: Indicates this object allows progressive disclosure of its children. This is usually used with hierarchical objects such as trees and is often paired with the EXPANDED or COLLAPSED states.

See Also:
EXPANDED, COLLAPSED, AccessibleRole.TREE

COLLAPSED

public static final AccessibleState COLLAPSED
Enabled: Indicates this object is collapsed. This is usually paired with the EXPANDABLE state and is used on objects that provide progressive disclosure such as trees.

See Also:
EXPANDABLE, EXPANDED, AccessibleRole.TREE

EXPANDED

public static final AccessibleState EXPANDED
Enabled: Indicates this object is expanded. This is usually paired with the EXPANDABLE state and is used on objects that provide progressive disclosure such as trees.

See Also:
EXPANDABLE, COLLAPSED, AccessibleRole.TREE

ENABLED

public static final AccessibleState ENABLED
Enabled: Indicates this object is enabled. The absence of this state from an object's state set indicates this object is not enabled. An object that is not enabled cannot be manipulated by the user. In a graphical display, it is usually grayed out.


FOCUSABLE

public static final AccessibleState FOCUSABLE
Enabled: 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.

See Also:
FOCUSED

FOCUSED

public static final AccessibleState FOCUSED
Enabled: Indicates this object currently has the keyboard focus.

See Also:
FOCUSABLE

ICONIFIED

public static final AccessibleState ICONIFIED
Enabled: Indicates this object is minimized and is represented only by an icon. This is usually only associated with frames and internal frames.

See Also:
AccessibleRole.FRAME, AccessibleRole.INTERNAL_FRAME

MODAL

public static final AccessibleState MODAL
Enabled: Indicates something must be done with this object before the user can interact with an object in a different window. This is usually associated only with dialogs.

See Also:
AccessibleRole.DIALOG

OPAQUE

public static final AccessibleState OPAQUE
Enabled: Indicates this object paints every pixel within its rectangular region. A non-opaque component paints only some of its pixels, allowing the pixels underneath it to "show through". A component that does not fully paint its pixels therefore provides a degree of transparency.

See Also:
Accessible.getAccessibleContext(), AccessibleContext.getAccessibleComponent(), AccessibleComponent.getBounds()

RESIZABLE

public static final AccessibleState RESIZABLE
Enabled: Indicates the size of this object is not fixed.

See Also:
Accessible.getAccessibleContext(), AccessibleContext.getAccessibleComponent(), AccessibleComponent.getSize(), AccessibleComponent.setSize(java.awt.Dimension)

MULTISELECTABLE

public static final AccessibleState MULTISELECTABLE
Enabled: Indicates this object allows more than one of its children to be selected at the same time.

See Also:
Accessible.getAccessibleContext(), AccessibleContext.getAccessibleSelection(), AccessibleSelection

SELECTABLE

public static final AccessibleState SELECTABLE
Enabled: 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.

See Also:
SELECTED, Accessible.getAccessibleContext(), AccessibleContext.getAccessibleSelection(), AccessibleSelection

SELECTED

public static final AccessibleState SELECTED
Enabled: 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.

See Also:
SELECTABLE, Accessible.getAccessibleContext(), AccessibleContext.getAccessibleSelection(), AccessibleSelection

SHOWING

public static final AccessibleState SHOWING
Enabled: Indicates this object, the object's parent, the object's parent's parent, and so on, are all visible. Note that this does not necessarily mean the object is painted on the screen. It might be occluded by some other showing object.

See Also:
VISIBLE

VISIBLE

public static final AccessibleState VISIBLE
Enabled: Indicates this object is visible. Note: this means that the object intends to be visible; however, it may not in fact be showing on the screen because one of the objects that this object is contained by is not visible.

See Also:
SHOWING

VERTICAL

public static final AccessibleState VERTICAL
Enabled: Indicates the orientation of this object is vertical. This is usually associated with objects such as scrollbars, sliders, and progress bars.

See Also:
VERTICAL, AccessibleRole.SCROLL_BAR, AccessibleRole.SLIDER, AccessibleRole.PROGRESS_BAR

HORIZONTAL

public static final AccessibleState HORIZONTAL
Enabled: Indicates the orientation of this object is horizontal. This is usually associated with objects such as scrollbars, sliders, and progress bars.

See Also:
HORIZONTAL, AccessibleRole.SCROLL_BAR, AccessibleRole.SLIDER, AccessibleRole.PROGRESS_BAR

SINGLE_LINE

public static final AccessibleState SINGLE_LINE
Enabled: Indicates this (text) object can contain only a single line of text


MULTI_LINE

public static final AccessibleState MULTI_LINE
Enabled: Indicates this (text) object can contain multiple lines of text


TRANSIENT

public static final AccessibleState TRANSIENT
Enabled: Indicates this object is transient. An assistive technology should not add a 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).

Constructor Detail

AccessibleState

protected AccessibleState(String key)
Creates a new 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.

Parameters:
key - the locale independent name of the state.
See Also:
AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)


comments?