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

    • getId

      @AnyThread @Deprecated @DeprecationSchedule(id="autofill-node", version=104) public int getId()
      Deprecated.
      Get the unique (within this page) ID for this node.
      Returns:
      The unique ID of this node.
    • getVisible

      @AnyThread @Deprecated @DeprecationSchedule(id="autofill-node", version=104) public boolean getVisible()
      Deprecated.
      Get whether this node is visible. Nodes are visible, when they are part of a focused branch. A focused branch includes the focused node, its siblings, its parent and the session root node.
      Returns:
      True if this node is visible, false otherwise.
    • getDimensions

      @AnyThread @NonNull public Rect getDimensions()
      Get the dimensions of this node in CSS coordinates. Note: Invisible nodes will report their proper dimensions, see getVisible() for details.
      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.
    • getFocused

      @AnyThread @Deprecated @DeprecationSchedule(id="autofill-node", version=104) public boolean getFocused()
      Deprecated.
      Get whether or not this node is focused.
      Returns:
      True if this node is focused, 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.
    • getValue

      @AnyThread @Deprecated @DeprecationSchedule(id="autofill-node", version=104) @NonNull public String getValue()
      Deprecated.
      Get the value assigned to this node.
      Returns:
      The value of this node.
    • toString

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

      @UiThread @Deprecated @DeprecationSchedule(id="autofill-node", version=104) public void fillViewStructure(@NonNull View view, @NonNull ViewStructure structure, int flags)
      Deprecated.
      Parameters:
      view - The View instance
      structure - The ViewStructure instance
      flags - Flags for this structure