java.lang.Object
de.agilecoders.wicket.extensions.markup.html.bootstrap.icon.FontAwesomeSettings

public class FontAwesomeSettings extends Object
This class allows the user to specify the FontAwesome version (5.x or 6.x - defaulting to 6.x). This is relevant for wicket components from `bootstrap-extensions` using FontAwesome icons to reflect the choice of the FontAwesome version made by the user. This approach is required to keep FontAwesome related classes outside `bootstrap-core`.

In order to override the default of FontAwesome 6 to use FontAwesome5, do the following:

 
 FontAwesomeSettings.get(Application.get()).setCssResourceReference(FontAwesome5CssReference.instance());
 
 
  • Constructor Details

    • FontAwesomeSettings

      public FontAwesomeSettings()
  • Method Details

    • get

      public static FontAwesomeSettings get(Application application)
    • set

      public static void set(Application application, FontAwesomeSettings settings)
    • getCssResourceReference

      public de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference getCssResourceReference()
      Returns:
      the css reference to the font awesome version of choice.
    • setCssResourceReference

      public void setCssResourceReference(de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference cssResourceReference)
      Parameters:
      cssResourceReference - The css reference to the font awesome version of choice.
    • getIconType

      public de.agilecoders.wicket.core.markup.html.bootstrap.image.IconType getIconType(FontAwesomeSettings.IconKey iconKey)
      This method should only be used inside the module `bootstrap-extensions`