/*
 * Java-Gnome Bindings Library
 *
 * * Copyright 1998-2004 the Java-Gnome Team, all rights reserved.
 *
 * The Java-Gnome Team Members:
 *   Jean Van Wyk <jeanvanwyk@iname.com>
 *   Jeffrey S. Morgan <jeffrey.morgan@bristolwest.com>
 *   Dan Bornstein <danfuzz@milk.com>
 *
 * The Java-Gnome bindings library is free software distributed under
 * the terms of the GNU Library General Public License version 2.
 */

package org.gnu.gtk.event;

/**
 * This is the listener interface for receiving life cycle
 * realted events for a Widget. 
 * @see LifeCycleEvent
 */
public interface LifeCycleListener {

	/**
	 * TODO: document this properly 
	 * This method is for all void-returning LifeCycleEvents i.e. everything not
	 * of type {@link LifeCycleEvent.Type.DESTROY} or{@link
	 * LifeCycleEvent.Type.DELETE}
	 */
	void lifeCycleEvent( LifeCycleEvent event );

	/**
	 * TODO: document this
	 * This method is for the delete and destroy events
	 */
	boolean lifeCycleQuery( LifeCycleEvent event );
	
}
