public void setCollection(PhotoCollection v) {
if ( photoCollection != null ) {
photoCollection.removePhotoCollectionChangeListener( this );
}
photoCollection = new SortedPhotoCollection( v );
if ( photoOrderComparator != null ) {
photoCollection.setComparator( photoOrderComparator );
}
photoCollection.addPhotoCollectionChangeListener( this );
refreshPhotoChangeListeners();