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