public class KeySequence
extends java.lang.Object
Constructor and Description |
---|
KeySequence(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String s) |
boolean |
equals(java.lang.Object o) |
void |
execute(GUIPanel gp)
Take the string representing this sequence, split it into the individual key presses
and send it to the
GUIPanel provided, using the GUIPanel.handle(java.lang.String) method. |
java.util.ArrayList<java.lang.String> |
getIndividualKeyPresses()
Take the string of this sequence and split it into individual key presses.
|
int |
hashCode() |
java.lang.String |
toString() |
public java.util.ArrayList<java.lang.String> getIndividualKeyPresses()
ArrayList
of strings, one for each keypress, in the order they appered in the String this object was initialized with.public void append(java.lang.String s)
public java.lang.String toString()
toString
in class java.lang.Object
public void execute(GUIPanel gp)
GUIPanel
provided, using the GUIPanel.handle(java.lang.String)
method.gp
- the GUIPanel
to send the keypresses toGUIPanel.handle(java.lang.String)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object