VdexReload 1.1.3 API

uk.ac.reload.editor.contentpackaging
Class ReloadResource

java.lang.Object
  extended byjava.io.File
      extended byuk.ac.reload.editor.contentpackaging.ReloadResource
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class ReloadResource
extends java.io.File

A ReloadResource

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
ReloadResource(java.io.File resource)
          Constructor
 
Method Summary
 boolean doParentDirectoriesExist()
          Method to check if this reload resources parent folders exist
 ReloadResource[] getChildren()
           
 java.io.File[] getDependencies(java.io.File projectFolder)
          Method to determine what dependencies are needed for a given ReloadResource.
 java.lang.String getFriendlyName()
          Method to return the friendly name for a ReloadResource.
 javax.swing.Icon getResourceIcon()
          Method to retrieve which icon to use in the resources tree
 java.lang.String toString()
          The string (filename) to show next to the icon in the resources tree
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReloadResource

public ReloadResource(java.io.File resource)
Constructor

Parameters:
resource -
Method Detail

getDependencies

public java.io.File[] getDependencies(java.io.File projectFolder)
Method to determine what dependencies are needed for a given ReloadResource.

Returns:
- an array of File references

getChildren

public ReloadResource[] getChildren()
Returns:
a list of child ReloadResources. Returns null if this is not a folder and no children Puts folders first

doParentDirectoriesExist

public boolean doParentDirectoriesExist()
Method to check if this reload resources parent folders exist

Returns:
boolean

getFriendlyName

public java.lang.String getFriendlyName()
Method to return the friendly name for a ReloadResource.


getResourceIcon

public javax.swing.Icon getResourceIcon()
Method to retrieve which icon to use in the resources tree


toString

public java.lang.String toString()
The string (filename) to show next to the icon in the resources tree

Returns:
the filename to show next to the icon in the resource tree

VdexReload 1.1.3 API