www.element4solution.com

e4s.util
Class E4DirEntryDefaultImages

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.util.E4DirEntryDefaultImages

public class E4DirEntryDefaultImages
extends E4Object

Images for directory listing. Read a list of images from a defined place and keep them for later use and association with image extensions to be displayed in E4DirEntry when a file listing is requested.

Since:
JDK 1.4
See Also:
e4s.html.E4DirEntry

Field Summary
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4DirEntryDefaultImages()
           
 
Method Summary
static java.lang.String _getSVNVersionString()
           
static IMG getImage(java.lang.String filename)
          Determine the file extension of filename and return an associated image.
static void init()
           
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

E4DirEntryDefaultImages

public E4DirEntryDefaultImages()
Method Detail

init

public static void init()

getImage

public static IMG getImage(java.lang.String filename)
Determine the file extension of filename and return an associated image. If filename e.g. is "MyDocument.xls" then extension is "xls". Now, if a .gif, .jpg or .jpeg file exists in the images directory, then this IMG is returned.

Parameters:
filename - the filename of a given file to lookup for the extension. Can include any path information.
Returns:
null if no image associated or if image table not loaded, the associated IMG otherwise

_getSVNVersionString

public static java.lang.String _getSVNVersionString()

www.element4solution.com