public class AccessibleRole extends AccessibleBundle
Class AccessibleRole determines the role of a component. The role of a component describes its generic function. (E.G., "push button," "table," or "list.")
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 AccessibleRole | ALERTObject is used to alert the user about something. | 
| static AccessibleRole | AWT_COMPONENTAn AWT component, but nothing else is known about it. | 
| static AccessibleRole | CANVASObject that can be drawn into and is used to trap
 events. | 
| static AccessibleRole | CHECK_BOXA choice that can be checked or unchecked and provides a
 separate indicator for the current state. | 
| static AccessibleRole | COLOR_CHOOSERA specialized pane that lets the user choose a color. | 
| static AccessibleRole | COLUMN_HEADERThe header for a column of data. | 
| static AccessibleRole | COMBO_BOXA list of choices the user can select from. | 
| static AccessibleRole | DATE_EDITORA DATE_EDITOR is a component that allows users to edit
 java.util.Date and java.util.Time objects | 
| static AccessibleRole | DESKTOP_ICONAn iconified internal frame in a DESKTOP_PANE. | 
| static AccessibleRole | DESKTOP_PANEA pane that supports internal frames and
 iconified versions of those internal frames. | 
| static AccessibleRole | DIALOGA top level window with title bar and a border. | 
| static AccessibleRole | DIRECTORY_PANEA pane that allows the user to navigate through
 and select the contents of a directory. | 
| static AccessibleRole | EDITBARA role indicating the object acts as a formula for
 calculating a value. | 
| static AccessibleRole | 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. | 
| static AccessibleRole | FILLERAn object that fills up space in a user interface. | 
| static AccessibleRole | FONT_CHOOSERA FONT_CHOOSER is a component that lets the user pick various
 attributes for fonts. | 
| static AccessibleRole | FOOTERA text footer | 
| static AccessibleRole | FRAMEA top level window with a title bar, border, menu bar, etc. | 
| static AccessibleRole | GLASS_PANEA pane that is guaranteed to be painted on top
 of all panes beneath it. | 
| static AccessibleRole | GROUP_BOXA GROUP_BOX is a simple container that contains a border
 around it and contains components inside it. | 
| static AccessibleRole | HEADERA text header | 
| static AccessibleRole | HTML_CONTAINERAn object containing a collection of  Accessiblesthat
 together representsHTMLcontent. | 
| static AccessibleRole | HYPERLINKA hypertext anchor | 
| static AccessibleRole | ICONA small fixed size picture, typically used to decorate components. | 
| static AccessibleRole | INTERNAL_FRAMEA frame-like object that is clipped by a desktop pane. | 
| static AccessibleRole | LABELAn object used to present an icon or short string in an interface. | 
| static AccessibleRole | LAYERED_PANEA specialized pane that allows its children to be drawn in layers,
 providing a form of stacking order. | 
| static AccessibleRole | LISTAn object that presents a list of objects to the user and allows the
 user to select one or more of them. | 
| static AccessibleRole | LIST_ITEMAn object that presents an element in a list. | 
| static AccessibleRole | MENUAn object usually found inside a menu bar that contains a list
 of actions the user can choose from. | 
| static AccessibleRole | 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. | 
| static AccessibleRole | MENU_ITEMAn object usually contained in a menu that presents an action
 the user can choose. | 
| static AccessibleRole | OPTION_PANEA specialized pane whose primary use is inside a DIALOG | 
| static AccessibleRole | PAGE_TABAn object that is a child of a page tab list. | 
| static AccessibleRole | PAGE_TAB_LISTAn object that presents a series of panels (or page tabs), one at a
 time, through some mechanism provided by the object. | 
| static AccessibleRole | PANELA generic container that is often used to group objects. | 
| static AccessibleRole | PARAGRAPHA text paragraph | 
| static AccessibleRole | PASSWORD_TEXTA text object used for passwords, or other places where the
 text contents is not shown visibly to the user | 
| static AccessibleRole | 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. | 
| static AccessibleRole | PROGRESS_BARAn object used to indicate how much of a task has been completed. | 
| static AccessibleRole | PROGRESS_MONITORA role indicating the object monitors the progress
 of some operation. | 
| static AccessibleRole | PUSH_BUTTONAn object the user can manipulate to tell the application to do
 something. | 
| static AccessibleRole | RADIO_BUTTONA specialized check box that will cause other radio buttons in the
 same group to become unchecked when this one is checked. | 
| static AccessibleRole | ROOT_PANEA specialized pane that has a glass pane and a layered pane as its
 children. | 
| static AccessibleRole | ROW_HEADERThe header for a row of data. | 
| static AccessibleRole | RULERA ruler is an object used to measure distance | 
| static AccessibleRole | SCROLL_BARAn object usually used to allow a user to incrementally view a
 large amount of data. | 
| static AccessibleRole | SCROLL_PANEAn object that allows a user to incrementally view a large amount
 of information. | 
| static AccessibleRole | SEPARATORAn object usually contained in a menu to provide a visual
 and logical separation of the contents in a menu. | 
| static AccessibleRole | SLIDERAn object that allows the user to select from a bounded range. | 
| static AccessibleRole | SPIN_BOXA SPIN_BOX is a simple spinner component and its main use
 is for simple numbers. | 
| static AccessibleRole | SPLIT_PANEA specialized panel that presents two other panels at the same time. | 
| static AccessibleRole | STATUS_BARA STATUS_BAR is an simple component that can contain
 multiple labels of status information to the user. | 
| static AccessibleRole | SWING_COMPONENTA Swing component, but nothing else is known about it. | 
| static AccessibleRole | TABLEAn object used to present information in terms of rows and columns. | 
| static AccessibleRole | TEXTAn object that presents text to the user. | 
| static AccessibleRole | TOGGLE_BUTTONA specialized push button that can be checked or unchecked, but
 does not provide a separate indicator for the current state. | 
| static AccessibleRole | TOOL_BARA bar or palette usually composed of push buttons or toggle buttons. | 
| static AccessibleRole | TOOL_TIPAn object that provides information about another object. | 
| static AccessibleRole | TREEAn object used to present hierarchical information to the user. | 
| static AccessibleRole | UNKNOWNThe object contains some Accessible information, but its role is
 not known. | 
| static AccessibleRole | VIEWPORTAn object usually used in a scroll pane. | 
| static AccessibleRole | WINDOWA top level window with no title or border. | 
key| Modifier | Constructor and Description | 
|---|---|
| protected  | AccessibleRole(String key)Creates a new AccessibleRole using the given locale independent key. | 
toDisplayString, toDisplayString, toDisplayString, toStringpublic static final AccessibleRole ALERT
public static final AccessibleRole COLUMN_HEADER
public static final AccessibleRole CANVAS
FRAME, 
GLASS_PANE, 
LAYERED_PANEpublic static final AccessibleRole COMBO_BOX
public static final AccessibleRole DESKTOP_ICON
DESKTOP_PANE, 
INTERNAL_FRAMEpublic static final AccessibleRole HTML_CONTAINER
Accessibles that
 together represents HTML content.  The child
 Accessibles would include objects implementing
 AccessibleText, AccessibleHypertext,
 AccessibleIcon, and other interfaces.HYPERLINK, 
AccessibleText, 
AccessibleHypertext, 
AccessibleHyperlink, 
AccessibleIconpublic static final AccessibleRole INTERNAL_FRAME
DESKTOP_ICON, 
DESKTOP_PANE, 
FRAMEpublic static final AccessibleRole DESKTOP_PANE
DESKTOP_ICON, 
INTERNAL_FRAMEpublic static final AccessibleRole OPTION_PANE
DIALOGpublic static final AccessibleRole WINDOW
public static final AccessibleRole FRAME
public static final AccessibleRole DIALOG
public static final AccessibleRole COLOR_CHOOSER
public static final AccessibleRole DIRECTORY_PANE
FILE_CHOOSERpublic static final AccessibleRole FILE_CHOOSER
DIRECTORY_PANEpublic static final AccessibleRole FILLER
public static final AccessibleRole HYPERLINK
public static final AccessibleRole ICON
public static final AccessibleRole LABEL
public static final AccessibleRole ROOT_PANE
GLASS_PANE, 
LAYERED_PANEpublic static final AccessibleRole GLASS_PANE
public static final AccessibleRole LAYERED_PANE
GLASS_PANE, 
ROOT_PANEpublic static final AccessibleRole LIST
SCROLL_PANE, 
LIST_ITEMpublic static final AccessibleRole LIST_ITEM
SCROLL_PANE, 
LISTpublic static final AccessibleRole MENU_BAR
MENU, 
POPUP_MENU, 
LAYERED_PANEpublic static final AccessibleRole POPUP_MENU
public static final AccessibleRole MENU
MENU_BAR, 
MENU_ITEM, 
SEPARATOR, 
RADIO_BUTTON, 
CHECK_BOX, 
POPUP_MENUpublic static final AccessibleRole MENU_ITEM
MENU_BAR, 
SEPARATOR, 
POPUP_MENUpublic static final AccessibleRole SEPARATOR
public static final AccessibleRole PAGE_TAB_LIST
PAGE_TABpublic static final AccessibleRole PAGE_TAB
PAGE_TAB_LISTpublic static final AccessibleRole PANEL
public static final AccessibleRole PROGRESS_BAR
public static final AccessibleRole PASSWORD_TEXT
public static final AccessibleRole PUSH_BUTTON
CHECK_BOX, 
TOGGLE_BUTTON, 
RADIO_BUTTONpublic static final AccessibleRole TOGGLE_BUTTON
PUSH_BUTTON, 
CHECK_BOX, 
RADIO_BUTTONpublic static final AccessibleRole CHECK_BOX
PUSH_BUTTON, 
TOGGLE_BUTTON, 
RADIO_BUTTONpublic static final AccessibleRole RADIO_BUTTON
PUSH_BUTTON, 
TOGGLE_BUTTON, 
CHECK_BOXpublic static final AccessibleRole ROW_HEADER
public static final AccessibleRole SCROLL_PANE
SCROLL_BAR, 
VIEWPORTpublic static final AccessibleRole SCROLL_BAR
SCROLL_PANEpublic static final AccessibleRole VIEWPORT
SCROLL_PANEpublic static final AccessibleRole SLIDER
public static final AccessibleRole SPLIT_PANE
public static final AccessibleRole TABLE
public static final AccessibleRole TEXT
LABELpublic static final AccessibleRole TREE
public static final AccessibleRole TOOL_BAR
public static final AccessibleRole TOOL_TIP
public static final AccessibleRole AWT_COMPONENT
SWING_COMPONENT, 
UNKNOWNpublic static final AccessibleRole SWING_COMPONENT
AWT_COMPONENT, 
UNKNOWNpublic static final AccessibleRole UNKNOWN
AWT_COMPONENT, 
SWING_COMPONENTpublic static final AccessibleRole STATUS_BAR
public static final AccessibleRole DATE_EDITOR
public static final AccessibleRole SPIN_BOX
public static final AccessibleRole FONT_CHOOSER
public static final AccessibleRole GROUP_BOX
public static final AccessibleRole HEADER
public static final AccessibleRole FOOTER
public static final AccessibleRole PARAGRAPH
public static final AccessibleRole RULER
public static final AccessibleRole EDITBAR
public static final AccessibleRole PROGRESS_MONITOR
protected AccessibleRole(String key)
The key String should be a locale independent key for the role. 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 role.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, 2014, Oracle and/or its affiliates.  All rights reserved.