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