|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.agilecoders.wicket.jquery.CombinableConfig
de.agilecoders.wicket.jquery.ConfigWithFallback
public class ConfigWithFallback
special config that holds two configurations. One base configuration and a fallback configuration.
| Constructor Summary | |
|---|---|
ConfigWithFallback(Config base,
Config fallback)
Construct. |
|
| Method Summary | ||
|---|---|---|
Map<String,Object> |
all()
|
|
|
contains(IKey<T> key)
returns true if given key is set to this config |
|
|
get(IKey<T> key)
returns the value for the given key. |
|
boolean |
isEmpty()
|
|
|
put(IKey<T> key,
T value)
puts a new config to the configuration map. |
|
|
remove(IKey<T> key)
removes the given key (and its value) from configuration map. |
|
String |
toJsonString()
|
|
| Methods inherited from class de.agilecoders.wicket.jquery.CombinableConfig |
|---|
combine, withFallback |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigWithFallback(Config base,
Config fallback)
base - base configurationfallback - fallback configuration| Method Detail |
|---|
public String toJsonString()
public Map<String,Object> all()
public boolean isEmpty()
public <T> ConfigWithFallback put(IKey<T> key,
T value)
ConfigIKey implementation.
key - mandatory parametervalue - mandatory parameter
public <T> T remove(IKey<T> key)
Config
key - the key to removepublic <T> T get(IKey<T> key)
Config
key - The key to read.
public <T> boolean contains(IKey<T> key)
Config
key - The key to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||