Class KeyData

  • All Implemented Interfaces:
    java.io.Serializable, ActionData

    public class KeyData
    extends java.lang.Object
    implements ActionData
    Represents a key pressed by the user.
    Author:
    jumperchen
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DELETE  
      static int DOWN  
      static int END  
      static int F1  
      static int F10  
      static int F11  
      static int F12  
      static int F2  
      static int F3  
      static int F4  
      static int F5  
      static int F6  
      static int F7  
      static int F8  
      static int F9  
      static int HOME  
      static int INSERT  
      static int LEFT  
      static int PAGE_DOWN  
      static int PAGE_UP  
      static int RIGHT  
      static int UP  
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyData()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getKeyCode()
      Returns the key code.
      boolean isAltKey()
      Returns whether ALT is pressed.
      boolean isCtrlKey()
      Returns whether CTRL is pressed.
      boolean isMetaKey()
      Returns whether META is pressed.
      boolean isShiftKey()
      Returns whether SHIFT is pressed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait