1 package com.calipso.reportgenerator.userinterface; 2 3 import com.calipso.reportgenerator.common.ReportMetricSpec; 4 5 8 public class MetricState { 9 private ReportMetricSpec metricSpec; 10 private boolean visible; 11 12 16 public MetricState(ReportMetricSpec metricSpec){ 17 this.metricSpec = metricSpec; 18 } 19 20 24 public ReportMetricSpec getMetricSpec() { 25 return metricSpec; 26 } 27 28 32 public boolean getVisible() { 33 return visible; 34 } 35 36 40 public void setVisible(boolean visible) { 41 this.visible = visible; 42 } 43 44 48 public String toString() { 49 return getMetricSpec().getCaption(); 50 } 51 52 56 public String getName() { 57 return getMetricSpec().getName(); 58 } 59 60 64 public String getCaption() { 65 return getMetricSpec().getCaption(); 66 } 67 } 68 | Popular Tags |