|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.renderer.LocalizableStringValue
public class LocalizableStringValue
A StringValue which looks up localized String representations for objects.
Constructor Summary | |
---|---|
LocalizableStringValue(java.util.Map<java.lang.Object,java.lang.String> lookup)
Instantiates a LocaleStringValue which looks up localized String representations for items in the map using the JComponent defaultLocale. |
|
LocalizableStringValue(java.util.Map<java.lang.Object,java.lang.String> lookup,
java.util.Locale locale)
Instantiates a LocaleStringValue which looks up localized String representations for items in the map using the given Locale. |
Method Summary | |
---|---|
java.util.Locale |
getLocale()
Returns the Locale to use for lookup, guaranteed to be not null. |
java.lang.String |
getString(java.lang.Object value)
Returns a string representation of the given value. |
void |
setLocale(java.util.Locale locale)
Sets the Locale to use for lookup of localized string representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalizableStringValue(java.util.Map<java.lang.Object,java.lang.String> lookup)
lookup
- a map containing Entries of objects and a string key to
look up its string representation in the UIManagerpublic LocalizableStringValue(java.util.Map<java.lang.Object,java.lang.String> lookup, java.util.Locale locale)
lookup
- a map containing Entries of objects and a string key to
look up its string representation in the UIManagerlocale
- the locale to lookup the localized strings, may be null to
denote using JComponent.defaultLocaleMethod Detail |
---|
public java.lang.String getString(java.lang.Object value)
StringValue
PENDING JW: forgot - why not null return guaranteed?
getString
in interface StringValue
value
- the object to present as a string
public final void setLocale(java.util.Locale locale)
locale
- the locale to lookup the localized strings, may be null to
denote using Locale's default.public java.util.Locale getLocale()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |