Map dataParameters = new HashMap();
SourceBean dataSB = (SourceBean)content.getAttribute(CONF);
List dataAttrsList = dataSB.getContainedSourceBeanAttributes();
Iterator dataAttrsIter = dataAttrsList.iterator();
while(dataAttrsIter.hasNext()) {
SourceBeanAttribute paramSBA = (SourceBeanAttribute)dataAttrsIter.next();
SourceBean param = (SourceBean)paramSBA.getValue();
String nameParam = (String)param.getAttribute("name");
String valueParam = (String)param.getAttribute("value");
dataParameters.put(nameParam, valueParam);
}
if(dataParameters.get(CONF_DATASET)!=null && !(((String)dataParameters.get(CONF_DATASET)).equalsIgnoreCase("") )){
confDataset=(String)dataParameters.get(CONF_DATASET);
isLovConfDefined=true;
}
else {
isLovConfDefined=false;
}
legend=true;
if(dataParameters.get(LEGEND)!=null && !(((String)dataParameters.get(LEGEND)).equalsIgnoreCase("") )){
String leg=(String)dataParameters.get(LEGEND);
if(leg.equalsIgnoreCase("false"))
legend=false;
}
legendPosition="bottom";
if(dataParameters.get(LEGEND_POSITION)!=null && !(((String)dataParameters.get(LEGEND_POSITION)).equalsIgnoreCase("") )){
String leg=(String)dataParameters.get(LEGEND_POSITION);
if(leg.equalsIgnoreCase("bottom") || leg.equalsIgnoreCase("left") || leg.equalsIgnoreCase("right") || leg.equalsIgnoreCase("top"))
legendPosition=leg;
}
filter=true;
if(dataParameters.get(VIEW_FILTER)!=null && !(((String)dataParameters.get(VIEW_FILTER)).equalsIgnoreCase("") )){
String fil=(String)dataParameters.get(VIEW_FILTER);
if(fil.equalsIgnoreCase("false"))
filter=false;
}
slider=true;
if(dataParameters.get(VIEW_SLIDER)!=null && !(((String)dataParameters.get(VIEW_SLIDER)).equalsIgnoreCase("") )){
String sli=(String)dataParameters.get(VIEW_SLIDER);
if(sli.equalsIgnoreCase("false"))
slider=false;
}
sliderStartFromEnd=false;
if(dataParameters.get(SLIDER_START_FROM_END)!=null && !(((String)dataParameters.get(SLIDER_START_FROM_END)).equalsIgnoreCase("") )){
String sli=(String)dataParameters.get(SLIDER_START_FROM_END);
if(sli.equalsIgnoreCase("true"))
sliderStartFromEnd=true;
}
positionSlider="top";
if(dataParameters.get(POSITION_SLIDER)!=null && !(((String)dataParameters.get(POSITION_SLIDER)).equalsIgnoreCase("") )){
positionSlider=(String)dataParameters.get(POSITION_SLIDER);
}
//reading series orders if present
SourceBean sbSerieLabels = (SourceBean)content.getAttribute(SERIES_LABELS);
// back compatibility
if(sbSerieLabels==null){
sbSerieLabels = (SourceBean)content.getAttribute("CONF.SERIES_LABELS");
}
if(sbSerieLabels!=null){
seriesLabelsMap=new LinkedHashMap();
List atts=sbSerieLabels.getContainedAttributes();
String serieLabel="";
for (Iterator iterator = atts.iterator(); iterator.hasNext();) {
SourceBeanAttribute object = (SourceBeanAttribute) iterator.next();
String serieName=(String)object.getKey();
serieLabel=new String((String)object.getValue());
if(serieLabel!=null){
seriesLabelsMap.put(serieName, serieLabel);
}
}
}