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

@ -113,14 +113,6 @@ public class Carousel extends Composite{
}
/**
* Used to show this carousel.
*/
public void show(){
mainModalPanel.show();
}
@UiHandler("closeButton")
public void closeOnClick(ClickEvent e){
@ -170,6 +162,14 @@ public class Carousel extends Composite{
}
/**
* Used to show this carousel.
*/
public void show(){
mainModalPanel.show();
}
/**
* Change the current image.
* @param newPosition index of the new image to show
@ -192,4 +192,14 @@ public class Carousel extends Composite{
}
/**
* Change the set of images to show
* @param imagesToShow
*/
public void updateImages(List<EnhancedImage> imagesToShow){
listOfAttachmentsToShow = imagesToShow;
}
}