/[schmitzm]/branches/2.1/src/skrueger/geotools/selection/TableSelectionSynchronizer.java
ViewVC logotype

Diff of /branches/2.1/src/skrueger/geotools/selection/TableSelectionSynchronizer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 100 by alfonx, Fri May 8 12:29:45 2009 UTC revision 106 by alfonx, Fri May 8 15:13:49 2009 UTC
# Line 50  import skrueger.geotools.selection.Style Line 50  import skrueger.geotools.selection.Style
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           */           */
# Line 69  public class TableSelectionSynchronizer Line 67  public class TableSelectionSynchronizer
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();
# Line 109  public class TableSelectionSynchronizer Line 105  public class TableSelectionSynchronizer
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;

Legend:
Removed from v.100  
changed lines
  Added in v.106

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26