Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.util
Class EventUtil

    java.lang.Object
      org.apache.cayenne.util.EventUtil

    public class EventUtil

extends Object

Contains access stack events related utility methods.

Since:
  1.2
Author:
  Andrus Adamchik

Method Summary
`static boolean` | `listenForChannelEvents(DataChannel channel, DataChannelListener listener)` Utility method that sets up a GraphChangeListener to be notified when DataChannel posts an event.
`static boolean` | `listenForChannelEvents(EventManager manager, DataChannelListener listener)` Listen for events from all channels that use a given EventManager.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### listenForChannelEvents

    public static boolean listenForChannelEvents(DataChannel channel,
                                                 DataChannelListener listener)

  Utility method that sets up a GraphChangeListener to be notified when DataChannel posts an event.

  Returns:
    false if an DataChannel doesn't have an EventManager and therefore does not support events.

### listenForChannelEvents

    public static boolean listenForChannelEvents(EventManager manager,
                                                 DataChannelListener listener)

  Listen for events from all channels that use a given EventManager.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2008 Apache Cayenne. All Rights Reserved.