public void valueChange(Property.ValueChangeEvent valueChangeEvent) { if (boostPriorityField.isValid()) { m_dashletSpec.setBoostPriority(Integer.valueOf((String) valueChangeEvent.getProperty().getValue())); WallboardProvider.getInstance().save(); ((WallboardConfigUI) getUI()).notifyMessage("Data saved", "Priority"); } } });
@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; } }