net.sf.doolin.gui.field.table.support
Class GUITableMouseListener<V,E>

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by net.sf.doolin.gui.field.table.support.GUITableMouseListener<V,E>
Type Parameters:
V - Type of object for the view
E - Type of item in the table
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener

public class GUITableMouseListener<V,E>
extends MouseAdapter

Mouse listener for a GUITable.

Author:
Damien Coraboeuf

Constructor Summary
GUITableMouseListener(GUITable<V,E> table)
          Constructor
 
Method Summary
 void mouseClicked(MouseEvent e)
          On a double click, executes any associated action.
 void mouseReleased(MouseEvent e)
          On a pop-up menu trigger, builds a pop-up menu for the current item and displays it.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUITableMouseListener

public GUITableMouseListener(GUITable<V,E> table)
Constructor

Parameters:
table - Associated table
Method Detail

mouseClicked

public void mouseClicked(MouseEvent e)
On a double click, executes any associated action.

Specified by:
mouseClicked in interface MouseListener
Overrides:
mouseClicked in class MouseAdapter

mouseReleased

public void mouseReleased(MouseEvent e)
On a pop-up menu trigger, builds a pop-up menu for the current item and displays it. The content of the pop-up menu is defined by the FieldTable.getTableMenu() action group.

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter


Copyright © 2011. All Rights Reserved.