java.lang.Object |
↳ |
android.view.accessibility.AccessibilityNodeInfo.CollectionInfo |
Class Overview
Class with information if a node is a collection. Use
obtain(int, int, boolean)
to get an instance.
A collection of items has rows and columns and may be hierarchical.
For example, a horizontal list is a collection with one column, as
many rows as the list items, and is not hierarchical; A table is a
collection with several rows, several columns, and is not hierarchical;
A vertical tree is a hierarchical collection with one column and
as many rows as the first level children.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Public Methods
public
int
getColumnCount
()
Gets the number of columns.
public
int
getRowCount
()
public
boolean
isHierarchical
()
Gets if the collection is a hierarchically ordered.
Returns
- Whether the collection is hierarchical.
public
static
AccessibilityNodeInfo.CollectionInfo
obtain
(int rowCount, int columnCount, boolean hierarchical)
Obtains a pooled instance.
Parameters
rowCount
| The number of rows. |
columnCount
| The number of columns. |
hierarchical
| Whether the collection is hierarchical.
|