/** * Sets the notify flag, which controls whether or not the {@link #fireDatasetChanged()} * method notifies listeners. Setting this flag to {@code true} will * trigger a {@code DatasetChangeEvent} because there may be * queued up changes. * * @param notify the new flag value. * * @since 1.0.17 */ public void setNotify(boolean notify) { this.notify = notify; if (notify) { fireDatasetChanged(); } }
/** * Validates the object. We use this opportunity to call listeners who have * registered during the deserialization process, as listeners are not * serialized. This method is called by the serialization system after the * entire graph is read. * * This object has registered itself to the system with a priority of 10. * Other callbacks may register with a higher priority number to be called * before this object, or with a lower priority number to be called after * the listeners were notified. * * All listeners are supposed to have register by now, either in their * readObject or validateObject methods. Notify them that this dataset has * changed. * * @exception InvalidObjectException If the object cannot validate itself. */ @Override public void validateObject() throws InvalidObjectException { fireDatasetChanged(); }
/** * Validates the object. We use this opportunity to call listeners who have * registered during the deserialization process, as listeners are not * serialized. This method is called by the serialization system after the * entire graph is read. * * This object has registered itself to the system with a priority of 10. * Other callbacks may register with a higher priority number to be called * before this object, or with a lower priority number to be called after * the listeners were notified. * * All listeners are supposed to have register by now, either in their * readObject or validateObject methods. Notify them that this dataset has * changed. * * @exception InvalidObjectException If the object cannot validate itself. */ public void validateObject() throws InvalidObjectException { fireDatasetChanged(); }