Module org.jpo

Class EventBusViewer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class EventBusViewer extends JPanel
Listens to the EventBus events and prints them in the Panel
See Also:
  • Constructor Details

    • EventBusViewer

      public EventBusViewer()
      Constructs the EventViewer panel and connects to the EventBus
  • Method Details

    • handleEvent

      public void handleEvent(FileLoadRequest request)
      Handles the FileLoadRequest
      Parameters:
      request - the request
    • handleEvent

      public void handleEvent(UpdateApplicationTitleRequest request)
      Handles the UpdateApplicationTitleRequest by logging the title
      Parameters:
      request - the request to log
    • handleEvent

      public void handleEvent(ShowGroupRequest request)
      Handles the ShowGroupRequest by logging the node in the request
      Parameters:
      request - the Request
    • handleEvent

      public void handleEvent(Object request)
      Handles all the other events by logging them.
      Parameters:
      request - The request