Revision 12733 branches/CatalogYNomenclator_v1_1_0_1005/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/catalogClient/gui/SearchDialog.java
SearchDialog.java | ||
---|---|---|
57 | 57 |
import com.iver.cit.gvsig.project.documents.view.gui.BaseView; |
58 | 58 |
|
59 | 59 |
import es.gva.cit.catalogClient.CatalogClient; |
60 |
import es.gva.cit.catalogClient.drivers.GetRecordsReply; |
|
60 | 61 |
import es.gva.cit.catalogClient.querys.Coordinates; |
61 |
import es.gva.cit.catalogClient.schemas.discoverer.Record;
|
|
62 |
import es.gva.cit.catalogClient.schemas.records.Record;
|
|
62 | 63 |
import es.gva.cit.catalogClient.ui.search.SearchDialogPanel; |
63 | 64 |
import es.gva.cit.catalogClient.utils.Frames; |
64 | 65 |
|
... | ... | |
72 | 73 |
public WindowInfo m_windowInfo = null; |
73 | 74 |
public JDialog parentDialog = null; |
74 | 75 |
|
75 |
public SearchDialog(Object serverConnectFrame,CatalogClient client) {
|
|
76 |
public SearchDialog(CatalogClient client, Object serverConnectFrame) {
|
|
76 | 77 |
super(client,serverConnectFrame); |
77 | 78 |
parentDialog = (JDialog)serverConnectFrame; |
78 | 79 |
setViewChangeListener(); |
... | ... | |
94 | 95 |
|
95 | 96 |
} |
96 | 97 |
|
97 |
public void showResultsActionPerformed(Record[] records) {
|
|
98 |
public void showResultsActionPerformed(GetRecordsReply recordsReply) {
|
|
98 | 99 |
JDialog panel = new JDialog((Frame) PluginServices.getMainFrame(), false); |
99 | 100 |
Frames.centerFrame(panel,420,258); |
100 | 101 |
panel.setTitle(Messages.getText( "gazetteer_search")); |
... | ... | |
102 | 103 |
|
103 | 104 |
ShowResultsDialog dialog = new ShowResultsDialog(panel, |
104 | 105 |
client, |
105 |
records, |
|
106 |
recordsReply,
|
|
106 | 107 |
10); |
107 | 108 |
|
108 | 109 |
panel.getContentPane().add(dialog); |
109 |
panel.show();
|
|
110 |
panel.setVisible(true);
|
|
110 | 111 |
} |
111 | 112 |
|
112 | 113 |
public void closeButtonActionPerformed() { |
... | ... | |
118 | 119 |
*/ |
119 | 120 |
public void resizeButtonActionPerformed(){ |
120 | 121 |
if (isMinimized){ |
121 |
parentDialog.setSize(parentDialog.getWidth(),450);
|
|
122 |
parentDialog.setSize(parentDialog.getWidth(),495);
|
|
122 | 123 |
getLowerPanel().setVisible(true); |
123 | 124 |
getUpperPanel().setUpIcon(); |
124 | 125 |
}else{ |
125 |
parentDialog.setSize(parentDialog.getWidth(),115);
|
|
126 |
parentDialog.setSize(parentDialog.getWidth(),165);
|
|
126 | 127 |
getLowerPanel().setVisible(false); |
127 | 128 |
getUpperPanel().setDownIcon(); |
128 | 129 |
} |
Also available in: Unified diff