Module wicket.bootstrap.extensions
Class FontAwesomeSettings
java.lang.Object
de.agilecoders.wicket.extensions.markup.html.bootstrap.icon.FontAwesomeSettings
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());
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPre-canned Icons that need to be either FontAwesome 5 or 6 specific, only use inside boostrap-extensions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FontAwesomeSettingsget(Application application) de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReferencede.agilecoders.wicket.core.markup.html.bootstrap.image.IconTypegetIconType(FontAwesomeSettings.IconKey iconKey) This method should only be used inside the module `bootstrap-extensions`static voidset(Application application, FontAwesomeSettings settings) voidsetCssResourceReference(de.agilecoders.wicket.webjars.request.resource.WebjarsCssResourceReference cssResourceReference)
-
Constructor Details
-
FontAwesomeSettings
public FontAwesomeSettings()
-
-
Method Details
-
get
-
set
-
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`
-