Making Custom Components Accessible
Adding ATK support to your custom widget will assure its cooperation with the accessibility infrastructure. These are the general steps that are required:
-
assess a custom widget according to the applicable User Interface Guidelines;
-
determine which ATK interfaces a custom widget should implement, according to the widget's feature set and function;
-
assess which ATK interfaces can be inherited from the parent widget class;
-
implement the appropriate ATK interfaces for the widget class in one of two ways:
- directly by the custom widget, or
- in an AtkObject subtype created by a new AtkObjectFactory subclass
If the second method is used, the appropriate factory type must be registered with the AtkObjectFactoryRegistry at runtime.