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.casetool.patternimplementor;
12:
13: import java.awt.event.ActionListener;
14: import java.util.Observable;
15: import java.util.Observer;
16:
17: import javax.swing.JComponent;
18: import javax.swing.JPanel;
19:
20: public abstract class PIParameterGUI extends JPanel implements
21: Observer, ActionListener {
22:
23: protected JComponent content;
24:
25: protected PIParameter pip;
26:
27: public PIParameterGUI(PIParameter pip) {
28: super ();
29: this .pip = pip;
30: pip.addObserver(this );
31: buildGUI();
32: }
33:
34: public void update(Observable o, Object arg) {
35: //System.out.println("update\t" + o + "\t" + arg);
36:
37: updateGUI();
38: }
39:
40: protected abstract void buildGUI();
41:
42: protected void updateGUI() {
43: //System.out.println("GUI.updateGUI "+pip.getName());
44: }
45: }
|