Class MDIIconMapper

java.lang.Object
org.openxava.util.MDIIconMapper

public final class MDIIconMapper extends 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 Details

    • map

      public static String map(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.