org.exoplatform.forum.common.webui.cssfile
Class CssClassManager
java.lang.Object
org.exoplatform.forum.common.webui.cssfile.CssClassManager
- All Implemented Interfaces:
- org.picocontainer.Startable
public class CssClassManager
- extends Object
- implements org.picocontainer.Startable
|
Constructor Summary |
CssClassManager(org.exoplatform.container.xml.InitParams params)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CSS_ICON_FILE
public static final String DEFAULT_CSS_ICON_FILE
- See Also:
- Constant Field Values
CssClassManager
public CssClassManager(org.exoplatform.container.xml.InitParams params)
start
public void start()
- Specified by:
start in interface org.picocontainer.Startable
stop
public void stop()
- Specified by:
stop in interface org.picocontainer.Startable
registerCssClassPlugin
public void registerCssClassPlugin(CssClassPlugin classPlugin)
- 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
public String getCSSClassByFileType(String fileType,
CssClassManager.ICON_SIZE size)
- 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
public String getCSSClassByFileName(String fileName,
CssClassManager.ICON_SIZE size)
- 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
Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.