Revision 8845 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.wms/org.gvsig.wms.swing/org.gvsig.wms.swing.impl/src/main/java/org/gvsig/wms/swing/impl/DefaultWMSParametersPanelController.java
DefaultWMSParametersPanelController.java | ||
---|---|---|
455 | 455 |
// if(connectionThread != null && connectionThread.isAlive()){ |
456 | 456 |
// connectionThread.interrupt(); |
457 | 457 |
// } |
458 |
firePropertyChange("all", null, null); |
|
458 | 459 |
} |
459 | 460 |
|
460 | 461 |
|
... | ... | |
474 | 475 |
} |
475 | 476 |
|
476 | 477 |
tabWMS.setEnabledAt(4, true); |
478 |
firePropertyChange("all", null, null); |
|
477 | 479 |
} |
478 | 480 |
|
479 | 481 |
/** |
... | ... | |
523 | 525 |
} else { |
524 | 526 |
fillFormats(null); |
525 | 527 |
} |
528 |
firePropertyChange("all", null, null); |
|
526 | 529 |
} |
527 | 530 |
|
528 | 531 |
|
... | ... | |
597 | 600 |
@Override |
598 | 601 |
public void valueChanged(ListSelectionEvent e) { |
599 | 602 |
int index = lstFormats.getSelectedIndex(); |
600 |
format = model.getElementAt(index); |
|
603 |
if(index>=0 && index<model.getSize()){ |
|
604 |
format = model.getElementAt(index); |
|
605 |
} else { |
|
606 |
format = null; |
|
607 |
} |
|
608 |
firePropertyChange("all", null, null); |
|
601 | 609 |
} |
602 | 610 |
}); |
603 | 611 |
lstFormats.setModel(model); |
... | ... | |
615 | 623 |
@Override |
616 | 624 |
public void valueChanged(ListSelectionEvent e) { |
617 | 625 |
int index = lstInfoFormats.getSelectedIndex(); |
618 |
infoFormat = model.getElementAt(index); |
|
626 |
if(index>=0 && index<model.getSize()){ |
|
627 |
infoFormat = model.getElementAt(index); |
|
628 |
} else { |
|
629 |
infoFormat = null; |
|
630 |
} |
|
631 |
firePropertyChange("all", null, null); |
|
619 | 632 |
} |
620 | 633 |
}); |
621 | 634 |
lstInfoFormats.setModel(model); |
... | ... | |
780 | 793 |
updateLstProjections(); |
781 | 794 |
updateTreeStyles(); |
782 | 795 |
// updateLstDimensions(); |
796 |
firePropertyChange("all", null, null); |
|
783 | 797 |
} |
784 | 798 |
|
785 | 799 |
@SuppressWarnings("unchecked") |
... | ... | |
797 | 811 |
if (selectedRow >= 0 && selectedRow < model.getSize()) { |
798 | 812 |
projection = model.getElementAt(selectedRow); |
799 | 813 |
} |
814 |
firePropertyChange("all", null, null); |
|
800 | 815 |
} |
801 | 816 |
}); |
802 | 817 |
|
... | ... | |
902 | 917 |
((StyleTreeModel) treeStyles.getModel()).setSelectedLeaf(treeStyles.getSelectionPath()); |
903 | 918 |
treeStyles.clearSelection(); |
904 | 919 |
repaint(); |
920 |
firePropertyChange("all", null, null); |
|
905 | 921 |
} |
906 | 922 |
}); |
907 | 923 |
} |
... | ... | |
1337 | 1353 |
public boolean refreshLocalCache() { |
1338 | 1354 |
return chkRefreshLocalCache.isSelected(); |
1339 | 1355 |
} |
1356 |
|
|
1357 |
@Override |
|
1358 |
public boolean areSettingsValid() { |
|
1359 |
return serverExplorer!=null && format!=null && infoFormat!=null && selectedLayers!=null && !selectedLayers.isEmpty() && projection!=null; |
|
1360 |
} |
|
1340 | 1361 |
} |
Also available in: Unified diff