Package doodlepad

Interface PadKeyListener


public interface PadKeyListener
The interface to be implemented when handling PadKeyListener events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onKeyPressed(String keyText, String keyModifiers)
    The onKeyPressed method is invoked by PadKeyListeners
    void
    onKeyReleased(String keyText, String keyModifiers)
    The onKeyReleased method is invoked by PadKeyListeners
    void
    onKeyTyped(char keyChar)
    The onKeyTyped method is invoked by PadKeyListeners
  • Method Details

    • onKeyTyped

      void onKeyTyped(char keyChar)
      The onKeyTyped method is invoked by PadKeyListeners
      Parameters:
      keyChar - The char typed.
    • onKeyPressed

      void onKeyPressed(String keyText, String keyModifiers)
      The onKeyPressed method is invoked by PadKeyListeners
      Parameters:
      keyText - A String describing the keyCode, such as "HOME", "F1" or "A".
      keyModifiers - A String describing the modifier key(s), such as "Shift", or "Ctrl+Shift".
    • onKeyReleased

      void onKeyReleased(String keyText, String keyModifiers)
      The onKeyReleased method is invoked by PadKeyListeners
      Parameters:
      keyText - A String describing the keyCode, such as "HOME", "F1" or "A".
      keyModifiers - A String describing the modifier key(s), such as "Shift", or "Ctrl+Shift".