Examples of PhotoToFrontEvent


Examples of com.denisk.appengine.nl.client.thirdparty.com.reveregroup.carousel.client.events.PhotoToFrontEvent

    for (int i = 0; i < images.length; i++) {
      int pIndex = i - preLoadSize - 4 + currentPhotoIndex;
      pIndex = Utils.modulus(pIndex, photos.size());
      images[i].setUrl(photos.get(pIndex).getUrl());
    }
    PhotoToFrontEvent evt = new PhotoToFrontEvent();
    evt.setPhotoIndex(currentPhotoIndex);
    evt.setPhoto(photos.get(currentPhotoIndex));
    fireEvent(evt);
   
    final ImageData imageData = new ImageData();
    for (int i = 0; i < carouselSize; i++) {
      images[i + preLoadSize].getElement().getStyle().setProperty("display", "");
View Full Code Here

Examples of com.denisk.appengine.nl.client.thirdparty.com.reveregroup.carousel.client.events.PhotoToFrontEvent

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

Examples of 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

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

  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

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

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

  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
Copyright © 2018 www.massapi.com. 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.