|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
Messages.AlternateMessage
instead
@Retention(value=RUNTIME) @Target(value=METHOD) @Documented @Deprecated public static @interface Messages.PluralText
Provides multiple plural forms based on a count. The selection of which plural form to use is based on the value of the argument marked PluralCount, which may also specify an alternate plural rule to use.
Example:
@DefaultMessage("You have {0} widgets.")
@PluralText({"one", "You have one widget.")
String example(@PluralCount int count)
Required Element Summary | |
---|---|
java.lang.String[] |
value
Deprecated. An array of pairs of strings containing the strings for different plural forms. |
Element Detail |
---|
public abstract java.lang.String[] value
@DefaultMessage("{0} widgets")
@PluralText({"none", "No widgets", "one", "One widget"})
"other" must not be included in this array as it will map to the
DefaultMessage value.
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |