Package de.agilecoders.wicket.jquery
Class CombinableConfig
- java.lang.Object
-
- de.agilecoders.wicket.jquery.CombinableConfig
-
- All Implemented Interfaces:
Config,Serializable,IClusterable
- Direct Known Subclasses:
AbstractConfig,ConfigWithFallback
public abstract class CombinableConfig extends Object implements Config
- Author:
- Michael Haitz
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCombinableConfig()Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CombinableConfigcombine(Config... fallbackConfigs)combines this configuration with given ones.CombinableConfigwithFallback(Config fallback)uses given config as fallback if a key isn't set in this config.
-
-
-
Method Detail
-
withFallback
public CombinableConfig withFallback(Config fallback)
uses given config as fallback if a key isn't set in this config.- Parameters:
fallback- the fallback configuration- Returns:
- this instance for chaining
-
combine
public CombinableConfig combine(Config... fallbackConfigs)
combines this configuration with given ones. Given configuration doesn't override existing one.- Parameters:
fallbackConfigs- the configurations to combine- Returns:
- this instance for chaining
-
-