|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.event.MouseAdapter util.programmouseevent.ProgramMouseEventHandler
public class ProgramMouseEventHandler
A class that handles mouse interactions on programs. Use this in your Plugin if you want to react to mouse events like the program table.
Constructor Summary | |
---|---|
ProgramMouseEventHandler(ProgramMouseAndContextMenuListener listener,
ContextMenuIf owner)
Create a new instance of this class to handle mouse events on programs. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProgramMouseEventHandler(ProgramMouseAndContextMenuListener listener, ContextMenuIf owner)
listener
- The listener to react to.owner
- The ContextMenuIf that wants to react on mouse events.Method Detail |
---|
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.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |