Packagemx.accessibility
Classpublic class LinkButtonAccImpl
InheritanceLinkButtonAccImpl Inheritance ButtonAccImpl Inheritance AccImpl Inheritance AccessibilityImplementation

Review Needed

The LinkButtonAccImpl class, also called the LinkButton Accessibility Implementation class, enables communication between a LinkButton component and a screen reader. Screen readers are used to translate screen content into synthesized speech or braille for visually impaired users.

This class inherits from the ButtonAccImpl.

The LinkButtonAccImpl class supports system roles, object-based events, and states.

A LinkButton reports the role ROLE_SYSTEM_LINK (0x1E) to a screen reader.

A Button reports the following states to a screen reader:

A Button dispatches the following events to a screen reader:

The user of a screen reader can activate a linkButton component by using the spacebar or the Enter key.

See also

LinkButton
mx.accessibility.AccImpl


Public Properties
 PropertyDefined by
 Inheritederrno : uint
Errors are indicated out-of-band, rather than in return values.
AccessibilityImplementation
 Inheritedstub : Boolean
If a component is released without an ActionScript accessibility implementation, it is strongly suggested that a component accessibility stub be included.
AccessibilityImplementation
Protected Properties
 PropertyDefined by
 InheritedeventsToHandle : Array
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.
ButtonAccImpl
 Inheritedmaster : UIComponent
A reference to the UIComponent instance that this AccImpl instance is making accessible.
AccImpl
 Inheritedrole : uint
Accessibility Role of the component being made accessible.
AccImpl
Public Methods
 MethodDefined by
  
Creates a new LinkButtonAccImpl instance for the specified LinkButton component.
LinkButtonAccImpl
 Inherited
accDoDefaultAction(childID:uint):void
IAccessible method for performing the default action associated with Button, which is Press.
ButtonAccImpl
 Inherited
accLocation(childID:uint):*
IAccessible method for returning a DisplayObject or Rectangle specifying the bounding box of a child element in the AccessibilityImplementation.
AccessibilityImplementation
 Inherited
accSelect(selFlag:uint, childID:uint):void
IAccessible method for altering the selection in the component that this AccessibilityImplementation represents.
AccessibilityImplementation
  
[static] Method call for enabling accessibility for a component.
LinkButtonAccImpl
  
get_accDefaultAction(childID:uint):String
IAccessible method for returning the default action of the LinkButton, which is Jump.
LinkButtonAccImpl
 Inherited
get_accFocus():uint
IAccessible method for returning the unsigned integer ID of the child element, if any, that has child focus within the component.
AccessibilityImplementation
 Inherited
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
 Inherited
get_accRole(childID:uint):uint
IAccessible method for returning the system role for the component that this AccessibilityImplementation represents or for one of its child elements.
AccImpl
 Inherited
IAccessible method for returning an array containing the IDs of all child elements that are selected.
AccessibilityImplementation
 Inherited
get_accState(childID:uint):uint
IAccessible method for returning the state of the Button.
ButtonAccImpl
 Inherited
get_accValue(childID:uint):String
IAccessible method for returning the runtime value of the component that this AccessibilityImplementation represents or of one of its child elements.
AccessibilityImplementation
 Inherited
Returns an array containing the unsigned integer IDs of all child elements in the AccessibilityImplementation.
AccessibilityImplementation
Protected Methods
 MethodDefined by
 Inherited
eventHandler(event:Event):void
Override the generic event handler.
ButtonAccImpl
 Inherited
getName(childID:uint):String
Method for returning the name of the Button which is spoken out by the screen reader.
ButtonAccImpl
 Inherited
getState(childID:uint):uint
Returns the state of the accessible component.
AccImpl
Constructor detail
LinkButtonAccImpl()constructor
public function LinkButtonAccImpl(master:UIComponent)

Creates a new LinkButtonAccImpl instance for the specified LinkButton 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.

Parameters
master:UIComponent — The UIComponent instance that this LinkButtonAccImpl instance is making accessible.

See also

Method detail
enableAccessibility()method
public static function enableAccessibility():void

Method 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


Example
Following is an example showing how the [AccessibilityClass] meta tag specifies the appropriate AccImpl subclass or accessibility implementation for the mx.controls.LinkButton component.
[AccessibilityClass(implementation="mx.accessibility.LinkButtonAccImpl")]

get_accDefaultAction()method 
public override function get_accDefaultAction(childID:uint):String

IAccessible method for returning the default action of the LinkButton, which is Jump.

Parameters
childID:uint — An unsigned integer corresponding to one of the component's child elements as defined by getChildIDArray().

Returns
String — DefaultAction String

See also