Package nz.ac.waikato.cms.gui.core
Class KeyUtils
java.lang.Object
nz.ac.waikato.cms.gui.core.KeyUtils
A helper class for key events.
- Version:
- $Revision: 4584 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks whether the key event was a "copy to clipboard" combination (Ctrl+C or Ctrl+Ins).static booleanChecks whether the key event was a "cut to clipboard" combination (Ctrl+X or Shift+Delete).static booleanChecks whether the key event was a "insert from clipboard" combination (Ctrl+V or Shift+Ins).
-
Constructor Details
-
KeyUtils
public KeyUtils()
-
-
Method Details
-
isCopy
Checks whether the key event was a "copy to clipboard" combination (Ctrl+C or Ctrl+Ins).- Parameters:
e- the event- Returns:
- true if a "copy" event
-
isCut
Checks whether the key event was a "cut to clipboard" combination (Ctrl+X or Shift+Delete).- Parameters:
e- the event- Returns:
- true if a "cut" event
-
isPaste
Checks whether the key event was a "insert from clipboard" combination (Ctrl+V or Shift+Ins).- Parameters:
e- the event- Returns:
- true if a "paste" event
-