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:
11: package de.uka.ilkd.key.gui;
12:
13: import java.util.HashMap;
14:
15: import javax.swing.JRadioButton;
16:
17: public class JRadioButtonHashMap extends JRadioButton {
18: JRadioButtonHashMap(String text, String command, boolean selected,
19: boolean enabled) {
20: super (text, selected);
21: this .setEnabled(enabled);
22: this .setActionCommand(command);
23: hashmap.put(command, this );
24: }
25:
26: static HashMap hashmap = new HashMap();
27:
28: public static JRadioButton getButton(String command) {
29: return (JRadioButton) hashmap.get(command);
30: }
31: }
|