tools.dynamia.zk.ui.ZIconsProvider Maven / Gradle / Ivy
package tools.dynamia.zk.ui;
import tools.dynamia.ui.icons.Icon;
import tools.dynamia.ui.icons.InstallIcons;
/**
* Should be enabled using @{@link org.springframework.context.annotation.Bean} annotation in a Configuration class
*/
public class ZIconsProvider extends FontAwesomeIconsProvider {
@Override
protected String getIconsPath() {
return "/META-INF/dynamia/zk-icons.properties";
}
@Override
protected String getIconsPrefix() {
return "z-icon-";
}
@Override
protected Icon newIcon(String name, String internalName) {
return new FAIcon(name, getIconsPrefix() + internalName);
}
}