Class ClassAttributeModifier

    • Method Detail

      • 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 Set<Stringupdate​(Set<String> oldClasses)
        Callback to update the CSS class values for a tag.
        Parameters:
        oldClasses - A set with the old class values
        Returns:
        A set with the new class values