Commit 2f634d7d authored by nsawalakhe's avatar nsawalakhe

Added new display_panel property for card view.

Request ID: S15ESER003.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@39891 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 22d4fa4e
......@@ -663,6 +663,12 @@ public class MetaDataDtl
jsnStringKey = new JSONString("formatNumber");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("showlabels".equals(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
jsnStringKey = new JSONString("showlabels");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("chart_type".equalsIgnoreCase(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
......@@ -1581,7 +1587,7 @@ public class MetaDataDtl
if ("component".equals(viewNode.getNodeName()) && type.equalsIgnoreCase("CARD"))
{
String linkMetaDataName = "";
graphMeataDataMap = new HashMap<String, ArrayList<Object>>();
typeGraphMap = new LinkedHashMap<String, String>();
graphDataSourceMap = new LinkedHashMap<String, String>();
......@@ -1604,6 +1610,8 @@ public class MetaDataDtl
groupTypeList = new ArrayList<String>();
groupFltrNameList = new ArrayList<String>();
String componentIconName = "";
//added new string by swati for panel view
String panelView = null;
for (int i = 0; i < graphNodeList.getLength(); i++)
{
......@@ -1656,6 +1664,24 @@ public class MetaDataDtl
componentIconName = (graphDataNode.getChildNodes().item(0).getNodeValue());
}
/* End componentIcon tag in metadata by Dhanendra on 01-07-2015 */
/* Add LinkMetaData tag in metadata by Swati on 06-05-2016 */
if ("link_metadata".equalsIgnoreCase(childNodeName))
{
linkMetaDataName = (graphDataNode.getChildNodes().item(0).getNodeValue());
}
/* End LinkMetaData tag in metadata by Swati on 05-05-2016 */
/* Start display_panel tag in metadata by Swati on 16-05-2016 */
if ("display_panel".equalsIgnoreCase(childNodeName))
{
panelView=(graphDataNode.getChildNodes().item(0).getNodeValue());
}
/* End display_panel tag in metadata by Swati on 16-05-2016 */
}
if ("groupFilter".equalsIgnoreCase(childNodeName))
......@@ -1700,12 +1726,15 @@ public class MetaDataDtl
graphDtlList.add(layoutList);
graphDtlList.add(groupFltrNameList);
graphDtlList.add(componentIconName);
graphDtlList.add(linkMetaDataName);
graphDtlList.add(panelView); // added panel view in list
conuter++;
gridNGraphMeataDataMap.put("type" + graphID, typeGraphMap);
graphMeataDataMap.put("graph" + conuter, graphDtlList);
gridNGraphMeataDataMap.put(graphID, graphMeataDataMap);
gridNGraphMeataDataMap.put("datasource" + graphID, graphDataSourceMap);
}
//***End Code for Card (Added by sachin on 1-jully-2015)*****\\
//***Start Code for Gantt Chart (Added by sachin on 4-08-15)*****\\
......
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