public void setItems ( Array < T > newItems ) { items . clear ( ) ; items . addAll ( newItems ) ; currentIndex = 0 ; invalidateDataSet ( ) ; }
Changes items of this model . Current index is not preserved . This will trigger a change event .