パッケージ event

クラス EventController

java.lang.Object
event.EventController

public final class EventController extends Object
EventController is a class that manages events and listeners.
  • コンストラクタの詳細

    • EventController

      public EventController()
  • メソッドの詳細

    • callEvent

      public <T extends Event> void callEvent(T event)
      Call an event.
      型パラメータ:
      T - Type of the Event.
      パラメータ:
      event - Event to be invoked.
    • registerListener

      public void registerListener(EventListener listener)
      Register an EventListener.
      パラメータ:
      listener - EventListener to be registered.
    • unregisterListener

      public void unregisterListener(EventListener listener)
      Unregister an EventListener.
      パラメータ:
      listener - EventListener to be unregistered.