protected void fireObjectsChanged(final Iterable<T> oldObjects, final Iterable<T> newObjects) { this.listModelListeners.forAllDo(new IProcedure<IChangeableListListener<T>, RuntimeException>() { @Override public void execute(final IChangeableListListener<T> listener) throws RuntimeException { listener.objectsChanged(oldObjects, newObjects); } }); }
protected final synchronized void fireObjectsUpdated( final Iterable<Integer> indeces, final Iterable<T> oldObjects, final Iterable<T> newObjects) { this.listModelListeners.forAllDo(new IProcedure<IChangeableListListener<T>, RuntimeException>() { @Override public void execute(final IChangeableListListener<T> listener) throws RuntimeException { listener.objectsUpdated(indeces, oldObjects, newObjects); } }); }
void fireSelectionChanged() { final SelectionModel<T> model = this.selectionModel; this.listeners.forAllDo(new IProcedure<ISelectionListener<T>, RuntimeException>() { @Override public void execute(final ISelectionListener<T> value) throws RuntimeException { value.selectionChanged(new SelectionEvent<>(model)); } }); }
protected final synchronized void fireValueChanged() { this.changeableObjectListeners.forAllDo(new IProcedure<IChangeableObjectListener, RuntimeException>() { @Override public void execute(final IChangeableObjectListener listener) throws RuntimeException { listener.objectChanged(); } }); } }
protected final synchronized void fireObjectsAdded(final Iterable<Integer> indeces, final Iterable<T> objects) { this.listModelListeners.forAllDo(new IProcedure<IChangeableListListener<T>, RuntimeException>() { @Override public void execute(final IChangeableListListener<T> listener) throws RuntimeException { listener.objectsAdded(indeces, objects); } }); }
protected final synchronized void fireObjectsRemoved(final Iterable<Integer> indeces, final Iterable<T> objects) { this.listModelListeners.forAllDo(new IProcedure<IChangeableListListener<T>, RuntimeException>() { @Override public void execute(final IChangeableListListener<T> listener) throws RuntimeException { listener.objectsRemoved(indeces, objects); } }); } }