Package edu.chl.jadetalk.core

Examples of edu.chl.jadetalk.core.Image


    @Override
    public Image find(Object id) {
    if(id == null)
      return null;
    Image img = em.find(Image.class, id);
    em.refresh(img);
    em.refresh(img.getCommentThread());
    return img;
    }
View Full Code Here


        commentFacade.remove(comm);
    }

    //Remove image
    public void removeImage(ActionEvent e) {
        Image imag = (Image) e.getComponent().getAttributes().get(conBack.getImageAttName());
        imageFacade.remove(imag);
    }
View Full Code Here

        String filename = imageDataManagerBean.getFileName(imageData) + "." + ext;
        imageDataManagerBean.saveImageToCache(filename, imageData);
        imageDataManagerBean.uploadImage(filename, imageData);
       
        // Create image entry
        Image image = new Image();
        CommentThread ct = new CommentThread();
        ct.setComments(new LinkedList<Comment>());
        image.setCommentThread(ct);
        image.setImageLocation(filename);
        image.setRatings(new LinkedList<Rating>());
        image.setUser(user);
       
        imageManagerBean.storeImage(image);
       
    }
View Full Code Here

TOP

Related Classes of edu.chl.jadetalk.core.Image

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.