com.levigo.util.swing
Class ActionOnDoubleClick

java.lang.Object
  extended by com.levigo.util.swing.ActionOnDoubleClick

public class ActionOnDoubleClick
extends Object

Utility class to wire up a JComponent with an Action so that the action is triggered whenever a multiple mouse-click is executed on the component.


Method Summary
static ActionOnDoubleClick install(JComponent targetComponent, Action theAction)
           
 void uninstall()
          Remove the double-click-to-action wiring.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

install

public static ActionOnDoubleClick install(JComponent targetComponent,
                                          Action theAction)

uninstall

public void uninstall()
Remove the double-click-to-action wiring.



Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.