public class CssClassManager extends Object implements org.picocontainer.Startable
| Modifier and Type | Class and Description |
|---|---|
static class |
CssClassManager.ICON_SIZE |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CSS_ICON_FILE |
| Constructor and Description |
|---|
CssClassManager(org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassIconJsonData() |
String |
getCSSClassByFileName(String fileName,
CssClassManager.ICON_SIZE size)
Returns the icon CSS class name of file.
|
String |
getCSSClassByFileType(String fileType,
CssClassManager.ICON_SIZE size)
Returns the icon CSS class name of file.
|
void |
initCssClassIconFile()
Initialize icon CSS class of files by ComponentPlugin.
|
void |
registerCssClassPlugin(CssClassPlugin classPlugin)
Register ComponentPlugin for initialize icon CSS class of files.
|
void |
start() |
void |
stop() |
public static final String DEFAULT_CSS_ICON_FILE
public CssClassManager(org.exoplatform.container.xml.InitParams params)
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void registerCssClassPlugin(CssClassPlugin classPlugin)
classPlugin - public void initCssClassIconFile()
public String getCSSClassByFileType(String fileType, CssClassManager.ICON_SIZE size)
fileType - - The file's typesize - - The size of icon, if it is null, the value default is 16x16public String getCSSClassByFileName(String fileName, CssClassManager.ICON_SIZE size)
fileName - - The name of file contain file extensionsize - - The size of icon, if it is null, the value default is 16x16public String getClassIconJsonData()
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.