org.openide.awt 7.23.1

org.openide.awt
Class MouseUtils

java.lang.Object
  extended by org.openide.awt.MouseUtils

public class MouseUtils
extends Object

A class that contains a set of utility classes and methods around mouse events and processing.


Nested Class Summary
static class MouseUtils.PopupMouseAdapter
          The PopupMouseAdapter provides safe way to implement popup menu invocation mechanism.
 
Constructor Summary
MouseUtils()
           
 
Method Summary
static boolean isDoubleClick(MouseEvent e)
          Returns true if parametr is a 'doubleclick event'
static boolean isLeftMouseButton(MouseEvent e)
          Deprecated. Offers no advantages over the standard SwingUtilities.isLeftMouseButton(java.awt.event.MouseEvent).
static boolean isRightMouseButton(MouseEvent e)
          Deprecated. Offers no advantages over the standard SwingUtilities.isRightMouseButton(java.awt.event.MouseEvent).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseUtils

public MouseUtils()
Method Detail

isRightMouseButton

@Deprecated
public static boolean isRightMouseButton(MouseEvent e)
Deprecated. Offers no advantages over the standard SwingUtilities.isRightMouseButton(java.awt.event.MouseEvent).

Determines if the event is originated from the right mouse button

Parameters:
e - the MouseEvent
Returns:
true if the event is originated from the right mouse button, false otherwise

isLeftMouseButton

@Deprecated
public static boolean isLeftMouseButton(MouseEvent e)
Deprecated. Offers no advantages over the standard SwingUtilities.isLeftMouseButton(java.awt.event.MouseEvent).

Determines if the event is originated from a left mouse button

Parameters:
e - the MouseEvent
Returns:
true if the event is originated from the left mouse button, false otherwise

isDoubleClick

public static boolean isDoubleClick(MouseEvent e)
Returns true if parametr is a 'doubleclick event'

Parameters:
e - MouseEvent
Returns:
true if the event is a doubleclick

org.openide.awt 7.23.1

Built on February 9 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.