[943] | 1 | package org.expeditee.gui.indirect.keyboard;
|
---|
| 2 |
|
---|
| 3 | import java.util.Collection;
|
---|
| 4 |
|
---|
| 5 | import org.expeditee.gui.FunctionKey;
|
---|
| 6 | import org.expeditee.items.Item;
|
---|
[944] | 7 | import org.expeditee.items.Text;
|
---|
[943] | 8 |
|
---|
| 9 | public interface KeyboardAction {
|
---|
[944] | 10 | public Text exec(final KeyboardInfo info, char c);
|
---|
[943] | 11 |
|
---|
| 12 | public class KeyboardInfo {
|
---|
| 13 | public FunctionKey key;
|
---|
| 14 | public int repeat;
|
---|
| 15 | public boolean isShiftDown;
|
---|
| 16 | public boolean isControlDown;
|
---|
| 17 | public Collection<Item> enclosed;
|
---|
| 18 | public Item firstConnected;
|
---|
| 19 | public Collection<Item> connected;
|
---|
| 20 | public Collection<Item> lineEnds;
|
---|
| 21 |
|
---|
| 22 | public KeyboardInfo(final FunctionKey key, final int repeat,
|
---|
| 23 | final boolean isShiftDown, final boolean isControlDown, final Collection<Item> enclosed,
|
---|
| 24 | final Item firstConnected, Collection<Item> connected, Collection<Item> lineEnds) {
|
---|
| 25 | this.key = key;
|
---|
| 26 | this.repeat = repeat;
|
---|
| 27 | this.isShiftDown = isShiftDown;
|
---|
| 28 | this.isControlDown = isControlDown;
|
---|
| 29 | this.enclosed = enclosed;
|
---|
| 30 | this.firstConnected = firstConnected;
|
---|
| 31 | this.connected = connected;
|
---|
| 32 | this.lineEnds = lineEnds;
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | }
|
---|
| 36 | }
|
---|