com.xpn.xwiki.plugin.charts.params
Class ChoiceChartParam

java.lang.Object
  extended by com.xpn.xwiki.plugin.charts.params.AbstractChartParam
      extended by 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
           
 
Fields inherited from class com.xpn.xwiki.plugin.charts.params.AbstractChartParam
LIST_SEPARATOR, MAP_ASSIGNMENT, MAP_SEPARATOR, name, optional
 
Constructor Summary
ChoiceChartParam(java.lang.String name)
           
ChoiceChartParam(java.lang.String name, boolean isOptional)
           
 
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
 

Field Detail

choices

protected java.util.Map choices
Constructor Detail

ChoiceChartParam

public ChoiceChartParam(java.lang.String name)

ChoiceChartParam

public ChoiceChartParam(java.lang.String name,
                        boolean isOptional)
Method Detail

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