Module wicket.bootstrap.extensions
Class FontAwesome6IconTypeBuilder
java.lang.Object
de.agilecoders.wicket.extensions.markup.html.bootstrap.icon.FontAwesome6IconTypeBuilder
Deprecated.
Important: To use font-awesome 6.x you need to declare the Maven/Gradle dependency
in your application pom.xml/build.gradle, for example:
<dependency>
<groupId>org.webjars</groupId>
<artifactId>font-awesome</artifactId>
<version>6.2.0</version>
</dependency>
A builder to build
Examples :
<dependency>
<groupId>org.webjars</groupId>
<artifactId>font-awesome</artifactId>
<version>6.2.0</version>
</dependency>
A builder to build
FontAwesome6IconType Examples :
-
To rotate an icon 90° :
FontAwesome6IconTypeBuilder.on(FontAwesome6Graphic.key).rotate(Rotation.rotate_90).build() -
To spin an icon :
FontAwesome6IconTypeBuilder.on(FontAwesome6Graphic.key).spin().build() - To resize an icon 4 times :
FontAwesome6IconTypeBuilder.on(FontAwesome6Graphic.key).size(Size.four).build() -
All together :
FontAwesome6IconTypeBuilder.on(FontAwesome6Graphic.key).size(Size.four).spin().rotate(Rotation.rotate_90).build()
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.All icons of style 'brand' available for free in Font Awesome.static interfaceDeprecated.static enumDeprecated.All icons of style 'regular' available for free in Font Awesome.static enumDeprecated.All icons of style 'solid' available for free in Font Awesome.static enumDeprecated.Rotation that can be done on an icon.static enumDeprecated.Sizes on an icon. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.Deprecated.make the icon fixed widthfw()Deprecated.An alias forfixedWidth()static FontAwesome6IconTypeBuilderon(FontAwesome6IconTypeBuilder.FontAwesome6Graphic fontAwesomeGraphic) Deprecated.rotate(FontAwesome6IconTypeBuilder.Rotation rotation) Deprecated.Deprecated.spin()Deprecated.make the icon spin
-
Method Details
-
on
public static FontAwesome6IconTypeBuilder on(FontAwesome6IconTypeBuilder.FontAwesome6Graphic fontAwesomeGraphic) Deprecated.- Parameters:
fontAwesomeGraphic- icon to use in the builder- Returns:
- a builder for this icon
-
build
Deprecated.- Returns:
- build the icon
-
rotate
Deprecated.- Parameters:
rotation- rotation to apply to the icon- Returns:
- the builder
-
size
Deprecated.- Parameters:
size- size to apply to the icon- Returns:
- the builder
-
spin
Deprecated.make the icon spin- Returns:
- the builder
-
fixedWidth
Deprecated.make the icon fixed width- Returns:
- the builder
-
fw
Deprecated.An alias forfixedWidth()- Returns:
- the builder
-