source: trunk/src/org/expeditee/gui/indirect/keyboard/KeyboardAction.java@ 944

Last change on this file since 944 was 944, checked in by bln4, 9 years ago

The remaining of the implemention of Indirect keyboard and mouse commands

  • Property svn:mime-type set to text/plain
File size: 1.1 KB
Line 
1package org.expeditee.gui.indirect.keyboard;
2
3import java.util.Collection;
4
5import org.expeditee.gui.FunctionKey;
6import org.expeditee.items.Item;
7import org.expeditee.items.Text;
8
9public interface KeyboardAction {
10 public Text exec(final KeyboardInfo info, char c);
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}
Note: See TracBrowser for help on using the repository browser.