/* * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.awt; interface EventFilter { /** * Enumeration for possible values for <code>acceptEvent(AWTEvent ev)</code> method. * @see EventDispatchThread#pumpEventsForFilters(EventFilter) */ static enum FilterAction { /** * ACCEPT means that this filter do not filter the event and allowes other * active filters to proceed it. If all the active filters accept the event, it * is dispatched by the <code>EventDispatchThread</code> * @see EventDispatchThread#pumpEventsForFilters(EventFilter) */ ACCEPT, /** * REJECT means that this filter filter the event. No other filters are queried, * and the event is not dispatched by the <code>EventDispatchedThread</code> * @see EventDispatchThread#pumpEventsForFilters(EventFilter) */ REJECT, /** * ACCEPT_IMMEDIATELY means that this filter do not filter the event, no other * filters are queried and to proceed it, and it is dispatched by the * <code>EventDispatchThread</code> * It is not recommended to use ACCEPT_IMMEDIATELY as there may be some active * filters not queried yet that do not accept this event. It is primarily used * by modal filters. * @see EventDispatchThread#pumpEventsForFilters(EventFilter) * @see ModalEventFilter */ ACCEPT_IMMEDIATELY }; FilterAction acceptEvent(AWTEvent ev); }