01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09:
10: package de.uka.ilkd.key.gui.assistant;
11:
12: import javax.swing.AbstractButton;
13:
14: /**
15: * This is a rather concrete input class and needs to be generalized
16: * some times.
17: */
18: public class PressedButtonEventInput implements AIInput {
19:
20: private final AbstractButton pressedButton;
21: private final int inputID;
22:
23: public PressedButtonEventInput(AbstractButton pressed, int id) {
24: this .pressedButton = pressed;
25: this .inputID = id;
26: }
27:
28: public AbstractButton getPressedButton() {
29: return pressedButton;
30: }
31:
32: /**
33: * return the classification ID of this input
34: */
35: public int getInputID() {
36: return inputID;
37: }
38:
39: }
|