Package org.mozilla.geckoview
Class Autofill.Node
Object
org.mozilla.geckoview.Autofill.Node
- Enclosing class:
- Autofill
Represents an autofill node. A node is an input element and may contain child nodes forming a
tree.
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String key) Gets an HTML attribute value for this node.Get HTML attributes for this node.Get the child nodes for this node.Get web domain of this node.booleanGet whether or not this node is enabled.booleanGet whether or not this node is focusable.intgetHint()Get the hint for the type of data contained in this node.intGet the input type of this node.Get the dimensions of this node in screen coordinates.getTag()Get the HTML tag of this node.toString()
-
Method Details
-
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
Get the child nodes for this node.- Returns:
- The collection of child nodes for this node.
-
getAttributes
Get HTML attributes for this node.- Returns:
- The HTML attributes for this node.
-
getAttribute
Gets an HTML attribute value for this node.- Parameters:
key- The attribute key to retrieve- Returns:
- The attribute value, or null if not found
-
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
Get the HTML tag of this node.- Returns:
- The HTML tag of this node.
-
getDomain
Get web domain of this node.- Returns:
- The domain of this node.
-
toString
-