Beispiel #1
0
 @Transient
 public Map<Integer, NavigationDefaults> getChartDefaults() {
   if (chartDefaults == null) {
     chartDefaults = new HashMap<Integer, NavigationDefaults>();
     for (NavigationSettings setting : getNavigationSettings()) {
       chartDefaults.put(setting.getChartId(), setting.getSettingsData());
     }
   }
   return chartDefaults;
 }
Beispiel #2
0
 public void addNavigationSettings(int chartId, NavigationDefaults updateddefaults) {
   if (getChartDefaults().containsKey(chartId)) {
     for (NavigationSettings setting : getNavigationSettings()) {
       if (setting.getChartId() == chartId) {
         setting.setSettingsData(updateddefaults);
       }
     }
   } else {
     getNavigationSettings().add(new NavigationSettings(chartId, updateddefaults, this, null));
   }
 }