Class ChoiceChartParam
- java.lang.Object
-
- com.xpn.xwiki.plugin.charts.params.AbstractChartParam
-
- com.xpn.xwiki.plugin.charts.params.ChoiceChartParam
-
- All Implemented Interfaces:
ChartParam
- Direct Known Subclasses:
CategoryLabelPositionsChartParam
,DateTickMarkPositionChartParam
,HorizontalAlignmentChartParam
,PlotOrientationChartParam
,RangeTypeChartParam
,RectangleAnchorChartParam
,RectangleEdgeChartParam
,RendererClassChartParam
,TimePeriodClassChartParam
,VerticalAlignmentChartParam
public abstract class ChoiceChartParam extends AbstractChartParam
-
-
Field Summary
Fields Modifier and Type Field Description protected Map
choices
-
Fields inherited from class com.xpn.xwiki.plugin.charts.params.AbstractChartParam
LIST_SEPARATOR, MAP_ASSIGNMENT, MAP_SEPARATOR, name, optional
-
-
Constructor Summary
Constructors Constructor Description ChoiceChartParam(String name)
ChoiceChartParam(String name, boolean isOptional)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addChoice(String selector, Object value)
Object
convert(String selector)
abstract Class
getType()
protected abstract void
init()
-
Methods inherited from class com.xpn.xwiki.plugin.charts.params.AbstractChartParam
equals, getChoiceArg, getDoubleArg, getFloatArg, getIntArg, getListArg, getName, getStringArg, getStringOptionalArg, hashCode, isOptional, parseList, parseMap, parseMap, toFloatArray, toFloatList, toString
-
-
-
-
Field Detail
-
choices
protected Map choices
-
-
Method Detail
-
convert
public Object convert(String selector) throws ParamException
- Specified by:
convert
in interfaceChartParam
- Specified by:
convert
in classAbstractChartParam
- Throws:
ParamException
-
init
protected abstract void init()
-
getType
public abstract Class getType()
- Specified by:
getType
in interfaceChartParam
- Specified by:
getType
in classAbstractChartParam
-
-