public class ProgramMouseEventHandler
extends java.awt.event.MouseAdapter
Constructor and Description |
---|
ProgramMouseEventHandler(ProgramMouseAndContextMenuListener listener,
ContextMenuIf owner)
Create a new instance of this class to handle mouse events on programs.
|
Modifier and Type | Method and Description |
---|---|
static void |
handleAction(Program program,
ActionMenu menu) |
static void |
handleProgramClick(Program program,
ContextMenuIf caller,
boolean singleClick,
java.awt.event.MouseEvent e)
Handles a program mouse click.
|
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
public ProgramMouseEventHandler(ProgramMouseAndContextMenuListener listener, ContextMenuIf owner)
listener
- The listener to react to.owner
- The ContextMenuIf that wants to react on mouse events.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class java.awt.event.MouseAdapter
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class java.awt.event.MouseAdapter
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class java.awt.event.MouseAdapter
public static void handleProgramClick(Program program, ContextMenuIf caller, boolean singleClick, java.awt.event.MouseEvent e)
program
- The program to handle.caller
- The ContextMenuIf that caused the event.singleClick
- true
if it was a single click, false
otherwise.e
- The event that was triggered with a mouse interaction.public static void handleAction(Program program, ActionMenu menu)
TV-Browser 3.4.4, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)