Revision 3081 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/ShowResultsDialogPanel.java
ShowResultsDialogPanel.java | ||
---|---|---|
51 | 51 |
import java.awt.event.ActionListener; |
52 | 52 |
|
53 | 53 |
import javax.swing.JButton; |
54 |
import javax.swing.JDialog; |
|
54 | 55 |
import javax.swing.JPanel; |
55 | 56 |
|
56 | 57 |
|
... | ... | |
58 | 59 |
* @author Jorge Piera Llodra (piera_jor@gva.es) |
59 | 60 |
*/ |
60 | 61 |
public class ShowResultsDialogPanel extends JPanel implements ActionListener { |
62 |
//It is needed to close the frame |
|
63 |
private JDialog parent; |
|
64 |
|
|
61 | 65 |
public ShowResultsPanel ppalPanel = null; |
62 | 66 |
public XMLNode[] nodes = null; |
63 | 67 |
CatalogClient client = null; |
64 | 68 |
int currentRecord = 0; |
69 |
|
|
65 | 70 |
JButton nextButton = null; |
66 | 71 |
JButton lastButton = null; |
67 | 72 |
JButton descriptionButton = null; |
... | ... | |
227 | 232 |
} |
228 | 233 |
|
229 | 234 |
public void closeButtonActionPerformed() { |
230 |
setVisible(false); |
|
235 |
parent.setVisible(false);
|
|
231 | 236 |
} |
237 |
/** |
|
238 |
* @param parent The parent to set. |
|
239 |
*/ |
|
240 |
public void setParent(JDialog parent) { |
|
241 |
this.parent = parent; |
|
242 |
} |
|
232 | 243 |
} |
Also available in: Unified diff