| Package | mx.accessibility |
| Class | public class TreeAccImpl |
| Inheritance | TreeAccImpl AccImpl AccessibilityImplementation |
The TreeAccImpl class supports system roles, object-based events, and states.
A Tree reports the role ROLE_SYSTEM_OUTLINE (0x23) to a screen
reader. Items of a Tree report the role ROLE_SYSTEM_OUTLINEITEM (0x24).
A Tree reports the following states to a screen reader:
STATE_SYSTEM_NORMAL (0x00000000)STATE_SYSTEM_UNAVAILABLE (0x00000001)STATE_SYSTEM_FOCUSED (0x00000004)STATE_SYSTEM_FOCUSABLE (0x00100000)Additionally, items of a Tree report the following states:
STATE_SYSTEM_SELECTED (0x00000002)STATE_SYSTEM_FOCUSED (0x00000004)STATE_SYSTEM_INVISIBLE (0x00008000)STATE_SYSTEM_OFFSCREEN (0x00010000)STATE_SYSTEM_SELECTABLE (0x00200000)STATE_SYSTEM_COLLAPSED (0x00000400)STATE_SYSTEM_EXPANDED (0x00000200)A Tree dispatches the following events to a screen reader:
EVENT_OBJECT_FOCUS (0x8005)EVENT_OBJECT_SELECTION (0x8006)EVENT_OBJECT_STATECHANGE (0x800A)EVENT_OBJECT_NAMECHANGE (0x800C)See also
| Property | Defined by | ||
|---|---|---|---|
| eventsToHandle : Array [read-only]
All AccImpl subclasses must override this function by returning an
array of strings of the events for which the class should listen from its master component.
| TreeAccImpl | ||
![]() | master : UIComponent
A reference to the UIComponent instance that this AccImpl instance
is making accessible.
| AccImpl | |
![]() | role : uint
Accessibility Role of the component being made accessible.
| AccImpl | |
| Method | Defined by | ||
|---|---|---|---|
|
TreeAccImpl(master:UIComponent)
Creates a new TreeAccImpl instance for the specified Tree component.
| TreeAccImpl | ||
|
accDoDefaultAction(childID:uint):void
IAccessible method for performing the default action associated with a treeItem, which is Expand or Collapse depending on the item state.
| TreeAccImpl | ||
|
accLocation(childID:uint):*
IAccessible method for returning the bounding box of a treeItem.
| TreeAccImpl | ||
![]() |
accSelect(selFlag:uint, childID:uint):void
IAccessible method for altering the selection in the component that this AccessibilityImplementation represents.
| AccessibilityImplementation | |
|
enableAccessibility():void
[static]
Method call for enabling accessibility for a component.
| TreeAccImpl | ||
|
get_accDefaultAction(childID:uint):String
IAccessible method for returning the default action.
| TreeAccImpl | ||
|
get_accFocus():uint
IAccessible method for returning the childFocus of the ListBase.
| TreeAccImpl | ||
![]() |
get_accName(childID:uint):String
IAccessible method for returning the name for the component that this AccessibilityImplementation represents or for one of its child elements.
| AccImpl | |
|
get_accRole(childID:uint):uint
IAccessible method for returning system role for the component.
| TreeAccImpl | ||
![]() |
get_accSelection():Array
IAccessible method for returning an array containing the IDs of all child elements that are selected.
| AccessibilityImplementation | |
|
get_accState(childID:uint):uint
IAccessible method for returning the state of the TreeItem.
| TreeAccImpl | ||
|
get_accValue(childID:uint):String
IAccessible method for returning the value of the TreeItem/Tree
which is spoken out by the screen reader.
| TreeAccImpl | ||
|
getChildIDArray():Array
Method to return an array of childIDs.
| TreeAccImpl | ||
| Method | Defined by | ||
|---|---|---|---|
|
eventHandler(event:Event):void
Override the generic event handler.
| TreeAccImpl | ||
|
getName(childID:uint):String
Method for returning the name of the TreeItem/Tree
which is spoken out by the screen reader.
| TreeAccImpl | ||
![]() |
getState(childID:uint):uint
Returns the state of the accessible component.
| AccImpl | |
| eventsToHandle | property |
eventsToHandle:Array [read-only]All AccImpl subclasses must override this function by returning an array of strings of the events for which the class should listen from its master component.
Implementation protected function get eventsToHandle():Array
| TreeAccImpl | () | constructor |
public function TreeAccImpl(master:UIComponent)Creates a new TreeAccImpl instance for the specified Tree component.
Direct calls to the AccImpl subclass constructors are unneccessary.
When a Flex project is compiled with Generate accessible SWF file set to true,
the compiler instantiates the accessibility implementations for the components used in the
project that have them by calling the the static enableAccessibility() method.
master:UIComponent — The UIComponent instance that this TreeAccImpl instance is making accessible.
|
See also
| accDoDefaultAction | () | method |
public override function accDoDefaultAction(childID:uint):voidIAccessible method for performing the default action associated with a treeItem, which is Expand or Collapse depending on the item state.
ParameterschildID:uint — An unsigned integer corresponding to one of the component's child elements as defined by getChildIDArray().
|
See also
| accLocation | () | method |
public override function accLocation(childID:uint):*IAccessible method for returning the bounding box of a treeItem.
ParameterschildID:uint — An unsigned integer corresponding to one of the component's child elements as defined by getChildIDArray().
|
* — Location Object
|
See also
| enableAccessibility | () | method |
public static function enableAccessibility():voidMethod call for enabling accessibility for a component. This method is required for the compiler to activate the accessibility classes for a component.
When a Flex project is compiled with the Generate accessible SWF file set to true, the Flex compiler
automatically enables accessibility implementations for the components used in the project that have them.
Accessible component classes should include the [AccessibilityClass]
meta tag to specify the appropriate AccImpl subclass or accessibility implementation and let the compiler know to call
enableAccessibility().
See also
[AccessibilityClass] meta tag specifies the appropriate AccImpl
subclass or accessibility implementation for the mx.controls.Tree component.
[AccessibilityClass(implementation="mx.accessibility.TreeAccImpl")]
| eventHandler | () | method |
protected override function eventHandler(event:Event):voidOverride the generic event handler. Each AccImpl subclass must implement this method to listen for events from its master component.
Parametersevent:Event — The event object.
|
| get_accDefaultAction | () | method |
public override function get_accDefaultAction(childID:uint):String
IAccessible method for returning the default action. For child treeItems, the default action is Expand or Collapse depending on the item state, but for the Tree component itself, null is returned.
childID:uint — An unsigned integer corresponding to one of the component's child elements as defined by getChildIDArray().
|
String — DefaultAction String
|
See also
| get_accFocus | () | method |
public override function get_accFocus():uintIAccessible method for returning the childFocus of the ListBase.
Returnsuint — focused childID.
|
See also
| get_accRole | () | method |
public override function get_accRole(childID:uint):uintIAccessible method for returning system role for the component. System roles are predefined for all the components in MSAA.
A Tree component, ( childID == 0 ), reports the role ROLE_SYSTEM_OUTLINE (0x23).
Items of a ListBase component ( childID >= 1 ) report the role ROLE_SYSTEM_OUTLINEITEM (0x24).
childID:uint — An unsigned integer corresponding to one of the component's child elements as defined by getChildIDArray().
|
uint — Role associated with the component.
|
See also
| get_accState | () | method |
public override function get_accState(childID:uint):uintIAccessible method for returning the state of the TreeItem. States are predefined for all the components in MSAA. Values are assigned to each state. Depending upon the treeItem being Selected, Selectable, Invisible, Offscreen, Expanded or Collapsed a value is returned.
ParameterschildID:uint — An unsigned integer corresponding to one of the component's child elements as defined by
getChildIDArray().
|
uint — State depending upon the treeItem being Selected, Selectable,
Invisible, Offscreen, Expanded or Collapsed
|
See also
| get_accValue | () | method |
public override function get_accValue(childID:uint):String
IAccessible method for returning the value of the TreeItem/Tree
which is spoken out by the screen reader.
The Tree should return the name of the currently selected item
with an "m of n" string as its value.
childID:uint — uint
|
String — Value String
|
See also
| getChildIDArray | () | method |
public override function getChildIDArray():ArrayMethod to return an array of childIDs.
ReturnsArray — An array of unsigned integer IDs, one for each treeItem defined in the Tree component's dataProvider.
|
| getName | () | method |
protected override function getName(childID:uint):String
Method for returning the name of the TreeItem/Tree
which is spoken out by the screen reader.
The TreeItem should return the label as the name
with an "m of n" string and Tree should return the name
specified by the AccessibilityProperties.name.
childID:uint — uint
|
String — Name String
|