Class MDIIconMapper


  • public final class MDIIconMapper
    extends java.lang.Object
    Maps legacy Material Design Icons (pre v7) names to current ones (v7+) so existing controllers.xml from applications keep working without changes. Mapping is loaded from classpath resource "/xava-mdi-icon-mapping.properties". Each line must follow the format: old-name=new-name Applications can override or extend this file by adding a resource with the same path in their own classpath (it will shadow the core one). If no mapping is found for a given icon, the original name is returned.
    Since:
    7.6
    Author:
    Javier Paniza
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String map​(java.lang.String icon)
      Returns the mapped icon name for the given legacy icon, or the same value if there is no mapping.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • map

        public static java.lang.String map​(java.lang.String icon)
        Returns the mapped icon name for the given legacy icon, or the same value if there is no mapping. Accepts null and returns null.