Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

:: drafts :: com :: sun :: star :: accessibility ::

constants group AccessibleRole
Description
Collection of roles.

This collection of constans defines the set of possible roles of classes implementing the XAccessible interface according to the java class javax.accessibility.AccessibleRole. The role of an object describes its generic function like 'button', 'menu', or 'text'. You can obtain an object's role by calling the getAccessibleRole method of the XAccessibleContext interface.

We are using constants instead of a more typesafe enum. The reason for this is that IDL enums may not be extended. Therefore, in order to include future extensions to the set of roles we have to use constants here.

For some roles there exist two labels with the same value. Please use the one with the underscrores. The other ones are somewhat deprecated and will be removed in the future.

See also
XAccessibleContext

Constants
UNKNOWN Unknown role.
ALERT Object is used to alert the user about something.
AWTCOMPONENT @Deprecated Don't use this role anymore. It will be removed in the near future.
COLUMN_HEADER The header for a column of data.
COLUMNHEADER
CANVAS Object that can be drawn into and is used to trap events.
CHECK_BOX Check box role.
CHECKBOX
CHECK_MENU_ITEM This role is used for check buttons that are menu items.
COLOR_CHOOSER A specialized dialog that lets the user choose a color.
COLORCHOOSER
COMBO_BOX Combo box role.
COMBOBOX
DATEEDITOR Date editor role.
DATE_EDITOR
DESKTOP_ICON An iconified internal frame in a DESKTOPPANE.
DESKTOPICON
DESKTOP_PANE Desktop pane role.
DESKTOPPANE
DIRECTORY_PANE Directory pane role.
DIRECTORYPANE
DIALOG Dialog box role.
DOCUMENT View of a document.
EMBEDDED_OBJECT Embeded (OLE) object.
END_NOTE Text that is used as an endnote (footnote at the end of a chapter or section.
ENDNOTE
FILE_CHOOSER File chooser role.
FILECHOOSER
FILLER Filler role.
FONT_CHOOSER Font chooser role.
FONTCHOOSER
FOOTER Footer of a document page.
FOOTNOTE Text that is used as a footnote.
FRAME Frame role.
GLASS_PANE Glass pane role.
GLASSPANE
GRAPHIC Graphical object.
GROUP_BOX Group box role.
GROUPBOX
HEADER Header of a document page.
HEADING Chapter or section heading.
HYPER_LINK A hypertext anchor.
HYPERLINK
ICON A small fixed size picture, typically used to decorate components.
INTERNAL_FRAME Internal frame role.
INTERNALFRAME
LABEL An object used to present an icon or short string in an interface.
LAYERED_PANE layered pane role.
LAYEREDPANE
LIST List role.
LIST_ITEM List item role.
LISTITEM
MENU Menu role.
MENU_BAR Menu bar role.
MENUBAR
MENU_ITEM Menu item role.
MENUITEM
OPTION_PANE A specialized pane whose primary use is inside a DIALOG .
OPTIONPANE
PAGE_TAB Page tab role.
PAGETAB
PAGE_TAB_LIST Page tab list role.
PAGETABLIST
PANEL A generic container that is often used to group objects.
PARAGRAPH Paragraph of text.
PASSWORD_TEXT Password text role.
PASSWORDTEXT
POPUP_MENU Popup menu role.
POPUPMENU
PUSH_BUTTON Push button role.
PUSHBUTTON
PROGRESS_BAR An object used to indicate how much of a task has been completed.
PROGRESSBAR
RADIO_BUTTON Radio button role.
RADIOBUTTON
RADIO_MENU_ITEM This role is used for radio buttons that are menu items.
ROW_HEADER The header for a row of data.
ROWHEADER
ROOT_PANE Root pane role.
ROOTPANE
SCROLLBAR Scroll bar role.
SCROLL_BAR
SCROLLPANE Scroll pane role.
SCROLL_PANE
SHAPE Object with graphical representation used to represent content on draw pages.
SEPARATOR Separator role.
SLIDER Slider role.
SPIN_BOX Spin box role.
SPINBOX
SPLIT_PANE Split pane role.
SPLITPANE
STATUS_BAR Status bar role.
STATUSBAR
SWINGCOMPONENT @Deprecated Don't use this role anymore. It will be removed in the near future.
TABLE Table component.
TABLE_CELL Single cell in a table.
TEXT Text role.
TEXT_FRAME Collection of objects that constitute a logical text entity.
TOGGLE_BUTTON Toggle button role.
TOGGLEBUTTON
TOOL_BAR Tool bar role.
TOOLBAR
TOOL_TIP Tool tip role.
TOOLTIP
TREE Tree role.
VIEW_PORT Viewport role.
VIEWPORT
WINDOW A top level window with no title or border.
Constants' Details
UNKNOWN
const short UNKNOWN = 0;
Description
Unknown role.

The object contains some Accessible information, but its role is not known.

ALERT
const short ALERT = 1;
Description
Object is used to alert the user about something.
AWTCOMPONENT
const short AWTCOMPONENT = 2;
Description
@Deprecated Don't use this role anymore. It will be removed in the near future.
COLUMN_HEADER
const short COLUMN_HEADER = 3;
Description
The header for a column of data.
COLUMNHEADER
const short COLUMNHEADER = 3;
CANVAS
const short CANVAS = 4;
Description
Object that can be drawn into and is used to trap events.

See alse FRAME , GLASSPANE , and LAYEREDPANE .

CHECK_BOX
const short CHECK_BOX = 5;
Description
Check box role.

A choice that can be checked or unchecked and provides a separate indicator for the current state.

See also PUSHBUTTON , TOGGLEBUTTON , and RADIOBUTTON .

CHECKBOX
const short CHECKBOX = 5;
CHECK_MENU_ITEM
const short CHECK_MENU_ITEM = 112;
Description
This role is used for check buttons that are menu items.
See also
CHECKBOX,
MENUITEM
COLOR_CHOOSER
const short COLOR_CHOOSER = 6;
Description
A specialized dialog that lets the user choose a color.
COLORCHOOSER
const short COLORCHOOSER = 6;
COMBO_BOX
const short COMBO_BOX = 7;
Description
Combo box role.

A list of choices the user can select from. Also optionally allows the user to enter a choice of their own.

COMBOBOX
const short COMBOBOX = 7;
DATEEDITOR
const short DATEEDITOR = 8;
Description
Date editor role.

A DATEEDITOR is a component that allows users to edit java.util.Date and java.util.Time objects.

DATE_EDITOR
const short DATE_EDITOR = 8;
DESKTOP_ICON
const short DESKTOP_ICON = 9;
Description
An iconified internal frame in a DESKTOPPANE.

See also DESKTOPPANE and INTERNALFRAME .

DESKTOPICON
const short DESKTOPICON = 9;
DESKTOP_PANE
const short DESKTOP_PANE = 10;
Description
Desktop pane role.

A pane that supports internal frames and iconified versions of those internal frames.

DESKTOPPANE
const short DESKTOPPANE = 10;
DIRECTORY_PANE
const short DIRECTORY_PANE = 11;
Description
Directory pane role.

A pane that allows the user to navigate through and select the contents of a directory. May be used by a file chooser.

See also FILECHOOSER .

DIRECTORYPANE
const short DIRECTORYPANE = 11;
DIALOG
const short DIALOG = 12;
Description
Dialog box role.

A 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 FRAME and WINDOW .

DOCUMENT
const short DOCUMENT = 100;
Description
View of a document.

The view of an actual document. Its content depends on the documen type.

EMBEDDED_OBJECT
const short EMBEDDED_OBJECT = 108;
Description
Embeded (OLE) object.
END_NOTE
const short END_NOTE = 109;
Description
Text that is used as an endnote (footnote at the end of a chapter or section.
ENDNOTE
const short ENDNOTE = 109;
FILE_CHOOSER
const short FILE_CHOOSER = 13;
Description
File chooser role.

A 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 DIRECTORYPANE .

FILECHOOSER
const short FILECHOOSER = 13;
FILLER
const short FILLER = 14;
Description
Filler role.

An 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.

FONT_CHOOSER
const short FONT_CHOOSER = 15;
Description
Font chooser role.

A FONTCHOOSER is a component that lets the user pick various attributes for fonts.

FONTCHOOSER
const short FONTCHOOSER = 15;
FOOTER
const short FOOTER = 102;
Description
Footer of a document page.
See also
HEADER
FOOTNOTE
const short FOOTNOTE = 110;
Description
Text that is used as a footnote.
FRAME
const short FRAME = 16;
Description
Frame role.

A top level window with a title bar, border, menu bar, etc. It is often used as the primary window for an application.

See also DIALOG , CANVAS , and WINDOW .

GLASS_PANE
const short GLASS_PANE = 17;
Description
Glass pane role.

A pane that is guaranteed to be painted on top of all panes beneath it.

See also ROOTPANE and CANVAS .

GLASSPANE
const short GLASSPANE = 17;
GRAPHIC
const short GRAPHIC = 107;
Description
Graphical object.
GROUP_BOX
const short GROUP_BOX = 18;
Description
Group box role.

A GROUPBOX is a simple container that contains a border around it and contains components inside it.

GROUPBOX
const short GROUPBOX = 18;
HEADER
const short HEADER = 101;
Description
Header of a document page.
See also
FOOTER
HEADING
const short HEADING = 104;
Description
Chapter or section heading.
HYPER_LINK
const short HYPER_LINK = 19;
Description
A hypertext anchor.
HYPERLINK
const short HYPERLINK = 19;
ICON
const short ICON = 20;
Description
A small fixed size picture, typically used to decorate components.
INTERNAL_FRAME
const short INTERNAL_FRAME = 21;
Description
Internal frame role.

A 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 DESKTOPICON , DESKTOPPANE , and FRAME .

INTERNALFRAME
const short INTERNALFRAME = 21;
LABEL
const short LABEL = 22;
Description
An object used to present an icon or short string in an interface.
LAYERED_PANE
const short LAYERED_PANE = 23;
Description
layered pane role.

A 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 GLASSPANE and ROOTPANE .

LAYEREDPANE
const short LAYEREDPANE = 23;
LIST
const short LIST = 24;
Description
List role.

An 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 SCROLLPANE and LISTITEM .

LIST_ITEM
const short LIST_ITEM = 25;
Description
List item role.

An object that presents an element in a list. A list is usually contained within a scroll pane.

See also SCROLLPANE and LIST .

LISTITEM
const short LISTITEM = 25;
MENU
const short MENU = 26;
Description
Menu role.

An 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 MENUBAR , MENUITEM , SEPARATOR , RADIOBUTTON , CHECKBOX , and POPUPMENU .

MENU_BAR
const short MENU_BAR = 27;
Description
Menu bar role.

An 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 MENU , POPUPMENU , and LAYEREDPANE .

MENUBAR
const short MENUBAR = 27;
MENU_ITEM
const short MENU_ITEM = 28;
Description
Menu item role.

An 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 MENUBAR , SEPARATOR , and POPUPMENU .

MENUITEM
const short MENUITEM = 28;
OPTION_PANE
const short OPTION_PANE = 29;
Description
A specialized pane whose primary use is inside a DIALOG .

See also DIALOG .

OPTIONPANE
const short OPTIONPANE = 29;
PAGE_TAB
const short PAGE_TAB = 30;
Description
Page tab role.

An 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 PAGETABLIST .

PAGETAB
const short PAGETAB = 30;
PAGE_TAB_LIST
const short PAGE_TAB_LIST = 31;
Description
Page tab list role.

An 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 PAGETAB .

PAGETABLIST
const short PAGETABLIST = 31;
PANEL
const short PANEL = 32;
Description
A generic container that is often used to group objects.
PARAGRAPH
const short PARAGRAPH = 103;
Description
Paragraph of text.
PASSWORD_TEXT
const short PASSWORD_TEXT = 33;
Description
Password text role.

A text object used for passwords, or other places where the text contents is not shown visibly to the user.

PASSWORDTEXT
const short PASSWORDTEXT = 33;
POPUP_MENU
const short POPUP_MENU = 34;
Description
Popup menu role.

A 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 MENU and MENUITEM .

POPUPMENU
const short POPUPMENU = 34;
PUSH_BUTTON
const short PUSH_BUTTON = 35;
Description
Push button role.

An object the user can manipulate to tell the application to do something.

See also CHECKBOX , TOGGLEBUTTON , and RADIOBUTTON .

PUSHBUTTON
const short PUSHBUTTON = 35;
PROGRESS_BAR
const short PROGRESS_BAR = 36;
Description
An object used to indicate how much of a task has been completed.
PROGRESSBAR
const short PROGRESSBAR = 36;
RADIO_BUTTON
const short RADIO_BUTTON = 37;
Description
Radio button role.

A specialized check box that will cause other radio buttons in the same group to become unchecked when this one is checked.

See also PUSHBUTTON , TOGGLEBUTTON , and CHECKBOX .

RADIOBUTTON
const short RADIOBUTTON = 37;
RADIO_MENU_ITEM
const short RADIO_MENU_ITEM = 113;
Description
This role is used for radio buttons that are menu items.
See also
RADIOBUTTON,
MENUITEM
ROW_HEADER
const short ROW_HEADER = 38;
Description
The header for a row of data.
ROWHEADER
const short ROWHEADER = 38;
ROOT_PANE
const short ROOT_PANE = 39;
Description
Root pane role.

A specialized pane that has a glass pane and a layered pane as its children.

See also GLASSPANE and LAYEREDPANE .

ROOTPANE
const short ROOTPANE = 39;
SCROLLBAR
const short SCROLLBAR = 40;
Description
Scroll bar role.

An object usually used to allow a user to incrementally view a large amount of data. Usually used only by a scroll pane.

Ssee also SCROLLPANE .

SCROLL_BAR
const short SCROLL_BAR = 40;
SCROLLPANE
const short SCROLLPANE = 41;
Description
Scroll pane role.

An object that allows a user to incrementally view a large amount of information. Its children can include scroll bars and a viewport.

See also SCROLLBAR and VIEWPORT .

SCROLL_PANE
const short SCROLL_PANE = 41;
SHAPE
const short SHAPE = 111;
Description
Object with graphical representation used to represent content on draw pages.
See also
drafts::com::sun::star::drawing::AccessibleShape
SEPARATOR
const short SEPARATOR = 42;
Description
Separator role.

An 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 MENU and MENUITEM .

SLIDER
const short SLIDER = 43;
Description
Slider role.

An 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.

SPIN_BOX
const short SPIN_BOX = 44;
Description
Spin box role.

A SPINBOX is a simple spinner component and its main use is for simple numbers.

SPINBOX
const short SPINBOX = 44;
SPLIT_PANE
const short SPLIT_PANE = 45;
Description
Split pane role.

A 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.

SPLITPANE
const short SPLITPANE = 45;
STATUS_BAR
const short STATUS_BAR = 46;
Description
Status bar role.

A STATUSBAR is an simple component that can contain multiple labels of status information to the user.

STATUSBAR
const short STATUSBAR = 46;
SWINGCOMPONENT
const short SWINGCOMPONENT = 47;
Description
@Deprecated Don't use this role anymore. It will be removed in the near future.
TABLE
const short TABLE = 48;
Description
Table component.

An object used to present information in terms of rows and columns. An example might include a spreadsheet application.

TABLE_CELL
const short TABLE_CELL = 105;
Description
Single cell in a table.
TEXT
const short TEXT = 49;
Description
Text role.

An object that presents text to the user. The text is usually editable by the user as opposed to a label.

See also LABEL .

TEXT_FRAME
const short TEXT_FRAME = 106;
Description
Collection of objects that constitute a logical text entity.
TOGGLE_BUTTON
const short TOGGLE_BUTTON = 50;
Description
Toggle button role.

A specialized push button that can be checked or unchecked, but does not provide a separate indicator for the current state.

See also PUSHBUTTON , CHECKBOX and RADIOBUTTON .

TOGGLEBUTTON
const short TOGGLEBUTTON = 50;
TOOL_BAR
const short TOOL_BAR = 51;
Description
Tool bar role.

A 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.

TOOLBAR
const short TOOLBAR = 51;
TOOL_TIP
const short TOOL_TIP = 52;
Description
Tool tip role.

An object that provides information about another object. The accessibleDescription property 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.

TOOLTIP
const short TOOLTIP = 52;
TREE
const short TREE = 53;
Description
Tree role.

An 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.

VIEW_PORT
const short VIEW_PORT = 54;
Description
Viewport role.

An 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 SCROLLPANE .

VIEWPORT
const short VIEWPORT = 54;
WINDOW
const short WINDOW = 55;
Description
A top level window with no title or border.

See also FRAME and DIALOG .

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.