com.jwebmp.plugins.materialicons.MDIIcon Maven / Gradle / Ivy
package com.jwebmp.plugins.materialicons;
import com.jwebmp.core.base.ComponentHierarchyBase;
import com.jwebmp.core.base.html.Italic;
import com.jwebmp.core.base.interfaces.IIcon;
/**
* A material design icon using an older version - classes only web fonts. prefixed with mdi-
*/
public class MDIIcon>
extends Italic
implements IIcon
{
private MDIIcons icon;
public MDIIcon()
{
this(null);
}
public MDIIcon(MDIIcons icon)
{
this.icon = icon;
addClass(icon);
}
@Override
public void preConfigure()
{
if(!isConfigured())
{
addClass(icon);
}
super.preConfigure();
}
@Override
public String getClassName()
{
return icon.toString();
}
@Override
public ComponentHierarchyBase getIconComponent()
{
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy