Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.javatools.ui
Class InputInfo

java.lang.Object
  extended by oracle.javatools.ui.InputInfo


public final class InputInfo
extends java.lang.Object

InputInfo provides methods for getting information about the mouse and keyboard, such as whether the control key is currently pressed or if the mouse is currently performing a drag.

If using from outside the IDE platform this class needs to be initialized on application startup.


Constructor Summary
InputInfo()
           

 

Method Summary
static void initialize()
           
static boolean isAltDown()
           
static boolean isAltGraphDown()
           
static boolean isButton1Down()
           
static boolean isButton2Down()
           
static boolean isButton3Down()
           
static boolean isControlDown()
           
static boolean isDragging()
           
static boolean isMetaDown()
           
static boolean isShiftDown()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

InputInfo

public InputInfo()

Method Detail

initialize

public static void initialize()

isControlDown

public static final boolean isControlDown()
Returns:
whether the control key is currently pressed

isAltDown

public static final boolean isAltDown()
Returns:
whether the alt key is currently pressed

isShiftDown

public static final boolean isShiftDown()
Returns:
whether the shift key is currently pressed

isAltGraphDown

public static final boolean isAltGraphDown()
Returns:
whether the alt graph key is currently pressed

isMetaDown

public static final boolean isMetaDown()
Returns:
whether the meta key is currently pressed

isDragging

public static final boolean isDragging()
Returns:
whether the mouse is currently dragging. A drag is defined by the mouse moving with any mouse button pressed.

isButton1Down

public static final boolean isButton1Down()
Returns:
whether the mouse button 1 is currently pressed

isButton2Down

public static final boolean isButton2Down()
Returns:
whether the mouse button 2 is currently pressed

isButton3Down

public static final boolean isButton3Down()
Returns:
whether the mouse button 3 is currently pressed

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.