|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livescribe.i18n.ResourceBundle
public abstract class ResourceBundle
ResourceBundle encapsulates the localized resources for an
application. An instance of the bundle is got from the
PenletContext class
| Field Summary | |
|---|---|
static String |
MIME_AUDIO_AAC
AAC MIME Type |
static String |
MIME_AUDIO_WAV
Wave MIME Type |
static String |
MIME_AUDIO_WAVPACK
Wave Pack MIME Type |
static String |
MIME_IMAGE_ARW
ARW Image MIME Type |
static String |
MIME_UNKNOWN
Unknown MIME Type |
| Constructor Summary | |
|---|---|
protected |
ResourceBundle(Locale locale)
Construct a ResourceBundle for the specified locale |
| Method Summary | |
|---|---|
abstract DisplayableResource |
getDisplayResource(String id)
Returns the localized display resource for the identifier passed. |
abstract ImageResource |
getImageResource(String id)
Returns the localized image resource for the identifier passed. |
Locale |
getLocale()
Returns the locale of the bundle. |
abstract SoundResource |
getSoundResource(String id)
Returns the localized sound resource for the identifier passed. |
abstract TextResource |
getTextResource(String id)
Returns the localized text resource for the identifier passed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MIME_UNKNOWN
public static final String MIME_AUDIO_AAC
public static final String MIME_AUDIO_WAV
public static final String MIME_AUDIO_WAVPACK
public static final String MIME_IMAGE_ARW
| Constructor Detail |
|---|
protected ResourceBundle(Locale locale)
ResourceBundle for the specified locale
locale - locale for which the bundle needs to be created.| Method Detail |
|---|
public abstract DisplayableResource getDisplayResource(String id)
null, then it returns a null value. The
returned resource is either a TextResource or
ImageResource
id - identifier for the resource. This MUST be a non-null value.
public abstract TextResource getTextResource(String id)
null, then it returns a null value.
id - identifier for the resource. This MUST be a non-null value.
public abstract ImageResource getImageResource(String id)
null, then it returns a null value.
id - identifier for the resource. This MUST be a non-null value.
public abstract SoundResource getSoundResource(String id)
null, then it returns a null value.
id - identifier for the resource. This MUST be a non-null value.
public final Locale getLocale()
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||