Commit 54f82d64 authored by sbade's avatar sbade

added new node as win_properties


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97098 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 77d64713
......@@ -98,7 +98,15 @@ public class MetaDataDtl
String colorDtl = "";
String lineVisibleDtl = "";
String dotThicknessDtl = "";
//add on 20dec2014 by swati linkedchart
NodeList pupUpOptNodeList=null;
Node popUpNode=null;
ArrayList<String> linkedMetadataList=null;
ArrayList<String> linkTypeList=null;
String linkedProperties="";
String linkedMetadataName="";
String linkTypeName="";
//end on 20dec2014 by swati for linkedchart
//add on dated 9 july 201041
Node chartPropertyNode = null;
NodeList chartPropertyNodeList = null;
......@@ -260,6 +268,10 @@ public class MetaDataDtl
colorInfoList = new ArrayList<String>();
graphMeataDataMap = new HashMap<String, ArrayList<Object>>();
graphNodeList = viewNode.getChildNodes();
//added by swati 20dec2014 for linked chart
linkedMetadataList= new ArrayList<String>();
linkTypeList = new ArrayList<String>();
//ended by swati 20dec2014 for linked chart
for (int i = 0; i < graphNodeList.getLength(); i++)
{
graphDataNode = graphNodeList.item(i);
......@@ -337,10 +349,16 @@ public class MetaDataDtl
dotThicknessDtl = columnNode.getAttributes().getNamedItem("dotthickness").getNodeValue();
dotThicknessList.add(dotThicknessDtl);
}
//added linked chart metadata name to graphdetail list by swati on 24 Dec 2014
linkedMetadataName = columnNode.getAttributes().getNamedItem("linkedmetadata").getNodeValue();
linkedMetadataList.add(linkedMetadataName);
linkTypeName = columnNode.getAttributes().getNamedItem("linktype").getNodeValue();
linkTypeList.add(linkTypeName);
//added linked chart metadata name to graphdetail list by swati on 24 Dec 2014
}
if (flag.equals("false"))
{
//metaDataMap.put(new JSONString("lineAlpha"), new JSONString("1"));
metaDataMap.put(new JSONString("lineAlpha"), new JSONString("1"));
metaDataMap.put(new JSONString("anchorBorderThickness"), new JSONString("3"));
}
}
......@@ -357,7 +375,6 @@ public class MetaDataDtl
jsnStringKey = new JSONString("syaxisname");
metaDataMap.put(jsnStringKey, dataStringValue);
}
//end added by swati
}
}
......@@ -426,7 +443,6 @@ public class MetaDataDtl
jsnStringKey = new JSONString("formatNumber");
metaDataMap.put(jsnStringKey, dataStringValue);
}
if ("chart_type".equalsIgnoreCase(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
......@@ -448,10 +464,19 @@ public class MetaDataDtl
graphDtlList.add(chartPropertyNode.getChildNodes().item(0).getNodeValue());
//metaDataMap.put(jsnStringKey, dataStringValue);
}
//added linked chart metadata name to graphdetail list by swati on 22 Dec 2014
if ("win_properties".equalsIgnoreCase(chartPropertyNode.getNodeName()))
{
dataStringValue = new JSONString(chartPropertyNode.getChildNodes().item(0).getNodeValue());
linkedProperties = (chartPropertyNode.getChildNodes().item(0).getNodeValue());
}
//ended linked chart metadata name to graphdetail list by swati on 22 Dec 2014
}
//end swati
}
//end swati for chart properties
}
metaDataList.add(metaDataMap.toString().replace('=', ':'));
graphDtlList.add(xAxisColunList);
......@@ -465,6 +490,11 @@ public class MetaDataDtl
graphDtlList.add(dotThicknessList);
graphDtlList.add(showValList);
graphDtlList.add(chartTypeList);
//added linked chart metadata name to graphdetail list by swati on 22 Dec 2014
graphDtlList.add(linkedMetadataList);
graphDtlList.add(linkedProperties);
graphDtlList.add(linkTypeList);
//ended linked chart metadata name to graphdetail list by swati on 22 Dec 2014
conuter++;
gridNGraphMeataDataMap.put("type"+graphID, typeGraphMap);
graphMeataDataMap.put("graph" + conuter, graphDtlList);
......@@ -565,7 +595,6 @@ public class MetaDataDtl
public ArrayList<String> getTitle(JSONObject jsonObjMetadata)
{
Document document = null;
String xmlMetadata = null;
Node rootNode = null;
......@@ -604,4 +633,49 @@ public class MetaDataDtl
}
return pageTitle;
}
public boolean isFiltrHide(JSONObject jsonObjMetadata)
{
boolean showFilter=false;
Document document = null;
String xmlMetadata = null;
Node rootNode = null;
NodeList rootNodeList = null;
String fiterValue="";
if (jsonObjMetadata != null)
{
xmlMetadata = jsonObjMetadata.get("metaData").toString();
xmlMetadata = jsonObjMetadata.get("metaData").toString().replace("\\", "").trim();
xmlMetadata = xmlMetadata.replace('"', ' ').trim();
try
{
document = XMLParser.parse(xmlMetadata);
XMLParser.removeWhitespace(document);
if (document != null)
{
rootNodeList = document.getElementsByTagName("Root").item(0).getChildNodes();
for (int rootCtr = 0; rootCtr < rootNodeList.getLength(); rootCtr++)
{
rootNode = rootNodeList.item(rootCtr);
if ("filters".equals(rootNode.getNodeName()))
{
fiterValue=rootNode.getAttributes().getNamedItem("display").getNodeValue();
}
}
}
} catch (Exception e)
{
Window.alert(" Exception :: :: isFiltrHide() :: MetaDataDtl [" + e.getMessage() + "]");
}
}
if("Y".equalsIgnoreCase(fiterValue))
{
showFilter=true;
}
return showFilter;
}
}
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