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: * Created on 13.03.2005
10: */
11: package de.uka.ilkd.key.gui.notification.actions;
12:
13: import java.awt.Component;
14:
15: import de.uka.ilkd.key.gui.notification.NotificationAction;
16:
17: /**
18: * Actions which display a text should inherit from
19: * this abstract notification action.
20: * @author bubel
21: */
22: public abstract class ShowDisplayPane implements NotificationAction {
23:
24: /**
25: * the message to be displayed
26: */
27: private String message = "";
28: protected Component parentComponent;
29:
30: /**
31: * creates an instance of this action kind
32: */
33: public ShowDisplayPane(Component parentComponent) {
34: this .parentComponent = parentComponent;
35: }
36:
37: /**
38: * sets the message to be displayed
39: * @param message the String to be displayed
40: */
41: public void setMessage(String message) {
42: this .message = message;
43: }
44:
45: /**
46: * returns the text string displayed by this action
47: */
48: public String getMessage() {
49: return message;
50: }
51:
52: }
|