Class AccessibilityManager

java.lang.Object
com.codename1.ui.accessibility.AccessibilityManager

public final class AccessibilityManager extends Object

Builds, caches, diffs, and dispatches actions for the portable semantic tree.

The tree is always constructed on the Codename One EDT. Native ports read the last immutable snapshot and post actions through performAction(long, String, Object), so native accessibility threads never synchronously enter application code.

  • Field Details

  • Method Details

    • getInstance

      public static AccessibilityManager getInstance()
    • invalidate

      public void invalidate(Component component, int changeType)
    • invalidateAll

      public void invalidateAll()
    • getCurrentSnapshot

      public AccessibilityTreeSnapshot getCurrentSnapshot()
    • getSnapshot

      public AccessibilityTreeSnapshot getSnapshot(Form form)
    • getPendingChanges

      public int getPendingChanges()
    • performAction

      public boolean performAction(long nodeId, String actionId, Object argument)
    • performActionByHash

      public boolean performActionByHash(long nodeId, int actionIdHash, Object argument)
      Dispatches an action selected by a native bridge that can transport only an integer token.