BaseHandlerDispatcher.kl

Types

BaseHandlerDispatcher (object)

バージョン 2.0.1 で追加.

BaseHandlerDispatcher manages a set of handler and dispatches events to the currently active handler. Handlers are registered in a HandlerDispatcher that manages their activation. The active handler receives events as they are propagated from the host application. It provides a registration system to add/remove handlers.

Members

Boolean enabled Handler is enabled.
Key enableKey Enable key.
HandlerExclusivity handlerExclusivity Handler exclusivity.
Boolean isIndependent HandlerExclusivity local override.
Boolean takeAllEvents It true, the handler takes all the events.
Boolean alwaysEnabled It true, the handler takes all the events.
Boolean isOwnedByDispatcher Checks if the handler is owned by a handlerDispatcher. In most of the cases, the dispatcher owns the handlers. However, it’s not true in DFG graphs where the handlers are owns by the nodes.
Ref<HandlerDispatcher> dispatcher Reference to the dispatcher.
Ref<BaseHandler>[String] handlers Dictionary of reference to all the registered handlers.
BaseHandler[String] ownedHandlers Dictionary of owned handlers.

Methods

  BaseHandlerDispatcher ( in BaseHandlerDispatcher other )
  BaseHandlerDispatcher ( in Boolean isOwnedByDispatcher )
  BaseHandlerDispatcher ( in Key enableKey, in Boolean isOwnedByDispatcher )
  BaseHandlerDispatcher ()
  activateDispatcher ! ( in Key key, io Boolean isAccepted )
  activateHandlers ! ( io Key key, io Boolean switchDisableNone, io Boolean switchDisableOthers, io Boolean switchDisableAll, io Boolean isAccepted )
  activateHandlertype_DisableAllHandlers ! ( in Key key )
  activateHandlertype_DisableNoneHandlers ! ( in Key key )
  activateHandlertype_DisableOthersHandlers ! ( in Key key )
  checkHandlersEnableKeyAndName ? ( in String name, in Key key, in Boolean fromDispatcher, io Boolean hasKey, io Boolean hasName )
BaseHandlerDispatcher clone ? ()
  disable ! ()
  enable ! ()
Ref<EventHandler> getActiveHandler ? ()
HandlerDescription getDescription ? ()
Ref<EventHandler> getHandler ? ( in String name )
String getHandlerName ? ( in Ref<EventHandler> handler )
Ref<HandlerDispatcher> getRootDispatcher ? ()
Boolean hasHandler ? ( in String name )
  init ! ( in Key enableKey, in Boolean isOwnedByDispatcher )
  onEvent ! ( io Event event )
  processKeyEvent ! ( io Event event )
  processMouseEvent ! ( io Event event )
  registerHandler ! ( in String name, io EventHandler handler )
  registerHandler ! ( in String name, io Ref<EventHandler> handler )
  sceneChanged ! ()
  setActiveHandler ! ( in Ref<EventHandler> handler )
  setActiveHandler ! ( in String name )
  unregisterHandler ! ( in Ref<EventHandler> handler )
  unregisterHandler ! ( in String name )
  ~BaseHandlerDispatcher ()