Revision 44729 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/searchpanel/DefaultSearchPanel.java
DefaultSearchPanel.java | ||
---|---|---|
313 | 313 |
public Expression getFilterForSelecteds() { |
314 | 314 |
return this.panel.getFilterForSelectedFeature(); |
315 | 315 |
} |
316 |
|
|
317 |
@Override |
|
318 |
public FeatureQuery getQuery() { |
|
319 |
return this.panel.getQuery(); |
|
320 |
} |
|
316 | 321 |
} |
317 | 322 |
|
318 | 323 |
private final FeatureStore store; |
... | ... | |
333 | 338 |
this.acctionListeners = ToolsSwingLocator.getToolsSwingManager().createActionListenerSupport(); |
334 | 339 |
this.actions = new HashMap<>(); |
335 | 340 |
this.parameters = new SearchParameters(); |
336 |
this.parameters.setQuery(this.store.createFeatureQuery()); |
|
341 |
FeatureQuery featureQuery = this.store.createFeatureQuery(); |
|
342 |
featureQuery.retrievesAllAttributes(); |
|
343 |
this.parameters.setQuery(featureQuery); |
|
337 | 344 |
|
338 | 345 |
Search search = (Search) ToolsLocator.getComplementsManager().get( |
339 | 346 |
Search.COMPLEMENT_MANE, getFeatureType() |
... | ... | |
465 | 472 |
); |
466 | 473 |
for (SearchConditionPanelFactory factory : DALSwingLocator.getManager().getSearchConditionPanels()) { |
467 | 474 |
if( factory.isApplicable(store) ) { |
468 |
this.conditionPanels.add(factory.create(this)); |
|
475 |
SearchConditionPanel panel = factory.create(this); |
|
476 |
this.conditionPanels.add(panel); |
|
477 |
this.tabSearchMode.add(factory.getName(), panel.asJComponent()); |
|
469 | 478 |
} |
470 | 479 |
} |
471 | 480 |
|
... | ... | |
539 | 548 |
return query; |
540 | 549 |
} |
541 | 550 |
query.setFilter(filter); |
551 |
query.retrievesAllAttributes(); |
|
542 | 552 |
return query; |
543 | 553 |
} catch (Exception ex) { |
544 | 554 |
LOGGER.warn("Can't build query.",ex); |
Also available in: Unified diff