/**************************************************************************************************
 **
 ** $Id: EventHandler.java 831 2006-05-01 00:27:23Z Desruisseaux $
 **
 ** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/go/display/event/EventHandler.java $
 **
 ** Copyright (C) 2003-2005 Open GIS Consortium, Inc.
 ** All Rights Reserved. http://www.opengis.org/legal/
 **
 *************************************************************************************************/
package org.opengis.go.display.event;

// J2SE direct dependencies
import java.util.EventListener;

/**
 * Common abstraction whose implementations can associate different key
 * handlers with a Component to switch key handling states easily.
 *
 * @version $Revision: 658 $, $Date: 2006-02-23 12:09:34 +1100 (jeu., 23 févr. 2006) $
 * @author OpenGIS® consortium
 * @see EventManager
 */
public interface EventHandler extends EventListener {
    /**
     * Invoked when the handler is first enabled, or reenabled after
     * being temporarily disabled.
     *
     * @see #handlerDisabled
     */
    public abstract void handlerEnabled();

    /**
     * Invoked when the handler is temporarily disabled.
     *
     * @see #handlerEnabled
     */
    public abstract void handlerDisabled();

    /**
     * Invoked when the handler is permanently removed.
     *
     * @todo According EventManagerSupport implementation, a handler
     *       is disabled before to be removed. The specification should said that.
     */
    public abstract void handlerRemoved();

}


 

Ads help maintain this website.