wicket.markup.html
Class BodyContainer.AppendingAttributeModifier

java.lang.Object
  extended by wicket.behavior.AbstractBehavior
      extended by wicket.AttributeModifier
          extended by wicket.markup.html.BodyContainer.AppendingAttributeModifier
All Implemented Interfaces:
java.io.Serializable, IBehavior
Enclosing class:
BodyContainer

public static class BodyContainer.AppendingAttributeModifier
extends AttributeModifier

Little helper

See Also:
Serialized Form

Field Summary
 
Fields inherited from class wicket.AttributeModifier
VALUELESS_ATTRIBUTE_ADD, VALUELESS_ATTRIBUTE_REMOVE
 
Constructor Summary
BodyContainer.AppendingAttributeModifier(java.lang.String attribute, IModel replaceModel)
          Construct.
 
Method Summary
protected  java.lang.String newValue(java.lang.String currentValue, java.lang.String replacementValue)
          Gets the value that should replace the current attribute value.
 
Methods inherited from class wicket.AttributeModifier
detachModel, getReplaceModel, isEnabled, onComponentTag, replaceAttibuteValue, setEnabled, toString
 
Methods inherited from class wicket.behavior.AbstractBehavior
bind, cleanup, exception, onException, onRendered, rendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BodyContainer.AppendingAttributeModifier

public BodyContainer.AppendingAttributeModifier(java.lang.String attribute,
                                                IModel replaceModel)
Construct.

Parameters:
attribute -
replaceModel -
Method Detail

newValue

protected java.lang.String newValue(java.lang.String currentValue,
                                    java.lang.String replacementValue)
Description copied from class: AttributeModifier
Gets the value that should replace the current attribute value. This gives users the ultimate means to customize what will be used as the attribute value. For instance, you might decide to append the replacement value to the current instead of just replacing it as is Wicket's default.

Overrides:
newValue in class AttributeModifier
Parameters:
currentValue - The current attribute value. This value might be null!
replacementValue - The replacement value. This value might be null!
Returns:
The value that should replace the current attribute value


Copyright © 2004-2007 Wicket developers. All Rights Reserved.