public class IconUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.springframework.util.AntPathMatcher |
matcher |
| Modifier and Type | Method and Description |
|---|---|
static String |
getIconPath(String icon)
Returns the path to the icon resource.
|
static String |
getIconPath(String library,
String icon,
String dimensions)
Returns the path to the icon resource given its name, dimensions, and library name.
|
static List<String> |
getMatching(String library,
String icon,
String dimensions)
Returns the paths to matching icon resources given name, dimensions, and library name, any
one of which may contain wildcard characters.
|
public static String getIconPath(String icon)
Returns the path to the icon resource.
For example: getIconPath("help.png") or getIconPath("silk:help:16x16")
Note: This method signature is exposed as the getIconPath tag library
function.
icon - An icon name or specifier.public static String getIconPath(String library, String icon, String dimensions)
Note: This method signature is exposed as the getIconPathEx tag library
function.
icon - Name of the requested icon (e.g., "help.png").library - Name of the library containing the icon (e.g., "silk"). Specify null to use
default.dimensions - Dimensions of the requested icon (e.g., "16x16"). Specify null to use
default.public static List<String> getMatching(String library, String icon, String dimensions)
library - Library name containing the icon (e.g., "silk"). Specify null to use default.icon - An icon name or specifier (e.g., "help.png" or "silk:help:16x16").dimensions - Dimensions of the requested icon (e.g., "16x16"). Specify null to use
default.Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.