|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.keystroke.KeystrokeRecord
public class KeystrokeRecord
This class contains information about a keyboard shortcut which automates some operation. A keystroke pairs a key description (key code and modifier) with a Beanshell script to execute when the key is pressed.
Constructor Summary | |
---|---|
KeystrokeRecord(int keyCode,
int modifiers,
java.lang.String name,
java.lang.String script)
Create a new KeystrokeRecord. |
|
KeystrokeRecord(int keyCode,
int modifiers,
java.lang.String name,
java.lang.String script,
java.lang.String language)
Create a new KeystrokeRecord. |
Method Summary | |
---|---|
KeystrokeRecord |
duplicate()
Create an exact duplicate of this record. |
int |
getKeyCode()
|
java.lang.String |
getLanguage()
|
int |
getModifiers()
|
java.lang.String |
getName()
|
java.lang.String |
getScript()
|
void |
setKeyCode(int keyCode)
|
void |
setLanguage(java.lang.String language)
|
void |
setModifiers(int modifiers)
|
void |
setName(java.lang.String name)
|
void |
setScript(java.lang.String script)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeystrokeRecord(int keyCode, int modifiers, java.lang.String name, java.lang.String script, java.lang.String language)
keyCode
- the key code (as defined by KeyEvent) for the key which activates this keystrokemodifiers
- the modifier keys which must be held down to activate this keystrokename
- a name to identify this keystrokescript
- a script to execute when the keystroke is activatedlanguage
- the language in which the script is writtenpublic KeystrokeRecord(int keyCode, int modifiers, java.lang.String name, java.lang.String script)
keyCode
- the key code (as defined by KeyEvent) for the key which activates this keystrokemodifiers
- the modifier keys which must be held down to activate this keystrokename
- a name to identify this keystrokescript
- a BeanShell script to execute when the keystroke is activatedMethod Detail |
---|
public int getKeyCode()
public void setKeyCode(int keyCode)
public int getModifiers()
public void setModifiers(int modifiers)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getScript()
public void setScript(java.lang.String script)
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
public KeystrokeRecord duplicate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |