com.xpn.xwiki.plugin.charts.params
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 |
protected java.util.Map |
choices
|
Method Summary |
void |
addChoice(java.lang.String selector,
java.lang.Object value)
|
java.lang.Object |
convert(java.lang.String selector)
|
abstract java.lang.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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
choices
protected java.util.Map choices
ChoiceChartParam
public ChoiceChartParam(java.lang.String name)
ChoiceChartParam
public ChoiceChartParam(java.lang.String name,
boolean isOptional)
addChoice
public void addChoice(java.lang.String selector,
java.lang.Object value)
convert
public java.lang.Object convert(java.lang.String selector)
throws ParamException
- Specified by:
convert
in interface ChartParam
- Specified by:
convert
in class AbstractChartParam
- Throws:
ParamException
init
protected abstract void init()
getType
public abstract java.lang.Class getType()
- Specified by:
getType
in interface ChartParam
- Specified by:
getType
in class AbstractChartParam
Copyright 2003 Ludovic Dubost