Class IconUtils
java.lang.Object
overit.geocallapp.utilities.ux.ui.util.IconUtils
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 -
Method Summary
-
Constructor Details
-
IconUtils
public IconUtils()
-
-
Method Details
-
getIcon
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 pathwidth- The width of the icon in pixels- Returns:
- An IMG object configured for the specified icon
-
getIcon
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
-