Interface EventPublisher

All Known Subinterfaces:
DataViewer, DisplayManager, DisplayWindow
All Known Implementing Classes:
AbstractDataViewer

public interface EventPublisher
Any object that bears an internal event bus to which other objects can subscribe to receive events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Register an object to receive events on the viewer event bus.
    void
    Unregister an object from the viewer event bus.
  • Method Details

    • registerForEvents

      void registerForEvents(Object recipient)
      Register an object to receive events on the viewer event bus.

      Objects registered by this method will receive events through their methods bearing a com.google.common.eventbus.Subscribe annotation. See Guava Event Bus documentation for how this works.

      Parameters:
      recipient - the object to register
      See Also:
    • unregisterForEvents

      void unregisterForEvents(Object recipient)
      Unregister an object from the viewer event bus.
      Parameters:
      recipient - the object to unregister
      See Also: