AccessibleRole determines the role of a component. The role of
 a component describes its generic function. (E.G., "push button," "table," or
 "list.")
 
 The AccessibleBundle.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 SummaryFieldsModifier and TypeFieldDescriptionstatic final AccessibleRoleObject is used to alert the user about something.static final AccessibleRoleAn AWT component, but nothing else is known about it.static final AccessibleRoleObject that can be drawn into and is used to trap events.static final AccessibleRoleA choice that can be checked or unchecked and provides a separate indicator for the current state.static final AccessibleRoleA specialized pane that lets the user choose a color.static final AccessibleRoleThe header for a column of data.static final AccessibleRoleA list of choices the user can select from.static final AccessibleRoleADATE_EDITORis a component that allows users to editjava.util.Dateandjava.util.Timeobjects.static final AccessibleRoleAn iconified internal frame in aDESKTOP_PANE.static final AccessibleRoleA pane that supports internal frames and iconified versions of those internal frames.static final AccessibleRoleA top level window with title bar and a border.static final AccessibleRoleA pane that allows the user to navigate through and select the contents of a directory.static final AccessibleRoleA role indicating the object acts as a formula for calculating a value.static final AccessibleRoleA specialized dialog that displays the files in the directory and lets the user select a file, browse a different directory, or specify a filename.static final AccessibleRoleAn object that fills up space in a user interface.static final AccessibleRoleAFONT_CHOOSERis a component that lets the user pick various attributes for fonts.static final AccessibleRoleA text footer.static final AccessibleRoleA top level window with a title bar, border, menu bar, etc.static final AccessibleRoleA pane that is guaranteed to be painted on top of all panes beneath it.static final AccessibleRoleAGROUP_BOXis a simple container that contains a border around it and contains components inside it.static final AccessibleRoleA text header.static final AccessibleRoleAn object containing a collection ofAccessiblesthat together representsHTMLcontent.static final AccessibleRoleA hypertext anchor.static final AccessibleRoleA small fixed size picture, typically used to decorate components.static final AccessibleRoleA frame-like object that is clipped by a desktop pane.static final AccessibleRoleAn object used to present an icon or short string in an interface.static final AccessibleRoleA specialized pane that allows its children to be drawn in layers, providing a form of stacking order.static final AccessibleRoleAn object that presents a list of objects to the user and allows the user to select one or more of them.static final AccessibleRoleAn object that presents an element in a list.static final AccessibleRoleAn object usually found inside a menu bar that contains a list of actions the user can choose from.static final AccessibleRoleAn object usually drawn at the top of the primary dialog box of an application that contains a list of menus the user can choose from.static final AccessibleRoleAn object usually contained in a menu that presents an action the user can choose.static final AccessibleRoleA specialized pane whose primary use is inside aDIALOG.static final AccessibleRoleAn object that is a child of a page tab list.static final AccessibleRoleAn object that presents a series of panels (or page tabs), one at a time, through some mechanism provided by the object.static final AccessibleRoleA generic container that is often used to group objects.static final AccessibleRoleA text paragraph.static final AccessibleRoleA text object used for passwords, or other places where the text contents is not shown visibly to the user.static final AccessibleRoleA temporary window that is usually used to offer the user a list of choices, and then hides when the user selects one of those choices.static final AccessibleRoleAn object used to indicate how much of a task has been completed.static final AccessibleRoleA role indicating the object monitors the progress of some operation.static final AccessibleRoleAn object the user can manipulate to tell the application to do something.static final AccessibleRoleA specialized check box that will cause other radio buttons in the same group to become unchecked when this one is checked.static final AccessibleRoleA specialized pane that has a glass pane and a layered pane as its children.static final AccessibleRoleThe header for a row of data.static final AccessibleRoleA ruler is an object used to measure distance.static final AccessibleRoleAn object usually used to allow a user to incrementally view a large amount of data.static final AccessibleRoleAn object that allows a user to incrementally view a large amount of information.static final AccessibleRoleAn object usually contained in a menu to provide a visual and logical separation of the contents in a menu.static final AccessibleRoleAn object that allows the user to select from a bounded range.static final AccessibleRoleASPIN_BOXis a simple spinner component and its main use is for simple numbers.static final AccessibleRoleA specialized panel that presents two other panels at the same time.static final AccessibleRoleASTATUS_BARis an simple component that can contain multiple labels of status information to the user.static final AccessibleRoleA Swing component, but nothing else is known about it.static final AccessibleRoleAn object used to present information in terms of rows and columns.static final AccessibleRoleAn object that presents text to the user.static final AccessibleRoleA specialized push button that can be checked or unchecked, but does not provide a separate indicator for the current state.static final AccessibleRoleA bar or palette usually composed of push buttons or toggle buttons.static final AccessibleRoleAn object that provides information about another object.static final AccessibleRoleAn object used to present hierarchical information to the user.static final AccessibleRoleThe object contains someAccessibleinformation, but its role is not known.static final AccessibleRoleAn object usually used in a scroll pane.static final AccessibleRoleA top level window with no title or border.Fields declared in class javax.accessibility.AccessibleBundlekey
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAccessibleRole(String key) Creates a newAccessibleRoleusing the given locale independent key.
- 
Method SummaryMethods declared in class javax.accessibility.AccessibleBundletoDisplayString, toDisplayString, toDisplayString, toString
- 
Field Details- 
ALERTObject is used to alert the user about something.
- 
COLUMN_HEADERThe header for a column of data.
- 
CANVASObject that can be drawn into and is used to trap events.- See Also:
 
- 
COMBO_BOXA list of choices the user can select from. Also optionally allows the user to enter a choice of their own.
- 
DESKTOP_ICONAn iconified internal frame in aDESKTOP_PANE.- See Also:
 
- 
HTML_CONTAINERAn object containing a collection ofAccessiblesthat together representsHTMLcontent. The childAccessibleswould include objects implementingAccessibleText,AccessibleHypertext,AccessibleIcon, and other interfaces.- Since:
- 1.6
- See Also:
 
- 
INTERNAL_FRAMEA frame-like object that is clipped by a desktop pane. The desktop pane, internal frame, and desktop icon objects are often used to create multiple document interfaces within an application.- See Also:
 
- 
DESKTOP_PANEA pane that supports internal frames and iconified versions of those internal frames.- See Also:
 
- 
OPTION_PANEA specialized pane whose primary use is inside aDIALOG.- See Also:
 
- 
WINDOW
- 
FRAMEA top level window with a title bar, border, menu bar, etc. It is often used as the primary window for an application.- See Also:
 
- 
DIALOGA top level window with title bar and a border. A dialog is similar to a frame, but it has fewer properties and is often used as a secondary window for an application.- See Also:
 
- 
COLOR_CHOOSERA specialized pane that lets the user choose a color.
- 
DIRECTORY_PANEA pane that allows the user to navigate through and select the contents of a directory. May be used by a file chooser.- See Also:
 
- 
FILE_CHOOSERA specialized dialog that displays the files in the directory and lets the user select a file, browse a different directory, or specify a filename. May use the directory pane to show the contents of a directory.- See Also:
 
- 
FILLERAn object that fills up space in a user interface. It is often used in interfaces to tweak the spacing between components, but serves no other purpose.
- 
HYPERLINKA hypertext anchor.
- 
ICONA small fixed size picture, typically used to decorate components.
- 
LABELAn object used to present an icon or short string in an interface.
- 
ROOT_PANEA specialized pane that has a glass pane and a layered pane as its children.- See Also:
 
- 
GLASS_PANEA pane that is guaranteed to be painted on top of all panes beneath it.- See Also:
 
- 
LAYERED_PANEA specialized pane that allows its children to be drawn in layers, providing a form of stacking order. This is usually the pane that holds the menu bar as well as the pane that contains most of the visual components in a window.- See Also:
 
- 
LISTAn object that presents a list of objects to the user and allows the user to select one or more of them. A list is usually contained within a scroll pane.- See Also:
 
- 
LIST_ITEMAn object that presents an element in a list. A list is usually contained within a scroll pane.- See Also:
 
- 
MENU_BARAn object usually drawn at the top of the primary dialog box of an application that contains a list of menus the user can choose from. For example, a menu bar might contain menus for "File," "Edit," and "Help."- See Also:
 
- 
POPUP_MENUA temporary window that is usually used to offer the user a list of choices, and then hides when the user selects one of those choices.- See Also:
 
- 
MENUAn object usually found inside a menu bar that contains a list of actions the user can choose from. A menu can have any object as its children, but most often they are menu items, other menus, or rudimentary objects such as radio buttons, check boxes, or separators. For example, an application may have an "Edit" menu that contains menu items for "Cut" and "Paste."- See Also:
 
- 
MENU_ITEMAn object usually contained in a menu that presents an action the user can choose. For example, the "Cut" menu item in an "Edit" menu would be an action the user can select to cut the selected area of text in a document.- See Also:
 
- 
SEPARATORAn object usually contained in a menu to provide a visual and logical separation of the contents in a menu. For example, the "File" menu of an application might contain menu items for "Open," "Close," and "Exit," and will place a separator between "Close" and "Exit" menu items.- See Also:
 
- 
PAGE_TAB_LISTAn object that presents a series of panels (or page tabs), one at a time, through some mechanism provided by the object. The most common mechanism is a list of tabs at the top of the panel. The children of a page tab list are all page tabs.- See Also:
 
- 
PAGE_TABAn object that is a child of a page tab list. Its sole child is the panel that is to be presented to the user when the user selects the page tab from the list of tabs in the page tab list.- See Also:
 
- 
PANELA generic container that is often used to group objects.
- 
PROGRESS_BARAn object used to indicate how much of a task has been completed.
- 
PASSWORD_TEXTA text object used for passwords, or other places where the text contents is not shown visibly to the user.
- 
PUSH_BUTTONAn object the user can manipulate to tell the application to do something.- See Also:
 
- 
TOGGLE_BUTTONA specialized push button that can be checked or unchecked, but does not provide a separate indicator for the current state.- See Also:
 
- 
CHECK_BOXA choice that can be checked or unchecked and provides a separate indicator for the current state.- See Also:
 
- 
RADIO_BUTTONA specialized check box that will cause other radio buttons in the same group to become unchecked when this one is checked.- See Also:
 
- 
ROW_HEADERThe header for a row of data.
- 
SCROLL_PANEAn object that allows a user to incrementally view a large amount of information. Its children can include scroll bars and a viewport.- See Also:
 
- 
SCROLL_BARAn object usually used to allow a user to incrementally view a large amount of data. Usually used only by a scroll pane.- See Also:
 
- 
VIEWPORTAn object usually used in a scroll pane. It represents the portion of the entire data that the user can see. As the user manipulates the scroll bars, the contents of the viewport can change.- See Also:
 
- 
SLIDERAn object that allows the user to select from a bounded range. For example, a slider might be used to select a number between 0 and 100.
- 
SPLIT_PANEA specialized panel that presents two other panels at the same time. Between the two panels is a divider the user can manipulate to make one panel larger and the other panel smaller.
- 
TABLEAn object used to present information in terms of rows and columns. An example might include a spreadsheet application.
- 
TEXTAn object that presents text to the user. The text is usually editable by the user as opposed to a label.- See Also:
 
- 
TREEAn object used to present hierarchical information to the user. The individual nodes in the tree can be collapsed and expanded to provide selective disclosure of the tree's contents.
- 
TOOL_BARA bar or palette usually composed of push buttons or toggle buttons. It is often used to provide the most frequently used functions for an application.
- 
TOOL_TIPAn object that provides information about another object. TheaccessibleDescriptionproperty of the tool tip is often displayed to the user in a small "help bubble" when the user causes the mouse to hover over the object associated with the tool tip.
- 
AWT_COMPONENTAn AWT component, but nothing else is known about it.- See Also:
 
- 
SWING_COMPONENTA Swing component, but nothing else is known about it.- See Also:
 
- 
UNKNOWNThe object contains someAccessibleinformation, but its role is not known.- See Also:
 
- 
STATUS_BARASTATUS_BARis an simple component that can contain multiple labels of status information to the user.
- 
DATE_EDITORADATE_EDITORis a component that allows users to editjava.util.Dateandjava.util.Timeobjects.
- 
SPIN_BOXASPIN_BOXis a simple spinner component and its main use is for simple numbers.
- 
FONT_CHOOSERAFONT_CHOOSERis a component that lets the user pick various attributes for fonts.
- 
GROUP_BOXAGROUP_BOXis a simple container that contains a border around it and contains components inside it.
- 
HEADER
- 
FOOTER
- 
PARAGRAPH
- 
RULER
- 
EDITBARA role indicating the object acts as a formula for calculating a value. An example is a formula in a spreadsheet cell.- Since:
- 1.5
 
- 
PROGRESS_MONITORA role indicating the object monitors the progress of some operation.- Since:
- 1.5
 
 
- 
- 
Constructor Details- 
AccessibleRoleCreates a newAccessibleRoleusing 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.The key Stringshould be a locale independent key for the role. It is not intended to be used as the actualStringto display to the user. To get the localized string, useAccessibleBundle.toDisplayString().- Parameters:
- key- the locale independent name of the role
- See Also:
 
 
-