
public class Text extends Object implements Cloneable, Serializable
| Constructor and Description |
|---|
Text()
Creates a new
Text instance. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates and returns a copy of this object.
|
Locale[] |
getLocales()
Gets all locales for which the instance holds values.
|
String |
getValue()
Gets the value of the text for the default language.
|
String |
getValue(Locale locale)
Gets the value of the text for a given locale.
|
void |
setValue(Locale locale,
String value)
Setter for property
value for a given locale. |
void |
setValue(String value)
Setter for property
value. |
String |
toString()
Returns a string representation of the object.
|
public Text()
Text instance.public Object clone()
public Locale[] getLocales()
public String getValue()
null.public String getValue(Locale locale)
locale - the locale of the value to return.locale or null.NullPointerException - if locale is null.public void setValue(Locale locale, String value)
value for a given locale.locale - the locale to store value with.value - the new value of the text for locale.NullPointerException - if locale is null.public void setValue(String value)
value.value - the new value of the text for the default language.Copyright © 2005-2012 jDTAUS. All Rights Reserved.