언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
It is a subclass of the Flash Player's AccessibilityImplementation class.
When an MX or Spark component is created,
its accessibilityImplementation
property
is set to an instance of a subclass of this class.
The Flash Player then uses this object to allow MSAA clients
such as screen readers to see and manipulate the component.
See the flash.accessibility.AccessibilityImplementation class
for additional information about accessibility implementation
classes and MSAA.
Children
The Flash Player does not support
a true hierarchy of accessible objects.
If a DisplayObject has an accessibilityImplementation
object,
then the accessibilityImplementation
objects
of its children are ignored.
However, the Player does allow a component's accessibility implementation class
to expose MSAA information for its internal parts.
(For example, a List exposes MSAA information about its items.)
The number of children (internal parts)
and the child IDs used to identify them
are determined by the getChildIDArray()
method.
In the Player's AccessibilityImplementation base class,
this method simply returns null
.
Flex's AccImpl class overrides it to return an empty array.
It also provides a protected utility method,
createChildIDArray()
which subclasses with internal parts
can use in their overrides.
Role
The MSAA Role of a component and its internal parts
is determined by the get_accRole()
method.
In the Player's AccessibilityImplementation base class,
this method throws a runtime error,
since subclasses are expected to override it.
Flex's AccImpl class has a protected role
property
which subclasses generally set in their constructor,
and it overrides get_accRole()
to return this property.
Name
The MSAA Name of a component and its internal parts
is determined by the get_accName()
method.
In the Player's AccessibilityImplementation base class,
this method simply returns null
.
Flex's AccImpl class overrides it to construct a name as follows,
starting with an empty string
and separating added portions with a single space:
- If a simple child (e.g., combo or list box item) is being requested, only the child's default name is returned. The rest of the steps below apply only to the component itself (childID 0).
- If the component is inside a Form:
- If the Form has a FormHeading and the component is inside
a FormItem, the heading text is added.
Developers wishing to avoid this should set the
accessibilityName
of the FormHeading to a space (" "). - If the field is required, the locale-dependent string "required field" is added.
- If the component is inside a FormItem,
the FormItem label text is added.
Developers wishing to avoid this should set the
accessibilityName
of the FormItem to a space (" ").
- If the Form has a FormHeading and the component is inside
a FormItem, the heading text is added.
Developers wishing to avoid this should set the
- The component's name is then determined thus:
- If the component's
accessibilityName
(i.e.,accessibilityProperties.name
) is a space, no component name is added. - Otherwise, if the component's name is specified (i.e., is not null and not empty) then it is added.
- Otherwise, a protected
getName()
method, defined by AccImpl and implemented by each subclass, is called to provide a default name. (For example, ButtonAccImpl implementsgetName()
to specify that a Button's default name is the label that it displays.) If not empty, the return value ofgetName()
is added. - Otherwise (if
getName()
returned empty), if the component'stoolTip
property is set, that String is added. - If the component's
errorString
property is set, that String is added.
- If the component's
Description
The MSAA Description is determined solely by a component's
accessibilityProperties
object and not by its
accessibilityImplementation
object.
Therefore there is no logic in AccessibilityImplementation or AccImpl
or any subclasses of AccImpl related to the description.
The normal way to set the description in Flex is via the
accessibilityDescription
property on UIComponent,
which simply sets accessibilityProperties.description
.
State
The MSAA State of a component and its internal parts
is determined by the get_accState()
method.
In the Player's AccessibilityImplementation base class,
this method throws a runtime error,
since subclasses are expected to override it.
Flex's AccImpl class does not override it,
but provides a protected utility method, getState()
,
for subclasses to use in their overrides.
The getState()
method determines the state
as a combination of
- STATE_SYSTEM_UNAVAILABLE (when enabled is false on this component or any ancestor)
- STATE_SYSTEM_FOCUSABLE
- STATE_SYSTEM_FOCUSED (when the component itself is focused, not set for any subparts the component may have)
Value
The MSAA Value of a component and its internal parts
is determined by the get_accValue()
method.
In the Player's AccessibilityImplementation base class,
this method simply returns null
.
Flex's AccImpl class does not override it,
but subclasses for components like TextInput do.
Location
The MSAA Location for a component's internal parts,
but not the component itself,
is determined by the get_accLocation()
method.
This method is never called with a childID of 0;
instead, the Flash Player determines the MSAA Location of a component
based on its bounding rectangle as determined by getBounds()
.
Flex's AccImpl class does not override this method,
but subclasses for components with internal parts do.
Default Action
The MSAA DefaultAction for a component and its internal parts
is determined by the get_accDefaultAction()
method.
In the Player's AccessibilityImplementation base class,
this method simply returns null
.
Flex's AccImpl class does not override it,
but subclasses with default actions do.
These subclasses also override AccessibilityImplementation's
accDoDefaultAction()
method
to perform the default action that they advertise.
Other
The MSAA events EVENT_OBJECT_SHOW and EVENT_OBJECT_HIDE are sent when the object is shown or hidden. The corresponding states for these are covered by the Flash Player which does not render any MSAA components that are hidden. When the component is shown the states mentioned for AccImpl are used.
속성 | 정의 주체 | ||
---|---|---|---|
eventsToHandle : Array [읽기 전용]
All subclasses must override this function by returning an array
of strings of the events to listen for. | AccImpl | ||
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 |
메서드 | 정의 주체 | ||
---|---|---|---|
AccImpl(master:UIComponent)
Constructor. | AccImpl | ||
AccessibilityImplementation이 나타내는 구성 요소 또는 그 자식 요소 중 하나와 연결된 기본 액션을 수행하는 IAccessible 메서드입니다. | AccessibilityImplementation | ||
AccessibilityImplementation에서 자식 요소의 테두리 상자를 지정하는 DisplayObject 또는 Rectangle을 반환하는 MSAA 메서드입니다. | AccessibilityImplementation | ||
AccessibilityImplementation이 나타내는 구성 요소에서 선택을 변경하는 IAccessible 메서드입니다. | AccessibilityImplementation | ||
AccessibilityImplementation이 나타내는 구성 요소 또는 그 자식 요소 중 하나의 기본 액션을 반환하는 MSAA 메서드입니다. | AccessibilityImplementation | ||
자식 포커스가 구성 요소 내에 있는 자식 요소의 부호 없는 정수 ID(있는 경우)를 반환하는 MSAA 메서드입니다. | AccessibilityImplementation | ||
AccessibilityImplementation이 나타내는 구성 요소 또는 그 자식 요소 중 하나의 이름을 반환하는 MSAA 메서드입니다. | AccessibilityImplementation | ||
AccessibilityImplementation이 나타내는 구성 요소 또는 그 자식 요소 중 하나의 시스템 역할을 반환하는 MSAA 메서드입니다. | AccessibilityImplementation | ||
선택된 모든 자식 요소의 ID가 포함된 배열을 반환하는 MSAA 메서드입니다. | AccessibilityImplementation | ||
AccessibilityImplementation이 나타내는 구성 요소 또는 그 자식 요소 중 하나의 현재 런타임 상태를 반환하는 IAccessible 메서드입니다. | AccessibilityImplementation | ||
AccessibilityImplementation이 나타내는 구성 요소 또는 그 자식 요소 중 하나의 런타임 값을 반환하는 MSAA 메서드입니다. | AccessibilityImplementation | ||
AccessibilityImplementation | |||
AccessibilityImplementation | |||
AccessibilityImplementation의 자식 요소 중 부호 없는 정수 ID를 포함하는 배열을 반환합니다. | AccessibilityImplementation | ||
[정적]
Method for supporting Form Accessibility. | AccImpl | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
[정적]
Returns true if an ancestor of the component has enabled set to false. | AccImpl | ||
x, y, 폭, 높이로 지정된 테두리 상자가 있는 텍스트 객체를 AccessibilityImplementation이 나타내는 구성 요소의 레이블로 간주해야 하는지를 나타내기 위해 true 또는 false를 반환합니다. | AccessibilityImplementation | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
메서드 | 정의 주체 | ||
---|---|---|---|
Generic event handler. | AccImpl | ||
Returns the name of the accessible component. | AccImpl | ||
Utility method to determine state of the accessible component. | AccImpl |
eventsToHandle | 속성 |
master | 속성 |
protected var master:UIComponent
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
A reference to the UIComponent instance that this AccImpl instance is making accessible.
role | 속성 |
protected var role:uint
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Accessibility role of the component being made accessible.
AccImpl | () | 생성자 |
public function AccImpl(master:UIComponent)
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor.
매개 변수master:UIComponent — The UIComponent instance that this AccImpl instance
is making accessible.
|
eventHandler | () | 메서드 |
getFormName | () | 메서드 |
public static function getFormName(component:UIComponent):String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Method for supporting Form Accessibility. Called from get_accName() in this AccImpl class. Also called from the UIComponentAccProps constructor.
매개 변수
component:UIComponent |
String |
getName | () | 메서드 |
getState | () | 메서드 |
isAncestorDisabled | () | 메서드 |
public static function isAncestorDisabled(component:UIComponent):Boolean
Returns true if an ancestor of the component has enabled set to false. The given component itself is not checked.
매개 변수
component:UIComponent — The UIComponent to check for a disabled ancestor.
|
Boolean — true if the component has a disabled ancestor.
|
Tue Jun 12 2018, 03:17 PM Z