1 /*********************************************************************************
2 * *
3 * Raptor - Rapid prototyping of Swing GUIs based on JavaBeans like Java objects *
4 * Copyright (C) 2003 XCOM AG *
5 * *
6 * This library is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU Lesser General Public *
8 * License as published by the Free Software Foundation; either *
9 * version 2.1 of the License, or (at your option) any later version. *
10 * *
11 * This library is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14 * Lesser General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Lesser General Public *
17 * License along with this library; if not, write to the Free Software *
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
19 * *
20 *********************************************************************************/
21 package net.sf.raptor.ui.dialog;
22
23 import java.awt.Dialog;
24 import java.awt.Frame;
25
26 /**
27 * @author XCOM AG
28 *
29 * To change the template for this generated type comment go to
30 * Window>Preferences>Java>Code Generation>Code and Comments
31 */
32 public class OKDialog extends XDialog {
33
34 public static final String STATE_OK="OK";
35
36 /**
37 *
38 */
39 public OKDialog() {
40 super();
41 }
42
43 /**
44 * @param owner
45 */
46 public OKDialog(Frame owner) {
47 super(owner);
48 }
49
50 /**
51 * @param owner
52 * @param modal
53 */
54 public OKDialog(Frame owner, boolean modal) {
55 super(owner, modal);
56 }
57
58 /**
59 * @param owner
60 * @param title
61 */
62 public OKDialog(Frame owner, String title) {
63 super(owner, title);
64 }
65
66 /**
67 * @param owner
68 * @param title
69 * @param modal
70 */
71 public OKDialog(Frame owner, String title, boolean modal) {
72 super(owner, title, modal);
73 }
74
75 /**
76 * @param owner
77 */
78 public OKDialog(Dialog owner) {
79 super(owner);
80 }
81
82 /**
83 * @param owner
84 * @param modal
85 */
86 public OKDialog(Dialog owner, boolean modal) {
87 super(owner, modal);
88 }
89
90 /**
91 * @param owner
92 * @param title
93 */
94 public OKDialog(Dialog owner, String title) {
95 super(owner, title);
96 }
97
98 /**
99 * @param owner
100 * @param title
101 * @param modal
102 */
103 public OKDialog(Dialog owner, String title, boolean modal) {
104 super(owner, title, modal);
105 }
106
107 /**
108 * doOKAction
109 */
110 public void doOkAction() {
111 returnValue=STATE_OK;
112 hide();
113 }
114
115 }