Class StyleAttributeModifier

All Implemented Interfaces:
Serializable, IComponentAwareEventSink, IComponentAwareHeaderContributor, IClusterable

public abstract class StyleAttributeModifier extends AttributeAppender
An AttributeModifier specialized in managing the CSS style attribute
See Also:
  • Constructor Details

  • Method Details

    • newValue

      protected Serializable newValue(String currentValue, String appendValue)
      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 AttributeAppender
      Parameters:
      currentValue - The current attribute value. This value might be null!
      appendValue - The replacement value. This value might be null!
      Returns:
      The value that should replace the current attribute value
    • update

      protected abstract Map<String,String> update(Map<String,String> oldStyles)
      Callback to update the CSS class values for a tag.
      Parameters:
      oldStyles - A map with the old style key/values
      Returns:
      A map with the new style key/values