Package com.saperion.ngc.resultset
Class CustomIcon
java.lang.Object
com.saperion.ngc.resultset.CustomIcon
Utility class used to handle custom icons in result list.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks if a custom icon with the specified name exists in the custom-icons folder.static org.zkoss.zul.Image
Return anImage
containing the custom image.static org.zkoss.zul.Image
updateImage
(String customIcon, org.zkoss.zul.Image image) Updates the content of the provided image with the specified custom icon.
-
Method Details
-
exists
Checks if a custom icon with the specified name exists in the custom-icons folder.- Parameters:
customIcon
- the value contained in SYSCUSTOMICONNAME. Can contain path and extension. Only the base-name of the file will be used to check if the icon exists.- Returns:
- true if icon exists
-
getImage
Return anImage
containing the custom image. If the custom image does not exist, an empty image is returned.- Parameters:
customIcon
- the custom icon to load as image- Returns:
- image with custom icon or empty image
-
updateImage
Updates the content of the provided image with the specified custom icon. If no matching custom icon was found, the original image is returned.- Parameters:
customIcon
- custom icon to loadimage
- image to update- Returns:
- updated image
-