public abstract class ClassAttributeModifier extends AttributeAppender
AttributeModifier.ValuelessAttributeAddModel, AttributeModifier.ValuelessAttributeRemoveModel
VALUELESS_ATTRIBUTE_ADD, VALUELESS_ATTRIBUTE_REMOVE
Constructor and Description |
---|
ClassAttributeModifier()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
newValue(String currentValue,
String appendValue)
Gets the value that should replace the current attribute value.
|
protected abstract Set<String> |
update(Set<String> oldClasses)
Callback to update the CSS class values for a tag.
|
getSeparator, setSeparator, toString
append, append, detach, getAttribute, getReplaceModel, onComponentTag, prepend, prepend, remove, replace, replace, replaceAttributeValue
afterRender, beforeRender, bind, canCallListenerInterface, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove, renderHead, unbind
protected String newValue(String currentValue, String appendValue)
AttributeModifier
newValue
in class AttributeAppender
currentValue
- The current attribute value. This value might be null!appendValue
- The replacement value. This value might be null!Copyright © 2006–2019 Apache Software Foundation. All rights reserved.