Package com.logicaldoc.core.util
Class IconSelector
java.lang.Object
com.logicaldoc.core.util.IconSelector
utility class to select an icon based on a file extension
- Author:
- Sebastian Stein
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDetermines if the given extension represents a picturestatic StringselectIcon(String ext) Returns the icon by parsing the provided file extensionstatic StringselectIcon(String ext, boolean shortcut) Returns the icon by parsing the provided file extension
-
Method Details
-
selectIcon
Returns the icon by parsing the provided file extension- Parameters:
ext- file extension- Returns:
- file name of the icon
-
selectIcon
Returns the icon by parsing the provided file extension- Parameters:
ext- the file extension(or file name)shortcut- If the icon displays a shortcut- Returns:
- the icon file name
-
isPicture
Determines if the given extension represents a picture- Parameters:
ext- the file extension- Returns:
- if ext is an image
-