durationMap.put(index, dashletSpecs.get(index).getDuration() + dashletSpecs.get(index).getBoostDuration()); } else { priorityMap.put(index, dashletSpecs.get(index).getPriority()); durationMap.put(index, dashletSpecs.get(index).getDuration()); durationMap.put(index, dashletSpecs.get(index).getDuration() + dashletSpecs.get(index).getBoostDuration()); } else { priorityMap.put(index, Math.min(oldPriorityMap.get(index) + PRIORITY_DECREASE, dashletSpecs.get(index).getPriority())); durationMap.put(index, Math.max(oldDurationMap.get(index) - DURATION_DECREASE, dashletSpecs.get(index).getDuration()));
@Override public DashletSpec clone() { DashletSpec dashletSpec = new DashletSpec(); dashletSpec.setPriority(getPriority()); dashletSpec.setDuration(getDuration()); dashletSpec.setBoostPriority(getBoostPriority()); dashletSpec.setBoostDuration(getBoostDuration()); dashletSpec.setDashletName(getDashletName()); return dashletSpec; } }
durationField.setValue(String.valueOf(dashletSpec.getDuration())); durationField.setImmediate(true); durationField.setCaption("Duration");