org.xnap.commons.gui.util
Class DoubleClickListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.xnap.commons.gui.util.DoubleClickListener
All Implemented Interfaces:
MouseListener, EventListener

public class DoubleClickListener
extends MouseAdapter

Convenience class for a double click listener in a table. Use it like this:

 table.addMouseListener(new DoubleClickListener(action));
 


Field Summary
static int DOUBLE_CLICK_ID
           
 
Constructor Summary
DoubleClickListener()
           
DoubleClickListener(ActionListener listener)
           
 
Method Summary
 void addActionListener(ActionListener listener)
           
 String getActionCommand()
           
 void mousePressed(MouseEvent e)
           
 void removeActionListener(ActionListener listener)
           
 void setActionCommand(String actionCommand)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOUBLE_CLICK_ID

public static final int DOUBLE_CLICK_ID
See Also:
Constant Field Values
Constructor Detail

DoubleClickListener

public DoubleClickListener()

DoubleClickListener

public DoubleClickListener(ActionListener listener)
Method Detail

addActionListener

public void addActionListener(ActionListener listener)

getActionCommand

public String getActionCommand()

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter

removeActionListener

public void removeActionListener(ActionListener listener)

setActionCommand

public void setActionCommand(String actionCommand)


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.