public abstract class SlideshowBaseController extends DeviceAdaptiveController implements Slideshow, OrientationChangeHandler
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SlideshowBaseController.SlideshowEvent |
Slideshow.Layout, Slideshow.Name, Slideshow.PositionDeviceAdaptive.Device, DeviceAdaptive.Input, DeviceAdaptive.Size, DeviceAdaptive.Template, DeviceAdaptive.Templates| Modifier and Type | Field and Description |
|---|---|
protected int |
activeImage |
protected PhotoAlbum |
album |
protected com.google.gwt.user.client.Timer |
autoPlayTimer |
protected FastList<SlideshowComponent> |
components |
protected FastMap<com.google.gwt.user.client.ui.Image> |
imagesCache |
protected SlideshowPhotoPanel |
photoPanel |
protected boolean |
preloadNextImages |
protected int |
previousImage |
protected boolean |
SCALE_IMAGES |
protected com.google.gwt.user.client.ui.DockPanel |
table |
protected int |
transitionDelay |
| Constructor and Description |
|---|
SlideshowBaseController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(SlideshowComponent component,
Slideshow.Position position) |
protected void |
adjustImageSize(com.google.gwt.user.client.ui.Widget referencePanel,
Photo photo,
com.google.gwt.user.client.ui.Image image) |
abstract void |
configurePhotoPanel() |
int |
getActivePhoto() |
PhotoAlbum |
getAlbum() |
AlbumService |
getAlbumService() |
Photo |
getPhoto(int index) |
int |
getPhotoCount() |
SlideshowPhotoPanel |
getPhotoPanel() |
int |
getTransitionDelay() |
protected boolean |
hasMorePhotos() |
protected void |
init() |
boolean |
isPlaying() |
boolean |
isPreloadNextImages() |
boolean |
isScaleImages() |
void |
load(AlbumService.Callback callback) |
com.google.gwt.user.client.ui.Image |
loadImage(int index) |
protected com.google.gwt.user.client.ui.Image |
loadImage(int index,
boolean preloadNext) |
boolean |
next() |
protected void |
notifyComponents(SlideshowBaseController.SlideshowEvent event) |
void |
onOrientationChange() |
void |
play() |
boolean |
previous() |
protected void |
reset() |
void |
setAlbum(PhotoAlbum album) |
void |
setAlbumService(AlbumService albumService) |
void |
setHeight(SlideshowComponent component,
String height) |
void |
setHorizontalAlignment(SlideshowComponent component,
com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant align) |
void |
setLayout(Slideshow.Layout layout) |
void |
setPreloadNextImages(boolean preloadNextImages) |
void |
setScaleImages(boolean scaleImages) |
void |
setTransitionDelay(int transitionDelay) |
void |
setVerticalAlignment(SlideshowComponent component,
com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant align) |
void |
setWidth(SlideshowComponent component,
String width) |
protected void |
showComponents() |
void |
showFirstPhoto() |
void |
showPhoto(int index) |
void |
stop() |
addAttachHandler, addHandler, addWidget, asWidget, fireEvent, getChildWidget, getElement, getStyleName, getTitle, isVisible, setHeight, setStyleName, setTitle, setVisible, setWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAttachHandler, addHandler, getElement, getStyleName, getTitle, isVisible, setHeight, setStyleName, setTitle, setVisible, setWidthprotected boolean SCALE_IMAGES
protected SlideshowPhotoPanel photoPanel
protected PhotoAlbum album
protected com.google.gwt.user.client.ui.DockPanel table
protected FastMap<com.google.gwt.user.client.ui.Image> imagesCache
protected FastList<SlideshowComponent> components
protected int activeImage
protected int previousImage
protected com.google.gwt.user.client.Timer autoPlayTimer
protected boolean preloadNextImages
protected int transitionDelay
public void setLayout(Slideshow.Layout layout)
public void addComponent(SlideshowComponent component, Slideshow.Position position)
addComponent in interface Slideshowcomponent - direction - public int getTransitionDelay()
getTransitionDelay in interface Slideshowpublic void setTransitionDelay(int transitionDelay)
setTransitionDelay in interface SlideshowtransitionDelay - public void setHorizontalAlignment(SlideshowComponent component, com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant align)
setHorizontalAlignment in interface Slideshowcomponent - align - public void setVerticalAlignment(SlideshowComponent component, com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant align)
setVerticalAlignment in interface Slideshowcomponent - align - public void setHeight(SlideshowComponent component, String height)
public void setWidth(SlideshowComponent component, String width)
public void setAlbum(PhotoAlbum album)
public void showFirstPhoto()
showFirstPhoto in interface Slideshowpublic PhotoAlbum getAlbum()
public void showPhoto(int index)
public com.google.gwt.user.client.ui.Image loadImage(int index)
protected void showComponents()
public int getActivePhoto()
getActivePhoto in interface Slideshowpublic SlideshowPhotoPanel getPhotoPanel()
getPhotoPanel in interface Slideshowpublic Photo getPhoto(int index)
public int getPhotoCount()
getPhotoCount in interface Slideshowpublic boolean isPreloadNextImages()
isPreloadNextImages in interface Slideshowpublic void setPreloadNextImages(boolean preloadNextImages)
setPreloadNextImages in interface SlideshowpreloadNextImages - public AlbumService getAlbumService()
getAlbumService in interface Slideshowpublic void setAlbumService(AlbumService albumService)
setAlbumService in interface Slideshowpublic void load(AlbumService.Callback callback)
public void onOrientationChange()
onOrientationChange in interface OrientationChangeHandlerprotected void init()
init in class DeviceAdaptiveControllerpublic abstract void configurePhotoPanel()
protected com.google.gwt.user.client.ui.Image loadImage(int index,
boolean preloadNext)
index - preloadNext - protected void adjustImageSize(com.google.gwt.user.client.ui.Widget referencePanel,
Photo photo,
com.google.gwt.user.client.ui.Image image)
referencePanel - photo - image - protected boolean hasMorePhotos()
protected void notifyComponents(SlideshowBaseController.SlideshowEvent event)
event - protected void reset()
public boolean isScaleImages()
isScaleImages in interface Slideshowpublic void setScaleImages(boolean scaleImages)
setScaleImages in interface SlideshowCopyright © 2014. All rights reserved.