Package snap.view

Class EventAdapter

java.lang.Object
snap.view.EventAdapter

public class EventAdapter extends Object
This class manages which node events are sent to which targets.
  • Field Details

  • Constructor Details

    • EventAdapter

      public EventAdapter()
      Constructor.
  • Method Details

    • addFilter

      public void addFilter(EventListener aLsnr, ViewEvent.Type... theTypes)
      Adds an event filter.
    • removeFilter

      public void removeFilter(EventListener aLsnr, ViewEvent.Type... theTypes)
      Removes an event filter.
    • addHandler

      public void addHandler(EventListener aLsnr, ViewEvent.Type... theTypes)
      Adds an event handler.
    • removeHandler

      public void removeHandler(EventListener aLsnr, ViewEvent.Type... theTypes)
      Removes an event handler.
    • enableEvents

      public void enableEvents(Object aLsnr, ViewEvent.Type... theTypes)
      Called to register types for a listener.
    • disableEvents

      public void disableEvents(Object aLsnr, ViewEvent.Type... theTypes)
      Called to unregister types for a listener.
    • isEnabled

      public boolean isEnabled(ViewEvent.Type aType)
      Returns whether given type is enabled.
    • setEnabled

      public void setEnabled(ViewEvent.Type aType, boolean aValue)
      Sets whether a given type is enabled.
    • clear

      public void clear()
      Clears the adapter.