Class IconUtils

java.lang.Object
overit.geocallapp.utilities.ux.ui.util.IconUtils

public class IconUtils extends Object
Utility class for creating icon elements in the UI. Provides methods to create IMG objects for Material Design icons and other icon types.
Since:
21.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.ecs.html.IMG
    getIcon(String iconName)
    Creates an IMG element for the specified icon name with default size.
    static org.apache.ecs.html.IMG
    getIcon(String iconName, int width)
    Creates an IMG element for icons with specified width.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IconUtils

      public IconUtils()
  • Method Details

    • getIcon

      public static org.apache.ecs.html.IMG getIcon(String iconName, int width)
      Creates an IMG element for icons with specified width. Supports both Material Design icons (md: prefix) and traditional icon paths.
      Parameters:
      iconName - The icon name, can be with md: prefix or traditional path
      width - The width of the icon in pixels
      Returns:
      An IMG object configured for the specified icon
    • getIcon

      public static org.apache.ecs.html.IMG getIcon(String iconName)
      Creates an IMG element for the specified icon name with default size. Supports Material Design icons with md: prefix and regular icon paths.
      Parameters:
      iconName - The icon name, can be with md: prefix (e.g., "md:edit") or regular path
      Returns:
      An IMG object configured for the specified icon, or null if iconName is null/empty