implements the selectionmodificationspinner 's select all command by checking each enabled item in the listview . concode_field_sep ListView managedList concode_elem_sep Class<?> onlyCheckClass concode_elem_sep int titleTemplateResource concode_field_sep void setOnlyCheckClass concode_elem_sep boolean onCreateActionMode concode_elem_sep void selectFinished concode_elem_sep void onDestroyActionMode concode_elem_sep void invertSelection concode_elem_sep void onItemCheckedStateChanged concode_elem_sep boolean onActionItemClicked concode_elem_sep boolean onPrepareActionMode
void function ( ) { for ( int loc0 = 0 ; loc0 < managedList . getAdapter ( ) . getCount ( ) ; loc0 ++ ) { if ( managedList . getAdapter ( ) . isEnabled ( loc0 ) && ( onlyCheckClass == null || onlyCheckClass . isInstance ( managedList . getItemAtPosition ( loc0 ) ) ) ) managedList . setItemChecked ( loc0 , true ) ; } }