java.lang.Object
de.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.ConfigWithFallback
- All Implemented Interfaces:
Config,Serializable,IClusterable
special config that holds two configurations. One base configuration and a fallback configuration.
- Author:
- Michael Haitz
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.agilecoders.wicket.jquery.CombinableConfig
combine, withFallback
-
Constructor Details
-
ConfigWithFallback
Construct.- Parameters:
base- base configurationfallback- fallback configuration
-
-
Method Details
-
toJsonString
- Returns:
- json string representation of this config
-
all
- Returns:
- an immutable map of all key/values
-
isEmpty
public boolean isEmpty()- Returns:
- true, if config map is empty or all keys uses their default value
-
put
Description copied from interface:Configputs a new config to the configuration map. If given value is default value of key then it will be removed. This is necessary to keep the ui code small and clean. Also the given value type will be asserted byIKeyimplementation.- Parameters:
key- mandatory parametervalue- mandatory parameter- Returns:
- same instance for chaining
-
remove
Description copied from interface:Configremoves the given key (and its value) from configuration map.- Parameters:
key- the key to remove
-
get
Description copied from interface:Configreturns the value for the given key. If no value is set, the default value will be returned.- Parameters:
key- The key to read.- Returns:
- the value.
-
contains
Description copied from interface:Configreturns true if given key is set to this config- Parameters:
key- The key to check.- Returns:
- true if key exists.
-