@Override public void propertyChanged(String property, double newValue) { super.propertyChanged(property, newValue); if (StandardParameter.DT.equals(property)) { ntDt.setValue(newValue); } }
@Override public void focusLost(FocusEvent e) { super.focusLost(e); if (e.getSource() == ntDt) { try { sidebar.config.setParameter(StandardParameter.DT, ntDt.getDoubleValue()); } catch (ParseException ex) { ntDt.setValue( sidebar.config.getParameter(StandardParameter.DT, StandardParameter.DEFAULT_DT)); } } }
@Override public void loadDataFromModel() { super.loadDataFromModel(); ntDt.setValue(sidebar.config.getParameter(StandardParameter.DT, StandardParameter.DEFAULT_DT)); }