|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.bioinf.util.ResourceAdapter
Generic class for locating resources within an application/applet's package hierarchy. Resources are defined in a locale specific property file according to the conventions defined in ResourceBundle. For URLs, looks up the appropriate path in the specified property file, and then uses that to retrieve a pointer to it.
Field Summary | |
protected ResourceBundle |
bundle
|
protected Locale |
defaultLocale
|
protected String |
props
|
Constructor Summary | |
ResourceAdapter()
|
|
ResourceAdapter(String propertyFile)
|
Method Summary | |
File |
getFile(String fileDescriptor)
property is file. |
URL |
getHelpURL(String helpURLName)
property is helpURL. |
URL |
getImageURL(String imageName)
property is image. |
String |
getMessageString(String messageName)
property is message. |
String |
getTextString(String descriptor)
property is string. |
String |
getToolTip(String tooltipName)
property is tooltip. |
URL |
getURL(String URLDescriptor)
property is url. |
protected void |
init()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Locale defaultLocale
protected ResourceBundle bundle
protected String props
Constructor Detail |
public ResourceAdapter()
public ResourceAdapter(String propertyFile) throws IOException
Method Detail |
protected void init() throws IOException
IOException
public String getMessageString(String messageName)
public String getToolTip(String tooltipName)
public URL getHelpURL(String helpURLName)
public URL getImageURL(String imageName)
public File getFile(String fileDescriptor)
public URL getURL(String URLDescriptor)
public String getTextString(String descriptor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |