KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > swing > CDialog


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.swing;
15
16 import javax.swing.*;
17 import java.awt.*;
18 import java.awt.event.*;
19
20 import org.compiere.plaf.*;
21
22 /**
23  * Conveniance Dialog Class.
24  * Compiere Background + Dispose on Close
25  * Implementing empty Action and Mouse Listener
26  *
27  * @author Jorg Janke
28  * @version $Id: CDialog.java,v 1.2 2003/10/25 06:10:41 jjanke Exp $
29  */

30 public class CDialog extends JDialog
31     implements ActionListener, MouseListener
32 {
33     
34     public CDialog() throws HeadlessException
35     {
36         this((Frame)null, false);
37     }
38
39     public CDialog(Frame owner) throws HeadlessException
40     {
41         this (owner, false);
42     }
43
44     public CDialog(Frame owner, boolean modal) throws HeadlessException
45     {
46         this (owner, null, modal);
47     }
48
49     public CDialog(Frame owner, String JavaDoc title) throws HeadlessException
50     {
51         this (owner, title, false);
52     }
53
54     public CDialog(Frame owner, String JavaDoc title, boolean modal)
55         throws HeadlessException
56     {
57         super(owner, title, modal);
58         init();
59     }
60
61     public CDialog(Frame owner, String JavaDoc title, boolean modal,
62                    GraphicsConfiguration gc)
63     {
64         super(owner, title, modal, gc);
65         init();
66     }
67
68     public CDialog(Dialog owner) throws HeadlessException
69     {
70         this (owner, false);
71     }
72
73     public CDialog(Dialog owner, boolean modal) throws HeadlessException
74     {
75         this(owner, null, modal);
76     }
77
78     public CDialog(Dialog owner, String JavaDoc title) throws HeadlessException
79     {
80         this(owner, title, false);
81     }
82
83     public CDialog(Dialog owner, String JavaDoc title, boolean modal)
84         throws HeadlessException
85     {
86         super(owner, title, modal);
87         init();
88     }
89     public CDialog(Dialog owner, String JavaDoc title, boolean modal,
90                    GraphicsConfiguration gc) throws HeadlessException {
91
92         super(owner, title, modal, gc);
93         init();
94     }
95
96     /**
97      * Initialize
98      */

99     private void init()
100     {
101         CompiereColor.setBackground(this);
102         setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
103     } // init
104

105     /*************************************************************************/
106
107     /**
108      * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
109      * @param e
110      */

111     public void actionPerformed(ActionEvent e)
112     {
113     }
114
115     /**
116      * @see java.awt.event.MouseListener#mouseClicked(java.awt.event.MouseEvent)
117      * @param e
118      */

119     public void mouseClicked(MouseEvent e)
120     {
121     }
122
123     /**
124      * @see java.awt.event.MouseListener#mouseEntered(java.awt.event.MouseEvent)
125      * @param e
126      */

127     public void mouseEntered(MouseEvent e)
128     {
129     }
130
131     /**
132      * @see java.awt.event.MouseListener#mouseExited(java.awt.event.MouseEvent)
133      * @param e
134      */

135     public void mouseExited(MouseEvent e)
136     {
137     }
138
139     /**
140      * @see java.awt.event.MouseListener#mousePressed(java.awt.event.MouseEvent)
141      * @param e
142      */

143     public void mousePressed(MouseEvent e)
144     {
145     }
146
147     /**
148      * @see java.awt.event.MouseListener#mouseReleased(java.awt.event.MouseEvent)
149      * @param e
150      */

151     public void mouseReleased(MouseEvent e)
152     {
153     }
154     
155     
156     
157 } // CDialog
158
Popular Tags