Class AccessibilityNode
Mutable semantic configuration for a lightweight component or virtual child.
Component-owned nodes are obtained with Component.getSemantics().
Applications can create standalone nodes for an AccessibilityChildProvider;
virtual nodes must have a stable virtual key.
-
Constructor Summary
ConstructorsConstructorDescriptionAccessibilityNode(Component owner) Internal constructor used byComponent.AccessibilityNode(Component owner, String label) Internal constructor used byComponentto seed a node from the component's accessibility text.AccessibilityNode(String virtualKey) -
Method Summary
Modifier and TypeMethodDescriptionaddAction(AccessibilityAction action) addChild(AccessibilityNode child) getBusy()intgetHint()getLabel()getOwner()getRange()getRole()doublegetValue()booleanbooleanisModal()removeAction(String id) setChecked(AccessibilityCheckedState checked) setChildProvider(AccessibilityChildProvider provider) setCurrent(Boolean current) setDescription(String description) setEnabled(Boolean enabled) setExpanded(Boolean expanded) setGrouping(AccessibilityGrouping grouping) setHeadingLevel(int level) setIdentifier(String identifier) setInvalid(Boolean invalid) setLiveRegion(AccessibilityLiveRegion liveRegion) setModal(boolean modal) setMultiline(Boolean multiline) setObscured(Boolean obscured) setPaneTitle(String paneTitle) setPressed(Boolean pressed) setRange(AccessibilityRange range) setReadOnly(Boolean readOnly) setRequired(Boolean required) setRole(AccessibilityRole role) setRoleDescription(String roleDescription) setSelected(Boolean selected) setSortKey(double sortKey) setTraversalAfter(Component component) setTraversalBefore(Component component) setValidationError(String error) setVirtualKey(String virtualKey)
-
Constructor Details
-
AccessibilityNode
public AccessibilityNode() -
AccessibilityNode
-
AccessibilityNode
-
AccessibilityNode
Internal constructor used by
Componentto seed a node from the component's accessibility text.The label is assigned directly rather than through
setLabel(String)because this runs the first time anything reads the node -- typically the tree walk that is describing the component right now. Reporting it as a change would make describing a tree invalidate that same tree, so a refresh pass that re-posts itself whenever work is queued would never run out of work, and on a surface that keeps making components it would spin the event thread. Creating a node to read it is not news to whoever asked to read it.
-
-
Method Details
-
getOwner
-
getVirtualKey
-
setVirtualKey
-
getIdentifier
-
setIdentifier
-
getLabel
-
setLabel
-
getHint
-
setHint
-
getDescription
-
setDescription
-
getValue
-
setValue
-
getValidationError
-
setValidationError
-
getPaneTitle
-
setPaneTitle
-
getRoleDescription
-
setRoleDescription
-
getRole
-
setRole
-
getChecked
-
setChecked
-
getLiveRegion
-
setLiveRegion
-
getGrouping
-
setGrouping
-
getRange
-
setRange
-
getCollectionInfo
-
setCollectionInfo
-
getCollectionItemInfo
-
setCollectionItemInfo
-
getChildProvider
-
setChildProvider
-
getBounds
-
setBounds
-
getSelected
-
setSelected
-
getExpanded
-
setExpanded
-
getEnabled
-
setEnabled
-
getInvalid
-
setInvalid
-
getBusy
-
setBusy
-
getReadOnly
-
setReadOnly
-
getRequired
-
setRequired
-
getMultiline
-
setMultiline
-
getObscured
-
setObscured
-
getPressed
-
setPressed
-
getCurrent
-
setCurrent
-
isModal
public boolean isModal() -
setModal
-
getHeadingLevel
public int getHeadingLevel() -
setHeadingLevel
-
getSortKey
public double getSortKey() -
setSortKey
-
getTraversalBefore
-
setTraversalBefore
-
getTraversalAfter
-
setTraversalAfter
-
addAction
-
removeAction
-
getActions
-
addChild
-
clearChildren
-
getChildren
-
hasExplicitConfiguration
public boolean hasExplicitConfiguration()
-