|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.toalango.qzarch.Resource
This class wraps the files in the search result.
Constructor Summary | |
Resource()
|
Method Summary | |
java.lang.String |
getLargeIcon()
|
java.lang.String |
getLastModified()
The last modified timestamp of the file formatted as yyyy-MM-dd. |
java.lang.String |
getName()
Getter method for the file name. |
java.lang.String |
getPath()
The path to the resource in the web app it is deployed in. |
java.lang.String |
getSize()
Nicely formatted size property, returning the size in megabyte or kilobyte. |
java.lang.String |
getSmallIcon()
|
java.lang.String |
getTitle()
|
java.lang.String |
getType()
Getter method for the file type (extension). |
void |
setFile(java.io.File pFile)
|
void |
setLargeIcon(java.lang.String pLargeIcon)
|
void |
setPath(java.lang.String pPath)
Setter method for the resource path |
void |
setSmallIcon(java.lang.String pSmallIcon)
|
void |
setTitle(java.lang.String title)
|
void |
setType(java.lang.String pType)
Setter method for the file type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Resource()
Method Detail |
public java.lang.String getName()
public java.lang.String getType()
public void setType(java.lang.String pType)
pType
- the property valuepublic java.lang.String getLastModified()
SimpleDateFormat
public java.lang.String getSize()
public java.lang.String getPath()
This property can be used to reference the resource from a web page.
public void setPath(java.lang.String pPath)
pPath
- The value to set the property topublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
public void setFile(java.io.File pFile)
public java.lang.String getSmallIcon()
public void setSmallIcon(java.lang.String pSmallIcon)
public java.lang.String getLargeIcon()
public void setLargeIcon(java.lang.String pLargeIcon)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |