com.google.gwt.i18n.client.ConstantsWithLookup |
Like Constants
, a tag interface that
facilitates locale-sensitive, compile-time binding of constant values
supplied from properties files with the added ability to look up constants at
runtime with a string key.
ConstantsWithLookup
extends
Constants
and is identical in behavior,
adding only a family of special-purpose lookup methods such as
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
.
{@gwt.include com/google/gwt/examples/i18n/InheritsExample.gwt.xml}
create(Class)
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Look up
boolean by method name. | |||||||||||
Look up
double by method name. | |||||||||||
Look up
float by method name. | |||||||||||
Look up
int by method name. | |||||||||||
Look up
Map by method name. | |||||||||||
Look up
String by method name. | |||||||||||
Look up
String[] by method name. |
Look up boolean
by method name.
methodName | method name |
---|
MissingResourceException | if methodName is not valid |
---|
Look up double
by method name.
methodName | method name |
---|
MissingResourceException | if methodName is not valid |
---|
Look up float
by method name.
methodName | method name |
---|
MissingResourceException | if methodName is not valid |
---|
Look up int
by method name.
methodName | method name |
---|
MissingResourceException | if methodName is not valid |
---|
Look up Map
by method name.
methodName | method name |
---|
MissingResourceException | if methodName is not valid |
---|
Look up String
by method name.
methodName | method name |
---|
MissingResourceException | if methodName is not valid |
---|
Look up String[]
by method name.
methodName | method name |
---|
MissingResourceException | if methodName is not valid |
---|