|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface 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.
<module> <!-- other inherited modules, such as com.google.gwt.user.User --> <inherits name="com.google.gwt.i18n.I18N"/> <!-- additional module settings --> </module>
GWT.create(Class).
Constants| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.google.gwt.i18n.client.Constants |
|---|
Constants.DefaultBooleanValue, Constants.DefaultDoubleValue, Constants.DefaultFloatValue, Constants.DefaultIntValue, Constants.DefaultStringArrayValue, Constants.DefaultStringMapValue, Constants.DefaultStringValue |
| Nested classes/interfaces inherited from interface com.google.gwt.i18n.client.LocalizableResource |
|---|
LocalizableResource.DefaultLocale, LocalizableResource.Description, LocalizableResource.Generate, LocalizableResource.GeneratedFrom, LocalizableResource.GenerateKeys, LocalizableResource.Key, LocalizableResource.Meaning |
| Method Summary | |
|---|---|
boolean |
getBoolean(java.lang.String methodName)
Look up boolean by method name. |
double |
getDouble(java.lang.String methodName)
Look up double by method name. |
float |
getFloat(java.lang.String methodName)
Look up float by method name. |
int |
getInt(java.lang.String methodName)
Look up int by method name. |
java.util.Map<java.lang.String,java.lang.String> |
getMap(java.lang.String methodName)
Look up Map by method name. |
java.lang.String |
getString(java.lang.String methodName)
Look up String by method name. |
java.lang.String[] |
getStringArray(java.lang.String methodName)
Look up String[] by method name. |
| Method Detail |
|---|
boolean getBoolean(java.lang.String methodName)
throws java.util.MissingResourceException
boolean by method name.
methodName - method name
java.util.MissingResourceException - if methodName is not valid
double getDouble(java.lang.String methodName)
throws java.util.MissingResourceException
double by method name.
methodName - method name
java.util.MissingResourceException - if methodName is not valid
float getFloat(java.lang.String methodName)
throws java.util.MissingResourceException
float by method name.
methodName - method name
java.util.MissingResourceException - if methodName is not valid
int getInt(java.lang.String methodName)
throws java.util.MissingResourceException
int by method name.
methodName - method name
java.util.MissingResourceException - if methodName is not valid
java.util.Map<java.lang.String,java.lang.String> getMap(java.lang.String methodName)
throws java.util.MissingResourceException
Map by method name.
methodName - method name
java.util.MissingResourceException - if methodName is not valid
java.lang.String getString(java.lang.String methodName)
throws java.util.MissingResourceException
String by method name.
methodName - method name
java.util.MissingResourceException - if methodName is not valid
java.lang.String[] getStringArray(java.lang.String methodName)
throws java.util.MissingResourceException
String[] by method name.
methodName - method name
java.util.MissingResourceException - if methodName is not valid
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||