Build 1.0_r1(from source)

android.widget
Class ExpandableListConnector.PositionMetadata

java.lang.Object
  extended by android.widget.ExpandableListConnector.PositionMetadata
Enclosing class:
ExpandableListConnector

public static class ExpandableListConnector.PositionMetadata
extends Object

Data type that contains an expandable list position (can refer to either a group or child) and some extra information regarding referred item (such as where to insert into the flat list, etc.)


Field Summary
 int groupInsertIndex
          For groups that are collapsed, we use this as the index (in mExpGroupMetadataList) to insert this group when we are expanding this group.
 ExpandableListConnector.GroupMetadata groupMetadata
          Link back to the expanded GroupMetadata for this group.
 ExpandableListPosition position
          Data type to hold the position and its type (child/group)
 
Constructor Summary
  ExpandableListConnector.PositionMetadata(int flatListPos, int type, int groupPos, int childPos)
           
protected ExpandableListConnector.PositionMetadata(int flatListPos, int type, int groupPos, int childPos, ExpandableListConnector.GroupMetadata groupMetadata, int groupInsertIndex)
           
 
Method Summary
 boolean isExpanded()
          Checks whether the group referred to in this object is expanded, or not (at the time this object was created)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

public ExpandableListPosition position
Data type to hold the position and its type (child/group)


groupMetadata

public ExpandableListConnector.GroupMetadata groupMetadata
Link back to the expanded GroupMetadata for this group. Useful for removing the group from the list of expanded groups inside the connector when we collapse the group, and also as a check to see if the group was expanded or collapsed (this will be null if the group is collapsed since we don't keep that group's metadata)


groupInsertIndex

public int groupInsertIndex
For groups that are collapsed, we use this as the index (in mExpGroupMetadataList) to insert this group when we are expanding this group.

Constructor Detail

ExpandableListConnector.PositionMetadata

public ExpandableListConnector.PositionMetadata(int flatListPos,
                                                int type,
                                                int groupPos,
                                                int childPos)

ExpandableListConnector.PositionMetadata

protected ExpandableListConnector.PositionMetadata(int flatListPos,
                                                   int type,
                                                   int groupPos,
                                                   int childPos,
                                                   ExpandableListConnector.GroupMetadata groupMetadata,
                                                   int groupInsertIndex)
Method Detail

isExpanded

public boolean isExpanded()
Checks whether the group referred to in this object is expanded, or not (at the time this object was created)

Returns:
whether the group at groupPos is expanded or not

Build 1.0_r1(from source)

Please submit a feedback, bug or feature