View Javadoc

1   package cz.cuni.amis.pogamut.sposh.elements;
2   
3   import cz.cuni.amis.pogamut.sposh.PoshTreeEvent;
4   import java.beans.PropertyChangeListener;
5   
6   /**
7    * Mainly for widgets. This is the listener that can be registered with the
8    * <code>PoshElement</code> to listen for various events that happens to the
9    * POSH element (new node, deleted node...)
10   *
11   * @author Honza
12   */
13  public interface PoshElementListener extends PropertyChangeListener {
14  	/**
15  	 * Message about newly created child node
16  	 *
17  	 * @param event what kind of change happend
18  	 * @param child child node that has been created/just new one
19  	 */
20  	public void nodeChanged(PoshTreeEvent event, PoshElement child);
21  }