|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdtaus.core.container.Text
public class Text
Localized text.
| Constructor Summary | |
|---|---|
Text()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Text()
| Method Detail |
|---|
public Object clone()
clone in class Objectpublic 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.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||