50 |
* @author <a href="mailto:[email protected]">Martin Schmitz</a> |
* @author <a href="mailto:[email protected]">Martin Schmitz</a> |
51 |
* (University of Bonn/Germany) |
* (University of Bonn/Germany) |
52 |
*/ |
*/ |
53 |
public class TableSelectionSynchronizer extends |
public class TableSelectionSynchronizer extends StyledLayerSelectionModelSynchronizer<StyledFeatureLayerSelectionModel> implements ListSelectionListener { |
|
StyledLayerSelectionModelSynchronizer<Feature> implements |
|
|
ListSelectionListener { |
|
54 |
/** |
/** |
55 |
* Holds the table to keep synchronized with the layer selection model. |
* Holds the table to keep synchronized with the layer selection model. |
56 |
*/ |
*/ |
67 |
* @param table |
* @param table |
68 |
* table to keep synchronized with the layer selection model |
* table to keep synchronized with the layer selection model |
69 |
*/ |
*/ |
70 |
public TableSelectionSynchronizer( |
public TableSelectionSynchronizer(StyledFeatureLayerSelectionModel layerSelModel, JTable table) { |
|
StyledFeatureLayerSelectionModel layerSelModel, JTable table) { |
|
|
|
|
71 |
super(layerSelModel); |
super(layerSelModel); |
72 |
|
|
73 |
TableModel model = table.getModel(); |
TableModel model = table.getModel(); |
105 |
Vector<Feature> newSelection = layerSelModel.getSelection(); |
Vector<Feature> newSelection = layerSelModel.getSelection(); |
106 |
if (newSelection == null) |
if (newSelection == null) |
107 |
return; |
return; |
108 |
|
|
109 |
|
// LOGGER.debug("Table pop changed "+selEvt); |
110 |
|
// LOGGER.debug("Table pop changed to "+newSelection); |
111 |
|
|
112 |
// Avoid event circles in valueChanged(..) |
// Avoid event circles in valueChanged(..) |
113 |
selectionChangeCausedByMe = true; |
selectionChangeCausedByMe = true; |