Codename One Replaces Single-Label Accessibility with Full Semantics Tree

Codename One, an open-source framework for building cross-platform apps from a single Java or Kotlin codebase, has introduced a comprehensive accessibility semantics system via pull request #5363. The update replaces the earlier limited setAccessibilityText() approach with an immutable virtual tree that sits alongside the visual component tree. Because Codename One paints lightweight components onto a native surface rather than using native UI widgets, screen readers like VoiceOver and TalkBack could not previously inspect controls directly. The new system allows standard controls to infer their roles, values, states, and actions automatically, while custom controls can extend or override those semantics. The API supports advanced features including live regions, traversal order, collection metadata, virtual child providers, and named accessibility actions.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in