Class AccessibilityTreeSnapshot

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

public final class AccessibilityTreeSnapshot extends Object
Immutable accessibility tree for the current form.
  • Method Details

    • getGeneration

      public long getGeneration()
    • getRootIds

      public List<Long> getRootIds()
    • getNodes

      public Map<Long, AccessibilityNodeSnapshot> getNodes()
    • getNode

      public AccessibilityNodeSnapshot getNode(long id)
    • getNodeByIdentifier

      public AccessibilityNodeSnapshot getNodeByIdentifier(String identifier)

      Finds a node by its application-supplied stable identifier.

      Parameters
      • identifier: identifier assigned with AccessibilityNode#setIdentifier(String)
      Returns

      the matching node, or null when no node has that identifier.

    • getNodeAt

      public AccessibilityNodeSnapshot getNodeAt(int x, int y)
      Returns the deepest semantic node containing the screen coordinate.
    • toJson

      public String toJson()