Benutzerdefinierte Komponenten barrierefrei gestalten
Das Hinzufügen von ATK-Unterstützung zu Ihrem benutzerdefinierten Widget stellt die Zusammenarbeit mit der Barrierefreiheits-Infrastruktur sicher. Folgende grundlegende Schritte sind hierzu erforderlich:
-
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.
The GAIL source code serves as an excellent tutorial for advanced ATK usage.