org.chorem.pollen.ui.components
Class ImageContextLink
java.lang.Object
org.chorem.pollen.ui.components.ImageContextLink
- All Implemented Interfaces:
- ContextLink
- Direct Known Subclasses:
- Image
public class ImageContextLink
- extends Object
- implements ContextLink
ImageContextLink
Created: 4 nov. 2009
- Version:
- $Revision$
Mise a jour: $Date$
par : $Author$
- Author:
- fdesbois
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THUMB_PREFIX
public static final String THUMB_PREFIX
- See Also:
- Constant Field Values
ImageContextLink
public ImageContextLink()
getContextPath
public String getContextPath()
- Description copied from interface:
ContextLink
- ContextPath for the link
- Specified by:
getContextPath in interface ContextLink
- Returns:
- a String contextPath
getFile
public File getFile(String filename)
- Description copied from interface:
ContextLink
- Get a file from context with name defined by filename.
- Specified by:
getFile in interface ContextLink
- Parameters:
filename - name of the file to get
- Returns:
- a File with absolutePath corresponding to contextPath + filename
getFile
public File getFile(String filename,
boolean thumb)
getImageDir
public File getImageDir()
- Get the directory where are uploaded the images from the context.
- Returns:
- a File corresponding to the image directory
Copyright © 2009-2010 CodeLutin. All Rights Reserved.