Hacer accesibles componentes personalizados
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:
- directamente a través del widget personalizado o
- en un subtipo AtkObject creado por una nueva subclase AtkObjectFactory
If the second method is used, the appropriate factory type must be registered with the AtkObjectFactoryRegistry at runtime.
The GAIL source code serves as an excellent tutorial for advanced ATK usage.