AccessibilityNodeInfo.CollectionItemInfo.Builder
public
static
final
class
AccessibilityNodeInfo.CollectionItemInfo.Builder
extends Object
java.lang.Object | |
↳ | android.view.accessibility.AccessibilityNodeInfo.CollectionItemInfo.Builder |
Builder for creating CollectionItemInfo
objects.
Summary
Public constructors | |
---|---|
Builder()
Creates a new Builder. |
Inherited methods | |
---|---|
Public constructors
Public methods
build
public AccessibilityNodeInfo.CollectionItemInfo build ()
Builds and returns a CollectionItemInfo
.
Returns | |
---|---|
AccessibilityNodeInfo.CollectionItemInfo |
This value cannot be null . |
setColumnIndex
public AccessibilityNodeInfo.CollectionItemInfo.Builder setColumnIndex (int columnIndex)
Sets the column index at which the item is located.
Parameters | |
---|---|
columnIndex |
int : The column index |
Returns | |
---|---|
AccessibilityNodeInfo.CollectionItemInfo.Builder |
This builder
This value cannot be null . |
setColumnSpan
public AccessibilityNodeInfo.CollectionItemInfo.Builder setColumnSpan (int columnSpan)
Sets the number of columns the item spans.
Parameters | |
---|---|
columnSpan |
int : The number of columns spans |
Returns | |
---|---|
AccessibilityNodeInfo.CollectionItemInfo.Builder |
This builder
This value cannot be null . |
setColumnTitle
public AccessibilityNodeInfo.CollectionItemInfo.Builder setColumnTitle (String columnTitle)
Sets the column title at which the item is located.
Parameters | |
---|---|
columnTitle |
String : The column title
This value may be null . |
Returns | |
---|---|
AccessibilityNodeInfo.CollectionItemInfo.Builder |
This builder
This value cannot be null . |
setHeading
public AccessibilityNodeInfo.CollectionItemInfo.Builder setHeading (boolean heading)
Sets the collection item is a heading.
Parameters | |
---|---|
heading |
boolean : The heading state |
Returns | |
---|---|
AccessibilityNodeInfo.CollectionItemInfo.Builder |
This builder
This value cannot be null . |
setRowIndex
public AccessibilityNodeInfo.CollectionItemInfo.Builder setRowIndex (int rowIndex)
Sets the row index at which the item is located.
Parameters | |
---|---|
rowIndex |
int : The row index |
Returns | |
---|---|
AccessibilityNodeInfo.CollectionItemInfo.Builder |
This builder
This value cannot be null . |
setRowSpan
public AccessibilityNodeInfo.CollectionItemInfo.Builder setRowSpan (int rowSpan)
Sets the number of rows the item spans.
Parameters | |
---|---|
rowSpan |
int : The number of rows spans |
Returns | |
---|---|
AccessibilityNodeInfo.CollectionItemInfo.Builder |
This builder
This value cannot be null . |
setRowTitle
public AccessibilityNodeInfo.CollectionItemInfo.Builder setRowTitle (String rowTitle)
Sets the row title at which the item is located.
Parameters | |
---|---|
rowTitle |
String : The row title
This value may be null . |
Returns | |
---|---|
AccessibilityNodeInfo.CollectionItemInfo.Builder |
This builder
This value cannot be null . |
setSelected
public AccessibilityNodeInfo.CollectionItemInfo.Builder setSelected (boolean selected)
Sets the collection item is selected.
Parameters | |
---|---|
selected |
boolean : The number of rows spans |
Returns | |
---|---|
AccessibilityNodeInfo.CollectionItemInfo.Builder |
This builder
This value cannot be null . |