org.xnap.commons.gui.util
Class DoubleClickListener
java.lang.Object
java.awt.event.MouseAdapter
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));
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOUBLE_CLICK_ID
public static final int DOUBLE_CLICK_ID
- See Also:
- Constant Field Values
DoubleClickListener
public DoubleClickListener()
DoubleClickListener
public DoubleClickListener(ActionListener listener)
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.