Class Autofill.Node

Object
org.mozilla.geckoview.Autofill.Node
Enclosing class:
Autofill

public static final class Autofill.Node extends Object
Represents an autofill node. A node is an input element and may contain child nodes forming a tree.
  • Method Details

    • getScreenRect

      @AnyThread @NonNull public Rect getScreenRect()
      Get the dimensions of this node in screen coordinates. This is valid when this node has an focus.
      Returns:
      The dimensions of this node.
    • getChildren

      @AnyThread @NonNull public Collection<Autofill.Node> getChildren()
      Get the child nodes for this node.
      Returns:
      The collection of child nodes for this node.
    • getAttributes

      @AnyThread @NonNull public Map<String,String> getAttributes()
      Get HTML attributes for this node.
      Returns:
      The HTML attributes for this node.
    • getAttribute

      @AnyThread @Nullable public String getAttribute(@NonNull String key)
    • getEnabled

      @AnyThread public boolean getEnabled()
      Get whether or not this node is enabled.
      Returns:
      True if the node is enabled, false otherwise.
    • getFocusable

      @AnyThread public boolean getFocusable()
      Get whether or not this node is focusable.
      Returns:
      True if the node is focusable, false otherwise.
    • getHint

      @AnyThread public int getHint()
      Get the hint for the type of data contained in this node.
      Returns:
      The input data hint for this node, one of Autofill.Hint.
    • getInputType

      @AnyThread public int getInputType()
      Get the input type of this node.
      Returns:
      The input type of this node, one of Autofill.InputType.
    • getTag

      @AnyThread @NonNull public String getTag()
      Get the HTML tag of this node.
      Returns:
      The HTML tag of this node.
    • getDomain

      @AnyThread @NonNull public String getDomain()
      Get web domain of this node.
      Returns:
      The domain of this node.
    • toString

      @AnyThread public String toString()
      Overrides:
      toString in class Object