public int expandAll(int level){
  int expanded=0;
  for (int i=0; i < mItems.size(); i++) {
    T item=getItem(i);
    if (isExpandable(item)) {
      IExpandable expandable=(IExpandable)item;
      if (expandable.getExpansionLevel() <= level && expand(i,true,false) > 0) {
        expanded++;
      }
    }
  }
  return expanded;
}

public int expandAll ( int level ) { int expanded = 0 ; for ( int i = 0 ; i < mItems . size ( ) ; i ++ ) { T item = getItem ( i ) ; if ( isExpandable ( item ) ) { IExpandable expandable = ( IExpandable ) item ; if ( expandable . getExpansionLevel ( ) <= level && expand ( i , true , false ) > 0 ) { expanded ++ ; } } } return expanded ; }
expands all iexpandable items with at least the specified level .
