|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.extensions.jfcunit.keyboard.JFCKeyStroke
The JFCKeyStroke class holds all of the data pertaining to a keystroke to be pressed/released by the TestHelper.
Field Summary | |
private boolean |
m_isTyped
isTyped true if the key stroke is to emit a typed event. |
private char |
m_keyChar
Key Character. |
private int |
m_keyCode
Key Code. |
private int |
m_modifiers
Modifiers to be pressed for this event. |
Constructor Summary | |
JFCKeyStroke(char c,
int code,
int modifiers,
boolean typed)
Constructor. |
|
JFCKeyStroke(JFCKeyStroke stroke)
Copy Constructor. |
|
JFCKeyStroke(java.lang.String keyDesc)
|
Method Summary | |
boolean |
equals(java.lang.Object o)
Test for equality. |
char |
getKeyChar()
Get the key character. |
int |
getKeyCode()
Get the key code. |
int |
getModifiers()
Get the modifiers. |
int |
hashCode()
Get hashCode. |
boolean |
isTyped()
Is the keystroke to emit a typed event. |
private void |
setKeyChar(char c)
Set the key character. |
private void |
setKeyCode(int code)
Set the key code. |
void |
setModifiers(int modifiers)
Set the modifiers. |
private void |
setTyped(boolean typed)
Set the typed state. |
java.lang.String |
toString()
Create a string representation of the keystroke. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private boolean m_isTyped
private char m_keyChar
private int m_keyCode
private int m_modifiers
Constructor Detail |
public JFCKeyStroke(char c, int code, int modifiers, boolean typed)
c
- Character.code
- Key code.modifiers
- Modifiers to be pressed when sending the keystroke.typed
- true if a typed event should be emitted.public JFCKeyStroke(java.lang.String keyDesc)
public JFCKeyStroke(JFCKeyStroke stroke)
stroke
- Keystroke to be copied.Method Detail |
public final char getKeyChar()
public final int getKeyCode()
public void setModifiers(int modifiers)
modifiers
- Modifiers to be pressed for this keystroke.public final int getModifiers()
public final boolean isTyped()
public boolean equals(java.lang.Object o)
o
- Object to be tested for equality.
public int hashCode()
public java.lang.String toString()
private void setKeyChar(char c)
c
- Character.private void setKeyCode(int code)
code
- Key codeprivate void setTyped(boolean typed)
typed
- true if the keystroke is to emit a typed event.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |