WebAccessibility
Package: Libraries.Interface.Accessibility · Inherits from: Libraries.Language.Object, Libraries.Interface.Accessibility
Actions
ActiveDescendantChanged(Libraries.Interface.Item focus, Libraries.Interface.Item active)
This action indicates that the active part of the focused item changed, such as the row a combo box highlights as the arrow keys move. The item's element gets an aria-activedescendant pointing at the part's element, so a screen reader reads the part while the focus stays on the item. When the active part is undefined, the attribute is removed.
Parameters
focusLibraries.Interface.Item: The focused item.activeLibraries.Interface.Item: The item's new active part, or undefined.
Example
use Libraries.Interface.Accessibility.WebAccessibility
use Libraries.Interface.Controls.ComboBox
WebAccessibility accessibility
ComboBox sizes
sizes:Add("Small")
sizes:Open()
sizes:MoveHighlight(1)
accessibility:ActiveDescendantChanged(sizes, sizes:GetActiveDescendant())
ActiveDescendantUpdated(Libraries.Interface.Item focus, Libraries.Interface.Item active)
This action points the focused item's element at the element of its active part, adding the part's element if it is missing, or removes the pointer when the part is undefined. ActiveDescendantChanged calls it, so most users won't need to call it directly.
Parameters
focusLibraries.Interface.Item: The focused item.activeLibraries.Interface.Item: The item's active part, or undefined.
Example
use Libraries.Interface.Accessibility.WebAccessibility
use Libraries.Interface.Controls.ComboBox
WebAccessibility accessibility
ComboBox sizes
sizes:Add("Small")
sizes:Open()
sizes:MoveHighlight(1)
accessibility:ActiveDescendantUpdated(sizes, sizes:GetActiveDescendant())
AddHiddenButton(text name)
Parameters
nametext
AddHiddenHeader(text name, text title, boolean attachToRoot)
Parameters
nametexttitletextattachToRootboolean
AddHiddenHeader(text name, text title)
Parameters
nametexttitletext
AddHiddenLabel(text name, text words)
Parameters
nametextwordstext
AddHiddenLabel(text name, text words, boolean attachToRoot)
Parameters
nametextwordstextattachToRootboolean
AddHiddenSlider(text name, integer min, integer max, integer step)
Parameters
nametextminintegermaxintegerstepinteger
AddWebAccessibilityListener(Libraries.Interface.Events.WebAccessibilityListener listener)
Parameters
BoundsChanged(Libraries.Interface.Item item)
Parameters
ButtonActivated(Libraries.Interface.Controls.Button button)
Parameters
CalendarChanged(Libraries.Interface.Controls.Calendar calendar)
A calendar changed: its grid's days are filled in again, and the focus follows the current day.
Parameters
CalendarUpdated(Libraries.Interface.Controls.Calendar calendar)
A calendar changed: its grid's days are filled in again, and the focus follows the current day.
Parameters
ColorWellChanged(Libraries.Interface.Controls.ColorWell well)
A color well's color changed: its element's label gets the new color's words, and whether its picker is open.
Parameters
ColorWellUpdated(Libraries.Interface.Controls.ColorWell well)
A color well's color changed: its element's label gets the new color's words, and whether its picker is open.
Parameters
ComboBoxClosed(Libraries.Interface.Controls.ComboBox box)
A combo box's list closed: its element is marked collapsed, with no highlighted choice.
Parameters
ComboBoxCollapsed(Libraries.Interface.Controls.ComboBox box)
A combo box's list opened: its element is marked expanded, controls the list's element, and points at the highlighted choice.
Parameters
ComboBoxExpanded(Libraries.Interface.Controls.ComboBox box)
A combo box's list closed: its element is marked collapsed, with no highlighted choice.
Parameters
ComboBoxOpened(Libraries.Interface.Controls.ComboBox box)
A combo box's list opened: its element is marked expanded, controls the list's element, and points at the highlighted choice.
Parameters
ControlActivated(Libraries.Interface.Events.ControlActivationEvent event)
Parameters
DescriptionChanged(Libraries.Interface.Item item)
Parameters
FocusChanged(Libraries.Interface.Events.FocusEvent event)
Parameters
FocusHiddenElement(text name)
Parameters
nametext
ForceReleaseFocus()
IsScreenReaderListening()
Returns
boolean
MenuChanged(Libraries.Interface.Events.MenuChangeEvent event)
Parameters
ModifyHiddenLabel(text name, text words)
Parameters
nametextwordstext
ModifyHiddenSlider(text name, integer min, integer max, integer step)
Parameters
nametextminintegermaxintegerstepinteger
NameChanged(Libraries.Interface.Item item)
Parameters
NativeAdd(Libraries.Interface.Item item)
Parameters
Returns
boolean
NativeRemove(Libraries.Interface.Item item)
Parameters
Returns
boolean
Notify(Libraries.Interface.Item item, text value)
Parameters
itemLibraries.Interface.Itemvaluetext
Notify(Libraries.Interface.Item item, text value, integer notificationType)
Parameters
itemLibraries.Interface.ItemvaluetextnotificationTypeinteger
NotifyListeners(Libraries.Interface.Events.WebAccessibilityEvent event)
Parameters
PopupMenuClosed(Libraries.Interface.Controls.PopupMenu menu, Libraries.Interface.Item opener)
A popup menu closed: the control that opened it gets back the attributes it had before.
Parameters
PopupMenuClosedNative(Libraries.Interface.Controls.PopupMenu menu)
A popup menu opened: the control that opened it is marked as having a menu, open, that it controls.
Parameters
PopupMenuOpened(Libraries.Interface.Controls.PopupMenu menu, Libraries.Interface.Item opener)
A popup menu opened: the control that opened it is marked as having a menu, open, that it controls.
Parameters
PopupMenuOpenedNative(Libraries.Interface.Controls.PopupMenu menu, Libraries.Interface.Item opener)
A popup menu closed: the control that opened it gets back the attributes it had before.
Parameters
ProgressBarValueChanged(Libraries.Interface.Events.ProgressBarValueChangedEvent progress)
Parameters
Select(Libraries.Interface.Item item)
This action indicates that the active part of the focused item changed, such as the row a combo box highlights as the arrow keys move. The item's element gets an aria-activedescendant pointing at the part's element, so a screen reader reads the part while the focus stays on the item. When the active part is undefined, the attribute is removed.
Parameters
Returns
boolean
Example
use Libraries.Interface.Accessibility.WebAccessibility
use Libraries.Interface.Controls.ComboBox
WebAccessibility accessibility
ComboBox sizes
sizes:Add("Small")
sizes:Open()
sizes:MoveHighlight(1)
accessibility:ActiveDescendantChanged(sizes, sizes:GetActiveDescendant())
SetHiddenOnElement(text id, boolean hide)
Parameters
idtexthideboolean
SetHiddenSliderCurrentValue(text name, integer value)
Parameters
nametextvalueinteger
SetHiddenSliderValueText(text name, text value)
Parameters
nametextvaluetext
Shutdown()
SliderChanged(Libraries.Interface.Controls.Slider slider)
A slider's value changed: its element's aria values and value text are updated, so a screen reader says the new value.
Parameters
SliderValueChanged(Libraries.Interface.Events.SliderChangedEvent event)
A slider's value changed: its element's aria values and value text are updated, so a screen reader says the new value.
Parameters
SpreadsheetChanged(Libraries.Interface.Controls.Spreadsheet sheet)
A spreadsheet changed: its values, its size, what is on screen, or the selection. Its grid's cells are filled in again, and the focus follows the current cell.
Parameters
SpreadsheetUpdated(Libraries.Interface.Controls.Spreadsheet sheet)
A spreadsheet changed: its values, its size, what is on screen, or the selection. Its grid's cells are filled in again, and the focus follows the current cell.
Parameters
TabSelected(Libraries.Interface.Controls.Tab tab)
A tab was selected: the tabs of its pane are marked selected or not, and only the selected tab's panel is shown to screen readers.
Parameters
TabSelectedNative(Libraries.Interface.Controls.Tab tab)
A tab was selected: the tabs of its pane are marked selected or not, and only the selected tab's panel is shown to screen readers.
Parameters
TextChanged(Libraries.Interface.Events.TextChangeEvent event)
Parameters
TextFieldUpdatePassword(Libraries.Interface.Controls.TextField field)
Parameters
TextSelectionChanged(Libraries.Interface.Selections.TextFieldSelection selection)
Parameters
TextSelectionChanged(Libraries.Interface.Selections.TextBoxSelection selection)
Parameters
ToggleButtonToggled(Libraries.Interface.Controls.ToggleButton button)
Parameters
TooltipClosed(Libraries.Interface.Controls.Tooltip tooltip)
A control's tooltip opened: the control's element is described by the tooltip's element, so a screen reader reads the tooltip with it.
Parameters
TooltipHidden(Libraries.Interface.Controls.Tooltip tooltip)
A control's tooltip is about to close: the control's element is no longer described by the tooltip's element, and its own description comes back.
Parameters
TooltipOpened(Libraries.Interface.Controls.Tooltip tooltip)
A control's tooltip is about to close: the control's element is no longer described by the tooltip's element, and its own description comes back.
Parameters
TooltipShown(Libraries.Interface.Controls.Tooltip tooltip)
A control's tooltip opened: the control's element is described by the tooltip's element, so a screen reader reads the tooltip with it.
Parameters
TreeChanged(Libraries.Interface.Events.TreeChangeEvent event)
Parameters
TreeTableChanged(Libraries.Interface.Events.TreeTableChangeEvent event)
Parameters
WindowFocusChanged(Libraries.Interface.Events.WindowFocusEvent event)
Parameters