Package org.exoplatform.webui.cssfile
Class CssClassManager
java.lang.Object
org.exoplatform.webui.cssfile.CssClassManager
- All Implemented Interfaces:
org.picocontainer.Startable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCSSClassByFileName(String fileName, CssClassManager.ICON_SIZE size) Returns the icon CSS class name of file.getCSSClassByFileType(String fileType, CssClassManager.ICON_SIZE size) Returns the icon CSS class name of file.voidInitialize icon CSS class of files by ComponentPlugin.voidregisterCssClassPlugin(CssClassPlugin classPlugin) Register ComponentPlugin for initialize icon CSS class of files.voidstart()voidstop()
-
Field Details
-
DEFAULT_CSS_ICON_FILE
- See Also:
-
-
Constructor Details
-
CssClassManager
public CssClassManager(org.exoplatform.container.xml.InitParams params)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-
registerCssClassPlugin
Register ComponentPlugin for initialize icon CSS class of files.- Parameters:
classPlugin-- Since:
- 4.0.1
-
initCssClassIconFile
public void initCssClassIconFile()Initialize icon CSS class of files by ComponentPlugin.- Since:
- 4.0.1
-
getCSSClassByFileType
Returns the icon CSS class name of file.- Parameters:
fileType- - The file's typesize- - The size of icon, if it is null, the value default is 16x16- Returns:
- Since:
- 4.0.1
-
getCSSClassByFileName
Returns the icon CSS class name of file.- Parameters:
fileName- - The name of file contain file extensionsize- - The size of icon, if it is null, the value default is 16x16- Returns:
- Since:
- 4.0.1
-
getClassIconJsonData
-