|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.artima.place.PropertyFileResourceInfo
A bundle of information about a resource represented by a Link
.
Fields inherited from interface net.artima.place.ResourceInfo |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
Constructor Summary | |
PropertyFileResourceInfo(java.lang.String baseName,
java.util.Locale[] supportedLocales)
Construct a PropertyFileResourceInfo. |
Method Summary | |
protected abstract java.lang.ClassLoader |
getClassLoader()
Overridden in subclasses that are sent in the same JAR file as the property files. |
java.lang.String |
getDescription()
Gets a short description for this resource, suitable for presentation to users, under the current locale. |
java.lang.String |
getDescription(java.util.Locale locale)
Gets a short description for this resource, suitable for presentation to users, under the specified locale. |
java.net.URL |
getIconImageFile(int iconKind)
Gets a URL for the image file of an icon for this resource, suitable for presentation to users, under the current locale. |
java.net.URL |
getIconImageFile(java.util.Locale locale,
int iconKind)
Gets a URL for the image file of an icon for this resource, suitable for presentation to users, under the specified locale. |
java.io.InputStream |
getIconImageFileAsStream(int iconKind)
Gets an InputStream for the image file of an icon for this resource, suitable for presentation to users, under the current locale. |
java.io.InputStream |
getIconImageFileAsStream(java.util.Locale locale,
int iconKind)
Gets an InputStream for the image file of an icon for this resource, suitable for presentation to users, under the specified locale. |
java.lang.String[] |
getKeywords()
Gets a set of keywords for this resource, suitable for presentation to users, under the current locale. |
java.lang.String[] |
getKeywords(java.util.Locale locale)
Gets a set of keywords for this resource, suitable for presentation to users, under the specified locale. |
java.lang.String |
getName()
Gets the name of this resource, suitable for presentation to users,. |
java.lang.String |
getName(java.util.Locale locale)
Gets the name of this resource, suitable for presentation to users. |
java.util.Locale[] |
getSupportedLocales()
Returns an array of locales supported by this ResourceInfo. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyFileResourceInfo(java.lang.String baseName, java.util.Locale[] supportedLocales)
baseName
- Base name of property file.loader
- Class loader that can load the property file as a resource.supportedLocales
- Locales supported by this ResourceInfoMethod Detail |
public java.util.Locale[] getSupportedLocales()
getSupportedLocales
in interface ResourceInfo
public java.lang.String getName()
getName
in interface ResourceInfo
public java.lang.String getName(java.util.Locale locale)
getName
in interface ResourceInfo
public java.lang.String[] getKeywords()
public java.lang.String[] getKeywords(java.util.Locale locale)
public java.lang.String getDescription()
getDescription
in interface ResourceInfo
public java.lang.String getDescription(java.util.Locale locale)
getDescription
in interface ResourceInfo
public java.net.URL getIconImageFile(int iconKind)
getIconImageFile
in interface ResourceInfo
public java.io.InputStream getIconImageFileAsStream(int iconKind)
getIconImageFileAsStream
in interface ResourceInfo
public java.net.URL getIconImageFile(java.util.Locale locale, int iconKind)
getIconImageFile
in interface ResourceInfo
public java.io.InputStream getIconImageFileAsStream(java.util.Locale locale, int iconKind)
getIconImageFileAsStream
in interface ResourceInfo
protected abstract java.lang.ClassLoader getClassLoader()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |