|
||||||||||
| 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.AbstractConfig
public abstract class AbstractConfig
Base configuration class.
| Constructor Summary | |
|---|---|
protected |
AbstractConfig()
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. |
|
protected
|
getString(IKey<T> key)
returns the value as string according to given key. |
|
boolean |
isEmpty()
|
|
protected static
|
newKey(String key,
T defaultValue)
creates a new key. |
|
|
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()
|
|
protected ConfigModel |
wrap(org.apache.wicket.model.IModel<String> model)
Wraps IModel<String> in ConfigModel to serialize it as simple String in the produced JSON. |
|
| 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 |
|---|
protected AbstractConfig()
| Method Detail |
|---|
public final String toJsonString()
public final Map<String,Object> all()
public final boolean isEmpty()
public final <T> AbstractConfig put(IKey<T> key,
T value)
IKey implementation.
key - mandatory parametervalue - mandatory parameter
public <T> boolean contains(IKey<T> key)
Config
key - The key to check.
public final <T> T remove(IKey<T> key)
key - the key to removeprotected final <T> String getString(IKey<T> key)
key - The key to read.
public final <T> T get(IKey<T> key)
key - The key to read.
protected ConfigModel wrap(org.apache.wicket.model.IModel<String> model)
model - The model to wrap.
protected static <T> IKey<T> newKey(String key,
T defaultValue)
key - string representation of this keydefaultValue - The default value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||