/** * Notifies listeners about a pending change, and returns true if no * listener vetoed the change. * * @param diff * @return false if the change was vetoed, true otherwise */ protected boolean fireValueChanging(ValueDiff diff) { checkRealm(); ValueChangingEvent event = new ValueChangingEvent(this, diff); fireEvent(event); return !event.veto; } }
/** * Notifies listeners about a pending change, and returns true if no * listener vetoed the change. * * @param diff * @return false if the change was vetoed, true otherwise */ protected boolean fireValueChanging(ValueDiff diff) { checkRealm(); ValueChangingEvent event = new ValueChangingEvent(this, diff); fireEvent(event); return !event.veto; } }