org.kaiwitte.workbench.ui.controller
Class RecordTransferListener

java.lang.Object
  extended by org.kaiwitte.workbench.ui.controller.RecordTransferListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.util.EventListener

public class RecordTransferListener
extends java.lang.Object
implements java.awt.event.MouseListener

A MouseListener implementation for a JTable that hands out the Record in a SchemeTableModel to a RecordReceiver.


Constructor Summary
RecordTransferListener(javax.swing.JTable table, SchemeTableModel model, RecordReceiver receiver)
          Creates a new instance.
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent e)
          Triggers the receiving.
 void mouseEntered(java.awt.event.MouseEvent e)
          Does nothing.
 void mouseExited(java.awt.event.MouseEvent e)
          Does nothing.
 void mousePressed(java.awt.event.MouseEvent e)
          Does nothing.
 void mouseReleased(java.awt.event.MouseEvent e)
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordTransferListener

public RecordTransferListener(javax.swing.JTable table,
                              SchemeTableModel model,
                              RecordReceiver receiver)
Creates a new instance.

Parameters:
table - the table
model - the SchemeTableModel of the table
receiver - the RecordReceiver that receives the record from the table
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Triggers the receiving.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e - the mouse event

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Does nothing.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e - not used

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Does nothing.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e - not used

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Does nothing.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e - not used

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Does nothing.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
e - not used