|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alltimeflashdreamer.filelister.JSPMethods
Title: JSPMethods
Description: This class collects all the methods that are used in the JSP sites in a statically accessible manner.
Organization: All Time Flash Dreamer
Method Summary | |
static String |
formatSize(long lSizeInBytes,
boolean bIsDirectory)
Used by viewresults.jsp: Calls SearchParameters.formatSize except it's a directory and its size is 0. |
static String |
getActionTag(FileListerConfig fileListerConfig)
Used by viewresults.jsp: Returns the action attribute's value for the form tag. |
static String |
getColumnLink(FileListerConfig fileListerConfig,
String sColumnName)
Used by viewresults.jsp: Returns the fully configured navigation link for a table header column's name . |
static String |
getDirectoryColumnLink(FileListerEntry fle,
FileListerConfig fileListerConfig)
Used by viewresults.jsp: Builds the link for each entry in the "Location" column (direct access to this directory). |
static String |
getImageSrc(String sName)
Used by different JSP's: Builds one image src attribute value based on the given name. |
static String |
getModeDescriptor(FileListerConfig fileListerConfig)
Used by definesearch.jsp: Returns the appropriate URL parameter for the next search mode, i.e. |
static String |
getNameColumnLink(FileListerEntry fle,
FileListerConfig fileListerConfig)
Used by viewresults.jsp: Builds the link for each entry in the "Name" column (direct access to this file or directory). |
static String |
getNavigationLink(FileListerConfig fileListerConfig,
String sNextSortOrder)
Used by viewresults.jsp: Helper method for getColumnLink, builds one link target (of three). |
static String |
getSiteTitle(FileListerConfig fileListerConfig)
Used by viewresults.jsp: Returns the site title, for both a certain result count and no results. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static String getModeDescriptor(FileListerConfig fileListerConfig)
fileListerConfig
- the magic config object
public static String getSiteTitle(FileListerConfig fileListerConfig)
fileListerConfig
- the magic config object
public static String getActionTag(FileListerConfig fileListerConfig)
fileListerConfig
- the magic config object
public static String formatSize(long lSizeInBytes, boolean bIsDirectory)
lSizeInBytes
- the size of the entry in bytesbIsDirectory
- whether its a directory or not
StringUtils.formatSize(long)
public static String getNameColumnLink(FileListerEntry fle, FileListerConfig fileListerConfig) throws FileListerException
fle
- the entry to get the link offileListerConfig
- the magic config object
FileListerException
- missing configurations?public static String getDirectoryColumnLink(FileListerEntry fle, FileListerConfig fileListerConfig) throws FileListerException
fle
- the entry to get the link offileListerConfig
- the magic config object
FileListerException
- missing configurations?public static String getColumnLink(FileListerConfig fileListerConfig, String sColumnName)
fileListerConfig
- the magic config objectsColumnName
- the name of the column to configure
public static String getNavigationLink(FileListerConfig fileListerConfig, String sNextSortOrder)
fileListerConfig
- the magic config objectsNextSortOrder
- how to sort after the click on this link?
public static String getImageSrc(String sName)
sName
- how to name the link
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |