public class IconLibraryRegistry extends org.fujion.common.AbstractRegistry<String,IIconLibrary> implements org.springframework.beans.factory.config.BeanPostProcessor
| Modifier and Type | Method and Description |
|---|---|
IIconLibrary |
get(String library) |
String |
getDefaultLibrary()
Returns the default icon library.
|
static IconLibraryRegistry |
getInstance() |
protected String |
getKey(IIconLibrary item) |
List<String> |
getMatching(String library,
String iconName,
String dimensions)
Returns the paths to matching icon resources given name, dimensions, and library name, any
one of which may contain wildcard characters.
|
static IconLibraryRegistry |
init(String defaultLibrary,
String defaultDimensions) |
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
void |
register(IIconLibrary library) |
clear, contains, getAll, iterator, size, unregister, unregisterByKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static IconLibraryRegistry init(String defaultLibrary, String defaultDimensions)
public static IconLibraryRegistry getInstance()
public void register(IIconLibrary library)
register in class org.fujion.common.AbstractRegistry<String,IIconLibrary>public IIconLibrary get(String library)
get in class org.fujion.common.AbstractRegistry<String,IIconLibrary>protected String getKey(IIconLibrary item)
getKey in class org.fujion.common.AbstractRegistry<String,IIconLibrary>public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic String getDefaultLibrary()
public List<String> getMatching(String library, String iconName, String dimensions)
library - Library name containing the icon (e.g., "silk"). If null, all libraries are
searched.iconName - Name of the requested icon (e.g., "help*.png").dimensions - Dimensions of the requested icon (e.g., "16x*").Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.