Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.maddyhome.idea.vim.key
Class Shortcut  view Shortcut download Shortcut.java

java.lang.Object
  extended bycom.maddyhome.idea.vim.key.Shortcut

public class Shortcut
extends java.lang.Object

This is a simple wrapper around a set of keystrokes. The various constructors make it easy to create the keystroke set from simple characters and strings.


Field Summary
private  javax.swing.KeyStroke[] keys
           
 
Constructor Summary
Shortcut(char c)
          Create a shortcut containing one keystroke represented by the supplied character
Shortcut(javax.swing.KeyStroke key)
          Creates a shortcut from the supplied keystroke
Shortcut(javax.swing.KeyStroke[] keys)
          Creates a shortcut based on the supplied list of keystrokes
Shortcut(java.lang.String keys)
          Creates a sequence of keystrokes represented by the characters of the supplied string
 
Method Summary
 javax.swing.KeyStroke[] getKeys()
          Returns the list of keystrokes in this shortcut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keys

private javax.swing.KeyStroke[] keys
Constructor Detail

Shortcut

public Shortcut(char c)
Create a shortcut containing one keystroke represented by the supplied character


Shortcut

public Shortcut(java.lang.String keys)
Creates a sequence of keystrokes represented by the characters of the supplied string


Shortcut

public Shortcut(javax.swing.KeyStroke key)
Creates a shortcut from the supplied keystroke


Shortcut

public Shortcut(javax.swing.KeyStroke[] keys)
Creates a shortcut based on the supplied list of keystrokes

Method Detail

getKeys

public javax.swing.KeyStroke[] getKeys()
Returns the list of keystrokes in this shortcut