svn-gvsig-desktop / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / catalogClient / ui / SearchDialog.java @ 2658
History | View | Annotate | Download (2.08 KB)
1 |
/*
|
---|---|
2 |
* Created on 28-may-2005
|
3 |
*/
|
4 |
package es.gva.cit.catalogClient.ui; |
5 |
|
6 |
import java.awt.event.WindowEvent; |
7 |
import java.awt.event.WindowListener; |
8 |
|
9 |
import javax.swing.JFrame; |
10 |
|
11 |
import es.gva.cit.catalogClient.CatalogClient; |
12 |
import es.gva.cit.catalogClient.utils.Frames; |
13 |
|
14 |
/**
|
15 |
* @author luisw
|
16 |
*/
|
17 |
public class SearchDialog extends JFrame implements WindowListener { |
18 |
private SearchDialogPanel contentPane = null; |
19 |
private CatalogClient cliente;
|
20 |
|
21 |
public SearchDialog(CatalogClient cliente) {
|
22 |
super();
|
23 |
this.cliente = cliente;
|
24 |
initialize(); |
25 |
} |
26 |
|
27 |
/**
|
28 |
* This method initializes jDialog
|
29 |
*
|
30 |
* @return javax.swing.JDialog
|
31 |
*/
|
32 |
private void initialize() { |
33 |
Frames.CenterFrame(this);
|
34 |
|
35 |
this.setBounds(0, 0, 675, 520); |
36 |
this.setTitle("B?squeda de Cat?logo"); |
37 |
|
38 |
//setResizable(false);
|
39 |
setName("search");
|
40 |
SearchDialogPanel panel = new SearchDialogPanel();
|
41 |
panel.setCatalogClient(cliente); |
42 |
getContentPane().add(panel); |
43 |
addWindowListener(this);
|
44 |
setVisible(true);
|
45 |
} |
46 |
|
47 |
|
48 |
/* (non-Javadoc)
|
49 |
* @see java.awt.event.WindowListener#windowActivated(java.awt.event.WindowEvent)
|
50 |
*/
|
51 |
public void windowActivated(WindowEvent e) { |
52 |
} |
53 |
|
54 |
/* (non-Javadoc)
|
55 |
* @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
|
56 |
*/
|
57 |
public void windowClosed(WindowEvent e) { |
58 |
System.exit(0); |
59 |
} |
60 |
|
61 |
/* (non-Javadoc)
|
62 |
* @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
|
63 |
*/
|
64 |
public void windowClosing(WindowEvent arg0) { |
65 |
System.exit(0); |
66 |
} |
67 |
|
68 |
/* (non-Javadoc)
|
69 |
* @see java.awt.event.WindowListener#windowDeactivated(java.awt.event.WindowEvent)
|
70 |
*/
|
71 |
public void windowDeactivated(WindowEvent e) { |
72 |
} |
73 |
|
74 |
/* (non-Javadoc)
|
75 |
* @see java.awt.event.WindowListener#windowDeiconified(java.awt.event.WindowEvent)
|
76 |
*/
|
77 |
public void windowDeiconified(WindowEvent e) { |
78 |
} |
79 |
|
80 |
/* (non-Javadoc)
|
81 |
* @see java.awt.event.WindowListener#windowIconified(java.awt.event.WindowEvent)
|
82 |
*/
|
83 |
public void windowIconified(WindowEvent e) { |
84 |
} |
85 |
|
86 |
/* (non-Javadoc)
|
87 |
* @see java.awt.event.WindowListener#windowOpened(java.awt.event.WindowEvent)
|
88 |
*/
|
89 |
public void windowOpened(WindowEvent e) { |
90 |
} |
91 |
} |