Commit f53509da authored by dkasliwal's avatar dkasliwal

Add new tag component_subTitle in metadataxml for display total value in title


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104776 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8cfdc0e9
...@@ -155,6 +155,13 @@ public class MetaDataDtl ...@@ -155,6 +155,13 @@ public class MetaDataDtl
LinkedHashMap<String, String> gridComponantDescrDataMap = null; LinkedHashMap<String, String> gridComponantDescrDataMap = null;
/* End By Varsha On 22/02/2017 */ /* End By Varsha On 22/02/2017 */
/*Added by Dhanendra on date 24-02-17*/
NodeList subTitleNodeList = null;
Node subTitleNode = null;
ArrayList<String> subTitleColunList = null;
ArrayList<String> subTitleColumnName = null;
/*Added by Dhanendra on date 24-02-17*/
if (jsonObjMetadata != null) if (jsonObjMetadata != null)
{ {
gridNGraphMeataDataMap = new HashMap<String, HashMap>(); gridNGraphMeataDataMap = new HashMap<String, HashMap>();
...@@ -484,8 +491,13 @@ public class MetaDataDtl ...@@ -484,8 +491,13 @@ public class MetaDataDtl
String componentIconName = ""; String componentIconName = "";
String htmlTag=""; String htmlTag="";
String componentDescr = ""; String componentDescr = "";
String componentSubTitle = "";
/* End By Dhanedra for metadata change */ /* End By Dhanedra for metadata change */
/*Add By Dhanedra */
subTitleColunList = new ArrayList<String>();
subTitleColumnName = new ArrayList<String>();
/*End By Dhanedra */
metaDataMap = new LinkedHashMap<JSONString, JSONString>(); metaDataMap = new LinkedHashMap<JSONString, JSONString>();
toolTextInfoList = new ArrayList<String>(); toolTextInfoList = new ArrayList<String>();
...@@ -611,6 +623,31 @@ public class MetaDataDtl ...@@ -611,6 +623,31 @@ public class MetaDataDtl
//end added by swati //end added by swati
} }
} }
if ("component_subTitle".equalsIgnoreCase(attributeName))
{
subTitleNodeList = graphDataNode.getChildNodes();
for (int j = 0; j < subTitleNodeList.getLength(); j++)
{
subTitleNode = subTitleNodeList.item(j);
if ("col_group_title".equals(subTitleNode.getNodeName()))
{
dataStringValue = new JSONString(subTitleNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("zAxisName");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("columns".equals(subTitleNode.getNodeName()))
{
subTitleNodeList = subTitleNode.getChildNodes();
for (int colCtr = 0; colCtr < subTitleNodeList.getLength(); colCtr++)
{
columnNode = subTitleNodeList.item(colCtr);
columnID = columnNode.getAttributes().getNamedItem("id").getNodeValue();
subTitleColunList.add(columnID);
subTitleColumnName.add(columnNode.getChildNodes().item(0).getNodeValue());
}
}
}
}
} }
//Add on dated by swati for chart_properties //Add on dated by swati for chart_properties
if ("chart_properties".equalsIgnoreCase(childNodeName)) if ("chart_properties".equalsIgnoreCase(childNodeName))
...@@ -869,11 +906,17 @@ public class MetaDataDtl ...@@ -869,11 +906,17 @@ public class MetaDataDtl
{ {
htmlTag = (graphDataNode.getChildNodes().item(0).getNodeValue()); htmlTag = (graphDataNode.getChildNodes().item(0).getNodeValue());
} }
/* End html tag in metadata by Swati on 08-09-2015 */
if ("component_descr".equalsIgnoreCase(childNodeName)) if ("component_descr".equalsIgnoreCase(childNodeName))
{ {
componentDescr = (graphDataNode.getChildNodes().item(0).getNodeValue()); componentDescr = (graphDataNode.getChildNodes().item(0).getNodeValue());
} }
/* End html tag in metadata by Swati on 08-09-2015 */ if ("component_subtitle".equalsIgnoreCase(childNodeName))
{
componentSubTitle = (graphDataNode.getChildNodes().item(0).getNodeValue());
}
} }
metaDataList.add(metaDataMap.toString().replace('=', ':')); metaDataList.add(metaDataMap.toString().replace('=', ':'));
...@@ -916,7 +959,16 @@ public class MetaDataDtl ...@@ -916,7 +959,16 @@ public class MetaDataDtl
/*Add for html tag by Swati */ /*Add for html tag by Swati */
graphDtlList.add(htmlTag); graphDtlList.add(htmlTag);
/*End for html tag by Swati */ /*End for html tag by Swati */
/*Add for componentDescr tag by Dhanendra */
graphDtlList.add(componentDescr); graphDtlList.add(componentDescr);
/*End for componentDescr tag by Dhanendra */
/*Add z-Axix for component sub title by Dhanendra */
graphDtlList.add(subTitleColunList);
graphDtlList.add(subTitleColumnName);
//graphDtlList.add(componentSubTitle);
/*End z-Axix for component sub title by Dhanendra */
conuter++; conuter++;
gridNGraphMeataDataMap.put("type" + graphID, typeGraphMap); gridNGraphMeataDataMap.put("type" + graphID, typeGraphMap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment