root / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / catalogClient / ui / SearchDialog.java @ 2047
History | View | Annotate | Download (2.8 KB)
1 |
/*
|
---|---|
2 |
* Created on 28-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.CatalogClient; |
16 |
import es.gva.cit.catalogClient.utils.Frames; |
17 |
|
18 |
/**
|
19 |
* @author luisw
|
20 |
*/
|
21 |
public class SearchDialog extends JFrame implements WindowListener, KeyListener { |
22 |
private CatalogClientSearchPanelButtons contentPane = null; |
23 |
CatalogClient cliente= null;
|
24 |
|
25 |
public SearchDialog(CatalogClient cliente) {
|
26 |
super();
|
27 |
this.cliente = cliente;
|
28 |
initialize(); |
29 |
} |
30 |
|
31 |
/**
|
32 |
* This method initializes jDialog
|
33 |
*
|
34 |
* @return javax.swing.JDialog
|
35 |
*/
|
36 |
private void initialize() { |
37 |
Frames.CenterFrame(this);
|
38 |
|
39 |
this.setSize(new Dimension(660,575)); |
40 |
this.setTitle("B?squeda de Cat?logo"); |
41 |
|
42 |
//setBounds(0, 0, 386, 267);
|
43 |
setResizable(false);
|
44 |
setName("search");
|
45 |
getContentPane().add(getContentP()); |
46 |
addWindowListener(this);
|
47 |
setVisible(true);
|
48 |
} |
49 |
|
50 |
private JPanel getContentP() { |
51 |
if (contentPane == null) { |
52 |
contentPane = new CatalogClientSearchPanelButtons(cliente);
|
53 |
contentPane.setDefaultButtonListeners(); |
54 |
|
55 |
this.setVisible(true); |
56 |
} |
57 |
return contentPane;
|
58 |
} |
59 |
|
60 |
/* (non-Javadoc)
|
61 |
* @see java.awt.event.WindowListener#windowActivated(java.awt.event.WindowEvent)
|
62 |
*/
|
63 |
public void windowActivated(WindowEvent e) { |
64 |
} |
65 |
|
66 |
/* (non-Javadoc)
|
67 |
* @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
|
68 |
*/
|
69 |
public void windowClosed(WindowEvent e) { |
70 |
System.exit(0); |
71 |
} |
72 |
|
73 |
/* (non-Javadoc)
|
74 |
* @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
|
75 |
*/
|
76 |
public void windowClosing(WindowEvent arg0) { |
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 |
} |
85 |
|
86 |
/* (non-Javadoc)
|
87 |
* @see java.awt.event.WindowListener#windowDeiconified(java.awt.event.WindowEvent)
|
88 |
*/
|
89 |
public void windowDeiconified(WindowEvent e) { |
90 |
} |
91 |
|
92 |
/* (non-Javadoc)
|
93 |
* @see java.awt.event.WindowListener#windowIconified(java.awt.event.WindowEvent)
|
94 |
*/
|
95 |
public void windowIconified(WindowEvent e) { |
96 |
} |
97 |
|
98 |
/* (non-Javadoc)
|
99 |
* @see java.awt.event.WindowListener#windowOpened(java.awt.event.WindowEvent)
|
100 |
*/
|
101 |
public void windowOpened(WindowEvent e) { |
102 |
} |
103 |
|
104 |
/* (non-Javadoc)
|
105 |
* @see java.awt.event.KeyListener#keyPressed(java.awt.event.KeyEvent)
|
106 |
*/
|
107 |
public void keyPressed(KeyEvent e) { |
108 |
} |
109 |
|
110 |
/* (non-Javadoc)
|
111 |
* @see java.awt.event.KeyListener#keyReleased(java.awt.event.KeyEvent)
|
112 |
*/
|
113 |
public void keyReleased(KeyEvent e) { |
114 |
} |
115 |
|
116 |
/* (non-Javadoc)
|
117 |
* @see java.awt.event.KeyListener#keyTyped(java.awt.event.KeyEvent)
|
118 |
*/
|
119 |
public void keyTyped(KeyEvent e) { |
120 |
} |
121 |
} |