| |
|
| java.lang.Object com.jeta.swingbuilder.project.DefaultProjectManager
DefaultProjectManager | public class DefaultProjectManager implements ProjectManager(Code) | | Concrete implementation of ProjectManager
author: Jeff Tassin |
DefaultProjectManager | public DefaultProjectManager()(Code) | | ctor
|
clearResourceCache | public void clearResourceCache()(Code) | | Clears any cached resources
|
getAbsolutePath | public String getAbsolutePath(String relativePath)(Code) | | a valid absolute path given a relative path. Searches theregistered source paths and determines if the relativePath(includes filename) exists within one of the source paths. |
getRelativePath | public String getRelativePath(String absPath)(Code) | | a valid relative package/filename given an absolute path. Therelative path is determined using the source directories. If thepath does not lie within a source directory, null is returned. |
isValidAbsolutePath | public boolean isValidAbsolutePath(String path)(Code) | | true if the given absolute path lies within one of the sourcedirectories. |
isValidResource | public boolean isValidResource(String relpath)(Code) | | true if the given relative resource exists and is a file |
loadImage | public ImageIcon loadImage(String imageName)(Code) | | Utility method that loads an image from the CLASSPATH.
Parameters: imageName - the subdirectory and name of image file (i.e.images/edit16.gif ) |
|
|
|