org.chorem.pollen.ui.components
Class ImageContextLink

java.lang.Object
  extended by 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

Field Summary
static String THUMB_PREFIX
           
 
Constructor Summary
ImageContextLink()
           
 
Method Summary
 String getContextPath()
          ContextPath for the link
 File getFile(String filename)
          Get a file from context with name defined by filename.
 File getFile(String filename, boolean thumb)
           
 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
 

Field Detail

THUMB_PREFIX

public static final String THUMB_PREFIX
See Also:
Constant Field Values
Constructor Detail

ImageContextLink

public ImageContextLink()
Method Detail

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.