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 Details

    • WidgetKeyEvent

      public WidgetKeyEvent(long id, KeyEvent event)
      Creates a key event.
      Parameters:
      id - the event id
      event - the Swing event
  • Method Details

    • getEventID

      public long getEventID()
      Returns an event id.
      Specified by:
      getEventID in interface WidgetAction.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: