Class AbstractIconSet
java.lang.Object
net.thevpc.common.prs.iconset.AbstractIconSet
- All Implemented Interfaces:
IconSet
- Direct Known Subclasses:
DefaultIconSet, MultiIconSet
-
Nested Class Summary
Nested classes/interfaces inherited from interface IconSet
IconSet.ErrorType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultIcon(String id) getIcon(String icon, IconSet.ErrorType errorType) getIconById(String id) getIconByPath(String path) abstract StringgetIconPath(String id) getId()getName()booleanvoidsetCacheEnabled(boolean cacheEnabled) voidsetDefaultIconPath(String defaultIconPath) protected voidvoidprotected voidsetLoggerProvider(LoggerProvider loggerProvider) protected voidvoidsetUnknownIconPath(String unknownIconPath) protected Iconwarn(String icon, IconSet.ErrorType errorType, IconNotFoundException e) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IconSet
loadImageIcon
-
Constructor Details
-
AbstractIconSet
protected AbstractIconSet()
-
-
Method Details
-
setId
-
setLoggerProvider
-
setName
-
getId
-
getName
-
getIconByPath
- Specified by:
getIconByPathin interfaceIconSet- Throws:
IconNotFoundException
-
getIcon
- Specified by:
getIconin interfaceIconSet- Throws:
IconNotFoundException
-
getIconById
- Throws:
IconNotFoundException
-
getUnknowIcon
- Specified by:
getUnknowIconin interfaceIconSet- Throws:
IconNotFoundException
-
getDefaultIcon
- Throws:
IconNotFoundException
-
getIconPath
- Specified by:
getIconPathin interfaceIconSet- Throws:
MissingResourceException
-
getIcon
- Specified by:
getIconin interfaceIconSet- Throws:
IconNotFoundException
-
warn
protected Icon warn(String icon, IconSet.ErrorType errorType, IconNotFoundException e) throws IconNotFoundException - Throws:
IconNotFoundException
-
getIconE
- Specified by:
getIconEin interfaceIconSet- Throws:
IconNotFoundException
-
getIconR
- Specified by:
getIconRin interfaceIconSet- Throws:
IconNotFoundException
-
getIconW
- Specified by:
getIconWin interfaceIconSet- Throws:
IconNotFoundException
-
getIconS
- Specified by:
getIconSin interfaceIconSet- Throws:
IconNotFoundException
-
getLocale
-
setLocale
-
getUnknownIconPath
-
setUnknownIconPath
-
getDefaultIconPath
-
setDefaultIconPath
-
isCacheEnabled
public boolean isCacheEnabled() -
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled)
-