Commit 5ca20a41 authored by vvengurlekar's avatar vvengurlekar

Changes done in GraphComponent.java file. Code added for displaying refreshing...

Changes done in GraphComponent.java file. Code added for displaying refreshing image and Date Time Label on top-right side of dashboard Grid format Data on 19/01/2017


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@42669 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ba9d905e
......@@ -667,17 +667,45 @@ public class GraphComponent extends Composite
/*Added code for Dyanamic Div and New CSS By Dhanendra 01-07-15*/
Image gridTtlImg = new Image("FusionChart/images/"+gridIconName);
//Added code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
final Image refreshImg = new Image("FusionChart/images/refresh.png");
SimpleDateFormat dispDateTimeFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss");
Date date = new Date();
String strDate = dispDateTimeFormat.format(date);
String dateformat = getTimeSince(strDate);
final Label refreshDateTime = new Label(dateformat);
final HorizontalPanel dateHPanel = new HorizontalPanel();
//End code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
HorizontalPanel gridTtlPanel = new HorizontalPanel();
if(!childID.equalsIgnoreCase(""))
{
gridComponantTitleName = gridComponantTitleName+ " : " +parameterList.get(parameterList.size()-2);
}
//Added code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
refreshDateTime.setStyleName("refreshDateTime");
dateHPanel.setStyleName("refreshDatePanel");
dateHPanel.add(refreshImg);
dateHPanel.add(refreshDateTime);
//End code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
gridTitleLbl = new Label(gridComponantTitleName);
gridTtlImg.setStyleName("componantTtlImg");
gridTitleLbl.setStyleName("componantTtl");
gridTtlPanel.add(gridTtlImg);
gridTtlPanel.add(gridTitleLbl);
gridTtlPanel.setCellWidth( gridTtlImg, "2%" );
//Added code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
gridTtlPanel.add(dateHPanel);
gridTtlPanel.setCellWidth( dateHPanel, "15%" );
//End code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
/*Add Code for Drill-down metadataxml by Dhanendra on date 16-09-2016*/
if(!childID.equalsIgnoreCase(""))
{
......@@ -794,17 +822,43 @@ public class GraphComponent extends Composite
/*Added code for Dyanamic Div and New CSS By Dhanendra 01-07-15*/
Image gridTtlImg = new Image("FusionChart/images/"+gridIconName);
//Added code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
final Image refreshImg = new Image("FusionChart/images/refresh.png");
SimpleDateFormat dispDateTimeFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss");
Date date = new Date();
String strDate = dispDateTimeFormat.format(date);
String dateformat = getTimeSince(strDate);
final Label refreshDateTime = new Label(dateformat);
final HorizontalPanel dateHPanel = new HorizontalPanel();
//End code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
HorizontalPanel gridTtlPanel = new HorizontalPanel();
if(!childID.equalsIgnoreCase(""))
{
gridComponantTitleName = gridComponantTitleName+ " : " +parameterList.get(parameterList.size()-2);
}
//Added code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
refreshDateTime.setStyleName("refreshDateTime");
dateHPanel.setStyleName("refreshDatePanel");
dateHPanel.add(refreshImg);
dateHPanel.add(refreshDateTime);
//End code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
gridTitleLbl = new Label(gridComponantTitleName);
gridTtlImg.setStyleName("componantTtlImg");
gridTitleLbl.setStyleName("componantTtl");
gridTtlPanel.add(gridTtlImg);
gridTtlPanel.add(gridTitleLbl);
gridTtlPanel.setCellWidth( gridTtlImg, "2%" );
//Added code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
gridTtlPanel.add(dateHPanel);
gridTtlPanel.setCellWidth( dateHPanel, "15%" );
//End code for displaying refresh icon and date on dashboard by Varsha on 19/01/2017
/*Add Code for Drill-down metadataxml by Dhanendra on date 16-09-2016*/
if(!childID.equalsIgnoreCase(""))
{
......
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