private void initializeList ( ) { FavouritesCommService . getSearchFavourites ( new DataCallback < List < SearchFavourite > > ( ) { public void execute ( List < SearchFavourite > result ) { favouriteItems . getDataAsRecordList ( ) . removeList ( favouriteItems . getRecords ( ) ) ; for ( SearchFavourite sf : result ) { favouriteItems . addData ( new FavouriteListRecord ( sf ) ) ; } } } ) ; }
get favourites from store