Added method to change underneath set of images to show

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/image-previewer-widget@122476 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-01-22 17:02:17 +00:00
parent 4c20911888
commit c412bfabf2
1 changed files with 18 additions and 8 deletions

View File

@ -112,14 +112,6 @@ public class Carousel extends Composite{
mainModalPanel.show();
}
/**
* Used to show this carousel.
*/
public void show(){
mainModalPanel.show();
}
@UiHandler("closeButton")
public void closeOnClick(ClickEvent e){
@ -169,6 +161,14 @@ public class Carousel extends Composite{
mainModalPanel.setTitle(listOfAttachmentsToShow.get(currentPreviewPosition).getTitleToShow());
}
/**
* Used to show this carousel.
*/
public void show(){
mainModalPanel.show();
}
/**
* Change the current image.
@ -191,5 +191,15 @@ public class Carousel extends Composite{
mainModalPanel.setTitle(listOfAttachmentsToShow.get(currentPreviewPosition).getTitleToShow());
}
/**
* Change the set of images to show
* @param imagesToShow
*/
public void updateImages(List<EnhancedImage> imagesToShow){
listOfAttachmentsToShow = imagesToShow;
}
}