/** * Updates the value. * * @param value the new value (<code>null</code> permitted). */ public void updateValue(Number value) { if (this.data == null) { throw new RuntimeException("updateValue: can't update null."); } setValue(this.data.getKey(), value); }
/** * Sets the value for the dataset and sends a {@link DatasetChangeEvent} to * all registered listeners. * * @param key the key. * @param value the value ({@code null} permitted). */ public void setValue(Comparable key, Number value) { this.data = new DefaultKeyedValue(key, value); notifyListeners(new DatasetChangeEvent(this, this)); }
/** * Sets the value for the dataset and sends a {@link DatasetChangeEvent} to * all registered listeners. * * @param key the key. * @param value the value (<code>null</code> permitted). */ public void setValue(Comparable key, Number value) { this.data = new DefaultKeyedValue(key, value); notifyListeners(new DatasetChangeEvent(this, this)); }
/** * Updates the value. * * @param value the new value ({@code null} permitted). */ public void updateValue(Number value) { if (this.data == null) { throw new RuntimeException("updateValue: can't update null."); } setValue(this.data.getKey(), value); }