Package fing.satode.com.reveregroup.carousel.client.events

Examples of fing.satode.com.reveregroup.carousel.client.events.PhotoToFrontEvent


    }
    for(int i = 0;i < carouselSize;i++){
      images[i + preLoadSize].getElement().getStyle().setProperty("display", "");
    }
    placeImages();
    PhotoToFrontEvent evt = new PhotoToFrontEvent();
    evt.setPhotoIndex(currentPhotoIndex);
    evt.setPhoto(photos.get(currentPhotoIndex));
    fireEvent(evt);
  }
View Full Code Here


  private void setCurrentRotation(double value) {
    int pi = getCurrentPhotoIndex();
    currentRotation = Utils.modulus(value, photos.size());
    setCurrentPhotoIndex((int)Math.round(currentRotation));
    if (pi != getCurrentPhotoIndex()) {
      PhotoToFrontEvent event = new PhotoToFrontEvent();
      event.setPhoto(photos.get(getCurrentPhotoIndex()));
      event.setPhotoIndex(getCurrentPhotoIndex());
      fireEvent(event);
    }
    placeImages();
  }
View Full Code Here

TOP

Related Classes of fing.satode.com.reveregroup.carousel.client.events.PhotoToFrontEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.