Package org.javlo.component.config
Class ComponentConfig
- java.lang.Object
-
- org.javlo.component.config.ComponentConfig
-
public class ComponentConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static ComponentConfigEMPTY_INSTANCEprotected static Loggerloggercreate a static logger.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetComplexity(int defaultComplexity)StringgetDefaultRenderer()StringgetDefaultStyle()static ComponentConfiggetInstance()static ComponentConfiggetInstance(ContentContext ctx, String type)StringgetProperty(String key, String defaultValue)StringgetRAWConfig(ContentContext ctx, Template currentTemplate, String type)Map<String,String>getRenderes()String[]getStyleLabelList()String[]getStyleList()StringgetStyleTitle()booleanisChooseBackgoundColor()booleanisChooseTextColor()booleanisChooseTextPosition()booleanisClickable()booleanisConfigFound()booleanisDataFeedBack()booleanisFontStyle()booleanisPreviewEditable()booleanneedJS()
-
-
-
Field Detail
-
EMPTY_INSTANCE
public static final ComponentConfig EMPTY_INSTANCE
-
logger
protected static Logger logger
create a static logger.
-
-
Method Detail
-
getInstance
public static ComponentConfig getInstance()
-
getInstance
public static ComponentConfig getInstance(ContentContext ctx, String type)
-
getRAWConfig
public String getRAWConfig(ContentContext ctx, Template currentTemplate, String type) throws IOException
- Throws:
IOException
-
getDefaultRenderer
public String getDefaultRenderer()
-
getStyleLabelList
public String[] getStyleLabelList()
-
getDefaultStyle
public String getDefaultStyle()
-
getStyleList
public String[] getStyleList()
-
getStyleTitle
public String getStyleTitle()
-
getComplexity
public int getComplexity(int defaultComplexity)
-
isClickable
public boolean isClickable()
-
isConfigFound
public boolean isConfigFound()
-
needJS
public boolean needJS()
-
isChooseBackgoundColor
public boolean isChooseBackgoundColor()
-
isChooseTextColor
public boolean isChooseTextColor()
-
isChooseTextPosition
public boolean isChooseTextPosition()
-
isFontStyle
public boolean isFontStyle()
-
isPreviewEditable
public boolean isPreviewEditable()
-
isDataFeedBack
public boolean isDataFeedBack()
-
-