/** * Releases the resources consumed by this {@link EventSelectionModel} so that it * may eventually be garbage collected. * * <p>An {@link EventSelectionModel} will be garbage collected without a call to * {@link #dispose()}, but not before its source {@link EventList} is garbage * collected. By calling {@link #dispose()}, you allow the {@link EventSelectionModel} * to be garbage collected before its source {@link EventList}. This is * necessary for situations where an {@link EventSelectionModel} is short-lived but * its source {@link EventList} is long-lived. * * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error * to call any method on a {@link EventSelectionModel} after it has been disposed. */ public void dispose() { delegateSelectionModel.dispose(); swingThreadSource.dispose(); }
/** * Releases the resources consumed by this {@link EventSelectionModel} so that it * may eventually be garbage collected. * * <p>An {@link EventSelectionModel} will be garbage collected without a call to * {@link #dispose()}, but not before its source {@link EventList} is garbage * collected. By calling {@link #dispose()}, you allow the {@link EventSelectionModel} * to be garbage collected before its source {@link EventList}. This is * necessary for situations where an {@link EventSelectionModel} is short-lived but * its source {@link EventList} is long-lived. * * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error * to call any method on a {@link EventSelectionModel} after it has been disposed. */ public void dispose() { delegateSelectionModel.dispose(); swingThreadSource.dispose(); }
/** * Releases the resources consumed by this {@link EventSelectionModel} so that it * may eventually be garbage collected. * * <p>An {@link EventSelectionModel} will be garbage collected without a call to * {@link #dispose()}, but not before its source {@link EventList} is garbage * collected. By calling {@link #dispose()}, you allow the {@link EventSelectionModel} * to be garbage collected before its source {@link EventList}. This is * necessary for situations where an {@link EventSelectionModel} is short-lived but * its source {@link EventList} is long-lived. * * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error * to call any method on a {@link EventSelectionModel} after it has been disposed. */ @Override public void dispose() { delegateSelectionModel.dispose(); swingThreadSource.dispose(); }