All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.accessibility.AccessibleState

java.lang.Object
   |
   +----com.sun.java.accessibility.AccessibleBundle
           |
           +----com.sun.java.accessibility.AccessibleState

public class AccessibleState
extends AccessibleBundle

Class AccessibleState describes a componets 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.


Variable Index

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

Constructor Index

 o AccessibleState(String)
Create a new AccessibleState using the given locale independent key.

Variables

 o ACTIVE
 public static final AccessibleState ACTIVE
Indicates a window is currently the active window. This includes windows, dialogs, frames, etc.

See Also:
WINDOW, FRAME, DIALOG
 o PRESSED
 public static final AccessibleState PRESSED
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:
PUSH_BUTTON
 o ARMED
 public static final AccessibleState ARMED
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:
PUSH_BUTTON
 o BUSY
 public static final AccessibleState BUSY
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:
PROGRESS_BAR, SCROLL_BAR, SLIDER
 o CHECKED
 public static final AccessibleState CHECKED
Indicates this object is currently checked. This is usually used on objects such as toggle buttons, radio buttons, and check boxes.

See Also:
TOGGLE_BUTTON, RADIO_BUTTON, CHECK_BOX
 o EDITABLE
 public static final AccessibleState EDITABLE
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
 o EXPANDABLE
 public static final AccessibleState EXPANDABLE
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, TREE
 o COLLAPSED
 public static final AccessibleState COLLAPSED
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, TREE
 o EXPANDED
 public static final AccessibleState EXPANDED
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, TREE
 o ENABLED
 public static final AccessibleState 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.

 o FOCUSABLE
 public static final 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.

See Also:
FOCUSED
 o FOCUSED
 public static final AccessibleState FOCUSED
Indicates this object current has the keyboard focus.

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

See Also:
FRAME, INTERNAL_FRAME
 o MODAL
 public static final AccessibleState MODAL
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:
DIALOG
 o OPAQUE
 public static final AccessibleState OPAQUE
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:
getAccessibleContext, getAccessibleComponent, getBounds
 o RESIZABLE
 public static final AccessibleState RESIZABLE
Indicates the size of this object is not fixed.

See Also:
getAccessibleContext, getAccessibleComponent, getSize, setSize
 o MULTISELECTABLE
 public static final AccessibleState MULTISELECTABLE
Indicates this object allows more than one of its children to be selected at the same time.

See Also:
getAccessibleContext, getAccessibleSelection, AccessibleSelection
 o SELECTABLE
 public static final 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.

See Also:
SELECTED, getAccessibleContext, getAccessibleSelection, AccessibleSelection
 o SELECTED
 public static final 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.

See Also:
SELECTABLE, getAccessibleContext, getAccessibleSelection, AccessibleSelection
 o SHOWING
 public static final AccessibleState SHOWING
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
 o VISIBLE
 public static final AccessibleState VISIBLE
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
 o VERTICAL
 public static final AccessibleState VERTICAL
Indicates the orientation of this object is vertical. This is usually associated with objects such as scrollbars, sliders, and progress bars.

See Also:
VERTICAL, SCROLL_BAR, SLIDER, PROGRESS_BAR
 o HORIZONTAL
 public static final AccessibleState HORIZONTAL
Indicates the orientation of this object is horizontal. This is usually associated with objects such as scrollbars, sliders, and progress bars.

See Also:
HORIZONTAL, SCROLL_BAR, SLIDER, PROGRESS_BAR
 o SINGLE_LINE
 public static final AccessibleState SINGLE_LINE
Indicates this (text) object can contain only a single line of text

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

Constructors

 o AccessibleState
 protected AccessibleState(String key)
Create 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:
toDisplayString

All Packages  Class Hierarchy  This Package  Previous  Next  Index