Module tvbrowser

Class ProgramKeyEventHandler

  • All Implemented Interfaces:
    java.awt.event.KeyListener, java.util.EventListener

    public class ProgramKeyEventHandler
    extends java.awt.event.KeyAdapter
    A class that handles keyboard interactions on programs. Use this in your Plugin if you want to react to keyboard events like the program table.

    Since:
    3.3.1
    Author:
    René Mach
    • Constructor Detail

      • ProgramKeyEventHandler

        public ProgramKeyEventHandler​(ProgramKeyAndContextMenuListener listener,
                                      ContextMenuIf owner)
        Create a new instance of this class to handle mouse events on programs.

        Parameters:
        listener - The listener to react to.
        owner - The ContextMenuIf that wants to react on mouse events.
    • Method Detail

      • keyPressed

        public void keyPressed​(java.awt.event.KeyEvent e)
        Specified by:
        keyPressed in interface java.awt.event.KeyListener
        Overrides:
        keyPressed in class java.awt.event.KeyAdapter