Build 1.0_r1(from source)

android.widget
Class ExpandableListPosition

java.lang.Object
  extended by android.widget.ExpandableListPosition

 class ExpandableListPosition
extends Object

ExpandableListPosition can refer to either a group's position or a child's position. Referring to a child's position requires both a group position (the group containing the child) and a child position (the child's position within that group). To create objects, use obtainChildPosition(int, int) or obtainGroupPosition(int).


Field Summary
static int CHILD
          This data type represents a child position
 int childPos
          The position of the child within its parent group
(package private)  int flatListPos
          The position of the item in the flat list (optional, used internally when the corresponding flat list position for the group or child is known)
static int GROUP
          This data type represents a group position
 int groupPos
          The position of either the group being referred to, or the parent group of the child being referred to
 int type
          What type of position this ExpandableListPosition represents
 
Constructor Summary
ExpandableListPosition(int type, int groupPos, int childPos, int flatListPos)
           
 
Method Summary
(package private)  long getPackedPosition()
           
(package private) static ExpandableListPosition obtainChildPosition(int groupPosition, int childPosition)
           
(package private) static ExpandableListPosition obtainGroupPosition(int groupPosition)
           
(package private) static ExpandableListPosition obtainPosition(long packedPosition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHILD

public static final int CHILD
This data type represents a child position

See Also:
Constant Field Values

GROUP

public static final int GROUP
This data type represents a group position

See Also:
Constant Field Values

groupPos

public int groupPos
The position of either the group being referred to, or the parent group of the child being referred to


childPos

public int childPos
The position of the child within its parent group


flatListPos

int flatListPos
The position of the item in the flat list (optional, used internally when the corresponding flat list position for the group or child is known)


type

public int type
What type of position this ExpandableListPosition represents

Constructor Detail

ExpandableListPosition

ExpandableListPosition(int type,
                       int groupPos,
                       int childPos,
                       int flatListPos)
Method Detail

getPackedPosition

long getPackedPosition()

obtainGroupPosition

static ExpandableListPosition obtainGroupPosition(int groupPosition)

obtainChildPosition

static ExpandableListPosition obtainChildPosition(int groupPosition,
                                                  int childPosition)

obtainPosition

static ExpandableListPosition obtainPosition(long packedPosition)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature