org.devocative.wickomp.wrcs.FontAwesomeBehavior Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wickomp Show documentation
Show all versions of wickomp Show documentation
Web components for Apache Wicket
package org.devocative.wickomp.wrcs;
import org.apache.wicket.Component;
import org.apache.wicket.behavior.Behavior;
import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.markup.head.IHeaderResponse;
public class FontAwesomeBehavior extends Behavior {
private static final long serialVersionUID = 5411730158972972793L;
private static HeaderItem CSS = Resource.getCommonCSS("fontawesome/css/font-awesome.min.css");
public static void setCSS(HeaderItem CSS) {
FontAwesomeBehavior.CSS = CSS;
}
@Override
public void renderHead(Component component, IHeaderResponse response) {
response.render(CSS);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy