Class ListItemCssClassHelper

java.lang.Object
de.agilecoders.wicket.core.util.ListItemCssClassHelper

public class ListItemCssClassHelper extends Object
A helper class for ListItems that need to add CSS classes to them. Depending on their parent configuration the item should add the CssClassNameAppender or assume it is already added
  • Constructor Details

    • ListItemCssClassHelper

      public ListItemCssClassHelper()
  • Method Details

    • onInitialize

      public static void onInitialize(Component component, String... cssClasses)
      The logic that should be executed at Component.onInitialize()
      Parameters:
      component - The list item
      cssClasses - The CSS classes to add to the component
    • onConfigure

      public static void onConfigure(Component component, String... cssClasses)
      The logic that should be executed at Component.onConfigure()
      Parameters:
      component - The list item
      cssClasses - The CSS classes to add to the component