ConstantsWithLookup
extends
Constants and is identical in behavior,
adding only a family of special-purpose lookup methods such as
ConstantsWithLookup.getString(String).
It is generally preferable to extend Constants
rather than
ConstantsWithLookup
because ConstantsWithLookup
forces all constants to be retained in the compiled script, preventing the
GWT compiler from pruning unused constant accessors.
com.google.gwt.i18n.I18N
.
<module> <!-- other inherited modules, such as com.google.gwt.user.User --> <inherits name="com.google.gwt.i18n.I18N"/> <!-- additional module settings --> </module>
getBoolean(String) | Look up boolean by method name. |
getDouble(String) | Look up double by method name. |
getFloat(String) | Look up float by method name. |
getInt(String) | Look up int by method name. |
getMap(String) | Look up Map by method name. |
getString(String) | Look up String by method name. |
getStringArray(String) | Look up String[] by method name. |
boolean
by method name.double
by method name.float
by method name.int
by method name.Map
by method name.String
by method name.String[]
by method name.