public class CssClassNameModifier
extends org.apache.wicket.AttributeModifier
<span class="className" wicket:id="foo">
can be modified with these CssClassNameAppender:
link.add(new CssClassNameModifier("className1"));
link.add(new CssClassNameModifier(Arrays.asList("className2","className3")));
this will result in the following markup:
<span class="className2 className3" wicket:id="foo" >
| Constructor and Description |
|---|
CssClassNameModifier(ICssClassNameProvider cssClassNameProvider)
Constructor.
|
CssClassNameModifier(org.apache.wicket.model.IModel<String> appendModel)
Creates an AttributeModifier that appends the appendModel's value to the current value of the
class attribute, and will add the attribute when it is not there already.
|
CssClassNameModifier(List<String> appendValueList)
Constructor.
|
CssClassNameModifier(String... appendValue)
Constructor.
|
append, append, detach, getAttribute, getReplaceModel, newValue, onComponentTag, prepend, prepend, remove, replace, replace, replaceAttributeValue, toStringpublic CssClassNameModifier(org.apache.wicket.model.IModel<String> appendModel)
appendModel - the model supplying a single value to appendpublic CssClassNameModifier(String... appendValue)
appendValue - one or more values to appendpublic CssClassNameModifier(List<String> appendValueList)
appendValueList - a list of values to appendpublic CssClassNameModifier(ICssClassNameProvider cssClassNameProvider)
cssClassNameProvider - a css class name providerCopyright © 2013 agilecoders.de. All Rights Reserved.