|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=PARAMETER) public static @interface Messages.PluralCount
Provides multiple plural forms based on a count. The selection of which plural form is performed by a PluralRule implementation. This annotation is applied to a single parameter of a Messages subinterface and indicates that parameter is to be used to choose the proper plural form of the message. The parameter chosen must be of type short or int. Optionally, a class literal referring to a PluralRule implementation can be supplied as the argument if the standard implementation is insufficient.
Example:
@DefaultMessage("You have {0} widgets.")
@AlternateMessage({"one", "You have one widget."})
String example(@PluralCount int count)
Optional Element Summary | |
---|---|
java.lang.Class<? extends PluralRule> |
value
The PluralRule implementation to use for this message. |
public abstract java.lang.Class<? extends PluralRule> value
PluralRule.class
is used as a default value here, which will
be replaced during code generation with the default implementation.
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |