root / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / catalogClient / ui / ServerConnectDialog.java @ 2047
History | View | Annotate | Download (3 KB)
1 |
/*
|
---|---|
2 |
* Created on 26-may-2005
|
3 |
*/
|
4 |
package es.gva.cit.catalogClient.ui; |
5 |
|
6 |
import java.awt.Dimension; |
7 |
import java.awt.event.KeyEvent; |
8 |
import java.awt.event.KeyListener; |
9 |
import java.awt.event.WindowEvent; |
10 |
import java.awt.event.WindowListener; |
11 |
|
12 |
import javax.swing.JFrame; |
13 |
import javax.swing.JPanel; |
14 |
|
15 |
import es.gva.cit.catalogClient.utils.Frames; |
16 |
|
17 |
/**
|
18 |
* @author luisw
|
19 |
*/
|
20 |
public class ServerConnectDialog extends JFrame implements WindowListener,KeyListener { |
21 |
private ServerConnectDialogPanel contentPane = null; |
22 |
|
23 |
public ServerConnectDialog() {
|
24 |
super();
|
25 |
//super.setModal(true);
|
26 |
initialize(); |
27 |
} |
28 |
|
29 |
/**
|
30 |
* This method initializes jDialog
|
31 |
*
|
32 |
* @return javax.swing.JDialog
|
33 |
*/
|
34 |
private void initialize() { |
35 |
Frames.CenterFrame(this);
|
36 |
|
37 |
this.setSize(new Dimension(625,300)); |
38 |
this.setTitle("B?squeda en cat?logo de metadatos"); |
39 |
|
40 |
//setBounds(0, 0, 386, 267);
|
41 |
setResizable(false);
|
42 |
setName("serverConnect");
|
43 |
getContentPane().add(getContentP()); |
44 |
addWindowListener(this);
|
45 |
setVisible(true);
|
46 |
} |
47 |
|
48 |
private JPanel getContentP() { |
49 |
if (contentPane == null) { |
50 |
contentPane = new ServerConnectDialogPanel();
|
51 |
contentPane.setDefaultButtonListeners(); |
52 |
|
53 |
this.setVisible(true); |
54 |
|
55 |
} |
56 |
return contentPane;
|
57 |
|
58 |
} |
59 |
/* (non-Javadoc)
|
60 |
* @see java.awt.event.WindowListener#windowActivated(java.awt.event.WindowEvent)
|
61 |
*/
|
62 |
public void windowActivated(WindowEvent e) { |
63 |
// TODO Auto-generated method stub
|
64 |
|
65 |
} |
66 |
|
67 |
public void windowClosing(WindowEvent arg0) { |
68 |
// TODO Auto-generated method stub
|
69 |
System.exit(0); |
70 |
} |
71 |
|
72 |
/* (non-Javadoc)
|
73 |
* @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
|
74 |
*/
|
75 |
public void windowClosed(WindowEvent arg0) { |
76 |
// TODO Auto-generated method stub
|
77 |
System.exit(0); |
78 |
} |
79 |
|
80 |
/* (non-Javadoc)
|
81 |
* @see java.awt.event.WindowListener#windowDeactivated(java.awt.event.WindowEvent)
|
82 |
*/
|
83 |
public void windowDeactivated(WindowEvent e) { |
84 |
// TODO Auto-generated method stub
|
85 |
|
86 |
} |
87 |
|
88 |
/* (non-Javadoc)
|
89 |
* @see java.awt.event.WindowListener#windowDeiconified(java.awt.event.WindowEvent)
|
90 |
*/
|
91 |
public void windowDeiconified(WindowEvent e) { |
92 |
// TODO Auto-generated method stub
|
93 |
|
94 |
} |
95 |
|
96 |
/* (non-Javadoc)
|
97 |
* @see java.awt.event.WindowListener#windowIconified(java.awt.event.WindowEvent)
|
98 |
*/
|
99 |
public void windowIconified(WindowEvent e) { |
100 |
// TODO Auto-generated method stub
|
101 |
|
102 |
} |
103 |
|
104 |
/* (non-Javadoc)
|
105 |
* @see java.awt.event.WindowListener#windowOpened(java.awt.event.WindowEvent)
|
106 |
*/
|
107 |
public void windowOpened(WindowEvent e) { |
108 |
// TODO Auto-generated method stub
|
109 |
|
110 |
} |
111 |
|
112 |
/* (non-Javadoc)
|
113 |
* @see java.awt.event.KeyListener#keyPressed(java.awt.event.KeyEvent)
|
114 |
*/
|
115 |
public void keyPressed(KeyEvent e) { |
116 |
// TODO Auto-generated method stub
|
117 |
|
118 |
} |
119 |
|
120 |
/* (non-Javadoc)
|
121 |
* @see java.awt.event.KeyListener#keyReleased(java.awt.event.KeyEvent)
|
122 |
*/
|
123 |
public void keyReleased(KeyEvent e) { |
124 |
// TODO Auto-generated method stub
|
125 |
|
126 |
} |
127 |
|
128 |
/* (non-Javadoc)
|
129 |
* @see java.awt.event.KeyListener#keyTyped(java.awt.event.KeyEvent)
|
130 |
*/
|
131 |
public void keyTyped(KeyEvent e) { |
132 |
// TODO Auto-generated method stub
|
133 |
|
134 |
} |
135 |
|
136 |
} |