KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > internal > databinding > provisional > observable > value > IValueChangingListener


1 /*******************************************************************************
2  * Copyright (c) 2005, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jface.internal.databinding.provisional.observable.value;
12
13 /**
14  * @since 1.0
15  *
16  */

17 public interface IValueChangingListener {
18
19     /**
20      * This method is called when the value is about to change and provides an
21      * opportunity to veto the change.
22      *
23      * @param source
24      * @param diff
25      * @return false if this listener is vetoing the change, true otherwise
26      */

27     public boolean handleValueChanging(IVetoableValue source, ValueDiff diff);
28
29 }
30
Popular Tags