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 ComponentConfig
EMPTY_INSTANCE
protected static Logger
logger
create a static logger.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getComplexity(int defaultComplexity)
String
getDefaultRenderer()
String
getDefaultStyle()
static ComponentConfig
getInstance()
static ComponentConfig
getInstance(ContentContext ctx, String type)
String
getProperty(String key, String defaultValue)
String
getRAWConfig(ContentContext ctx, Template currentTemplate, String type)
Map<String,String>
getRenderes()
String[]
getStyleLabelList()
String[]
getStyleList()
String
getStyleTitle()
boolean
isChooseBackgoundColor()
boolean
isChooseTextColor()
boolean
isChooseTextPosition()
boolean
isClickable()
boolean
isConfigFound()
boolean
isDataFeedBack()
boolean
isFontStyle()
boolean
isPreviewEditable()
boolean
needJS()
-
-
-
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()
-
-