public interface ICssClassNameModifier
extends org.apache.wicket.util.io.IClusterable
ICssClassNameModifier provides an interface to abstract
the styling of a component and the rendering of the class attribute.
This interface can be used with a Enum:
public enum Color implements {
Red, Blue;
public CssClassNameAppender newCssClassNameModifier() {
return new CssClassNameAppender(name());
}
}
public MyColoredComponent extends Component {
public MyColoredComponent(String id, Color color) {
super(id);
add(color.newCssClassNameModifier());
}
}
| Modifier and Type | Method and Description |
|---|---|
org.apache.wicket.AttributeModifier |
newCssClassNameModifier() |
Copyright © 2013 agilecoders.de. All Rights Reserved.