|
||||||||||
| 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(Map<Object,String> lookup)
Instantiates a LocaleStringValue which looks up localized String representations for items in the map using the JComponent defaultLocale. |
|
LocalizableStringValue(Map<Object,String> lookup,
Locale locale)
Instantiates a LocaleStringValue which looks up localized String representations for items in the map using the given Locale. |
|
LocalizableStringValue(Map<Object,String> lookup,
String prefix)
Instantiates a LocaleStringValue which looks up localized String representations for items in the map using the JComponent defaultLocale. |
|
LocalizableStringValue(Map<Object,String> lookup,
String prefix,
Locale locale)
Instantiates a LocaleStringValue which looks up localized String representations for items in the map using the given Locale. |
|
| Method Summary | |
|---|---|
Locale |
getLocale()
Returns the Locale to use for lookup, guaranteed to be not null. |
String |
getString(Object value)
Returns a string representation of the given value. |
void |
setLocale(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(Map<Object,String> lookup)
lookup - a map containing Entries of objects and a string key to
look up its string representation in the UIManager
public LocalizableStringValue(Map<Object,String> lookup,
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.defaultLocale
public LocalizableStringValue(Map<Object,String> lookup,
String prefix)
lookup - a map containing Entries of objects and a string key to
look up its string representation in the UIManagerprefix - a common prefix for all string keys in the map, may be null
to denote that the keys should be use as are
public LocalizableStringValue(Map<Object,String> lookup,
String prefix,
Locale locale)
lookup - a map containing Entries of objects and a string key to
look up its string representation in the UIManagerprefix - a common prefix for all string keys in the map, may be null
to denote that the keys should be use as arelocale - the locale to lookup the localized strings, may be null to
denote using JComponent.defaultLocale| Method Detail |
|---|
public String getString(Object value)
StringValuePENDING JW: forgot - why not null return guaranteed?
getString in interface StringValuevalue - the object to present as a string
public final void setLocale(Locale locale)
locale - the locale to lookup the localized strings, may be null to
denote using Locale's default.public Locale getLocale()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||