Package com.vaadin.ui.Upload

Examples of com.vaadin.ui.Upload.FinishedListener


  public UploadPopupWindow(String caption, String description, Receiver receiver) {
    this.i18nManager = ExplorerApp.get().getI18nManager();
   
    init(caption, description, receiver);
   
    uploadComponent.addFinishedListener(new FinishedListener() {
     
      private static final long serialVersionUID = 1L;

      public void uploadFinished(FinishedEvent event) {
        close();
View Full Code Here


  public UploadPopupWindow(String caption, String description, Receiver receiver) {
    this.i18nManager = ExplorerApp.get().getI18nManager();
   
    init(caption, description, receiver);
   
    uploadComponent.addFinishedListener(new FinishedListener() {
     
      private static final long serialVersionUID = 1L;

      public void uploadFinished(FinishedEvent event) {
        close();
View Full Code Here

    final Upload changePictureUpload = new Upload();
    changePictureUpload.setImmediate(true);
    changePictureUpload.setButtonCaption(i18nManager.getMessage(Messages.PROFILE_CHANGE_PICTURE));
   
    final InMemoryUploadReceiver receiver = initPictureReceiver(changePictureUpload);
    changePictureUpload.addListener(new FinishedListener() {
      private static final long serialVersionUID = 1L;
      public void uploadFinished(FinishedEvent event) {
        if (!receiver.isInterruped()) {
          picture = new Picture(receiver.getBytes(), receiver.getMimeType());
          identityService.setUserPicture(userId, picture);
View Full Code Here

        return byteArrayOutputStream;
      }
    };
   
    uploadComponent.setReceiver(receiver);
    uploadComponent.addFinishedListener(new FinishedListener() {
     
      private static final long serialVersionUID = 1L;

      public void uploadFinished(FinishedEvent event) {
        // Update UI
View Full Code Here

    final Upload changePictureUpload = new Upload();
    changePictureUpload.setImmediate(true);
    changePictureUpload.setButtonCaption(i18nManager.getMessage(Messages.PROFILE_CHANGE_PICTURE));
   
    final InMemoryUploadReceiver receiver = initPictureReceiver(changePictureUpload);
    changePictureUpload.addListener(new FinishedListener() {
      private static final long serialVersionUID = 1L;
      public void uploadFinished(FinishedEvent event) {
        if (!receiver.isInterruped()) {
          picture = new Picture(receiver.getBytes(), receiver.getMimeType());
          identityService.setUserPicture(userId, picture);
View Full Code Here

        byteArrayOutputStream = new ByteArrayOutputStream();
        return byteArrayOutputStream;
      }
    });
   
    uploadComponent.addFinishedListener(new FinishedListener() {
     
      private static final long serialVersionUID = 1L;

      public void uploadFinished(FinishedEvent event) {
        // Update UI
View Full Code Here

  public ImportPopupWindow(String caption, String description, Receiver receiver) {
    this.i18nManager = ExplorerApp.get().getI18nManager();
   
    init(caption, description, receiver);
   
    importComponent.addFinishedListener(new FinishedListener() {
     
      private static final long serialVersionUID = 1L;

      public void uploadFinished(FinishedEvent event) {
        close();
View Full Code Here

TOP

Related Classes of com.vaadin.ui.Upload.FinishedListener

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.