ch.tatool.core.element.handler
Class EscapeKeyEventHandler

java.lang.Object
  extended by ch.tatool.core.element.AbstractPropertyHolder
      extended by ch.tatool.core.element.NodeImpl
          extended by ch.tatool.core.element.handler.EscapeKeyEventHandler
All Implemented Interfaces:
KeyEventHandler, PropertyHolder, Node

public class EscapeKeyEventHandler
extends NodeImpl
implements KeyEventHandler

Finishes the execution of the currently running module by catching the key event of the Escape key.


Constructor Summary
EscapeKeyEventHandler()
           
 
Method Summary
 boolean isAllowEscapeKey()
           
 void setAllowEscapeKey(boolean allowEscapeKey)
           
 void triggerKeyEvent(int keyCode, ExecutionContext context)
           
 
Methods inherited from class ch.tatool.core.element.NodeImpl
assignParent, assignParent, assignParents, getId, getLocalId, getParent, setId, setLocalId, setParent
 
Methods inherited from class ch.tatool.core.element.AbstractPropertyHolder
clearProperties, getKeys, getProperty, removeProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.tatool.data.PropertyHolder
clearProperties, getKeys, getProperty, removeProperty, setProperty
 

Constructor Detail

EscapeKeyEventHandler

public EscapeKeyEventHandler()
Method Detail

isAllowEscapeKey

public boolean isAllowEscapeKey()

setAllowEscapeKey

public void setAllowEscapeKey(boolean allowEscapeKey)

triggerKeyEvent

public void triggerKeyEvent(int keyCode,
                            ExecutionContext context)
Specified by:
triggerKeyEvent in interface KeyEventHandler


Copyright © 2012. All Rights Reserved.