source: trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/gui/KeyInteraction.java @ 786

Last change on this file since 786 was 786, checked in by sherbold, 12 years ago
  • code documentation
  • Property svn:executable set to *
File size: 1.0 KB
Line 
1
2package de.ugoe.cs.quest.eventcore.gui;
3
4import de.ugoe.cs.tasktree.keyboardmaps.VirtualKey;
5
6/**
7 * <p>
8 * Base class for all keyboard interaction event types.
9 * </p>
10 *
11 * @version 1.0
12 * @author Patrick Harms
13 */
14public abstract class KeyInteraction implements IInteraction {
15
16    /**
17     * <p>
18     * Id for object serialization.
19     * </p>
20     */
21    private static final long serialVersionUID = 1L;
22
23    /**
24     * <p>
25     * the key associated with the interaction
26     * </p>
27     */
28    private VirtualKey key;
29
30    /**
31     * <p>
32     * Constructor. Creates a new KeyInteraction.
33     * </p>
34     *
35     * @param key
36     *            key associated with the interaction
37     */
38    public KeyInteraction(VirtualKey key) {
39        super();
40        this.key = key;
41    }
42
43    /**
44     * <p>
45     * Returns the key associated with the interaction.
46     * </p>
47     *
48     * @return the key
49     */
50    public VirtualKey getKey() {
51        return key;
52    }
53
54}
Note: See TracBrowser for help on using the repository browser.