Class WidgetAction.WidgetKeyEvent
java.lang.Object
org.netbeans.api.visual.action.WidgetAction.WidgetKeyEvent
- All Implemented Interfaces:
WidgetAction.WidgetEvent
- Enclosing interface:
WidgetAction
public static final class WidgetAction.WidgetKeyEvent
extends Object
implements WidgetAction.WidgetEvent
Represents a key event.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns an event id.char
int
int
int
int
long
getWhen()
boolean
boolean
boolean
boolean
boolean
boolean
-
Constructor Details
-
WidgetKeyEvent
Creates a key event.- Parameters:
id
- the event idevent
- the Swing event
-
-
Method Details
-
getEventID
public long getEventID()Returns an event id.- Specified by:
getEventID
in interfaceWidgetAction.WidgetEvent
- Returns:
- the event id
-
getKeyCode
public int getKeyCode()- See Also:
-
getKeyChar
public char getKeyChar()- See Also:
-
getKeyLocation
public int getKeyLocation()- See Also:
-
isActionKey
public boolean isActionKey()- See Also:
-
isShiftDown
public boolean isShiftDown()- See Also:
-
isControlDown
public boolean isControlDown()- See Also:
-
isMetaDown
public boolean isMetaDown()- See Also:
-
isAltDown
public boolean isAltDown()- See Also:
-
isAltGraphDown
public boolean isAltGraphDown()- See Also:
-
getWhen
public long getWhen()- See Also:
-
getModifiers
public int getModifiers()- See Also:
-
getModifiersEx
public int getModifiersEx()- See Also:
-