Revision 2967 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/gazetteer/ui/SearchDialogPanel.java
SearchDialogPanel.java | ||
---|---|---|
68 | 68 |
*/ |
69 | 69 |
public class SearchDialogPanel extends JPanel implements ActionListener,TreeSelectionListener { |
70 | 70 |
//Panels |
71 |
JPanel ppalPanel = null; |
|
72 |
SearchPanel controlsPanel = null; |
|
73 |
JPanel buttonsPanel = null; |
|
71 |
protected JPanel ppalPanel = null;
|
|
72 |
protected SearchPanel controlsPanel = null;
|
|
73 |
protected JPanel buttonsPanel = null;
|
|
74 | 74 |
|
75 | 75 |
//Buttons |
76 | 76 |
private JButton searchButton = null; |
... | ... | |
214 | 214 |
} |
215 | 215 |
|
216 | 216 |
public void showResults() { |
217 |
// JDialog dialog = new ShowResultsDialog(cliente, nodesRecords, 1); |
|
218 | 217 |
Feature[] features = new adlFeatureParser().parse(nodesRecords[0]); |
219 |
for (int i=0 ; i<features.length ; i++){ |
|
220 |
System.out.println("ID: " + features[i].getId()); |
|
221 |
System.out.println("NAME: " + features[i].getName()); |
|
222 |
System.out.println("DESCRIPTION: " + features[i].getDescription()); |
|
223 |
System.out.println("COOR: X=" + features[i].getCoordinates().getX() + " Y=" +features[i].getCoordinates().getY() ); |
|
218 |
if (features.length == 0){ |
|
219 |
JOptionPane.showMessageDialog(this, |
|
220 |
"La b?squeda no ha producido ning?n resultado", "B?squeda de Gazetteer", |
|
221 |
JOptionPane.INFORMATION_MESSAGE); |
|
222 |
}else{ |
|
223 |
ShowResultsActionPerformed(features); |
|
224 | 224 |
} |
225 | 225 |
} |
226 |
|
|
226 |
|
|
227 |
public void ShowResultsActionPerformed(Feature[] features){ |
|
228 |
new ShowResultsDialog(this.client,features,controlsPanel.getNPaginas()); |
|
229 |
} |
|
230 |
|
|
231 |
|
|
232 |
|
|
227 | 233 |
/** |
228 | 234 |
* It loads the fields for the feature |
229 | 235 |
* @param feature |
Also available in: Unified diff