KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > util > gui > propedit > PropertyEditorListener


1 package net.suberic.util.gui.propedit;
2
3 /**
4  * This listens to a PropertyEditorUI and reacts to changes.
5  */

6 public interface PropertyEditorListener {
7
8   /**
9    * Called when a property is about to change. If the value is not ok
10    * with the listener, a PropertyValueVetoException should be thrown.
11    */

12   public void propertyChanging(PropertyEditorUI source, String JavaDoc property, String JavaDoc newValue) throws PropertyValueVetoException;
13
14   /**
15    * Called after a property changes.
16    */

17   public void propertyChanged(PropertyEditorUI source, String JavaDoc property, String JavaDoc newValue);
18
19   /**
20    * Called when a property is about to change. If the value is not ok
21    * with the listener, a PropertyValueVetoException should be thrown.
22    */

23   public void propertyCommitting(PropertyEditorUI source, String JavaDoc property, String JavaDoc newValue) throws PropertyValueVetoException;
24
25   /**
26    * Called when an editor is initialized with a set value.
27    */

28   public void propertyInitialized(PropertyEditorUI source, String JavaDoc property, String JavaDoc newValue);
29 }
30
Popular Tags