skrueger.geotools.selection
Class StyledLayerSelectionModelSynchronizer<E extends StyledLayerSelectionModel<?>>

java.lang.Object
  extended by skrueger.geotools.selection.StyledLayerSelectionModelSynchronizer<E>
Type Parameters:
E - The concrete implementation of StyledLayerSelectionModel that this Synchronizer works on.
All Implemented Interfaces:
PropertyChangeListener, EventListener
Direct Known Subclasses:
ChartSelectionSynchronizer, FeatureMapLayerSelectionSynchronizer, TableSelectionSynchronizer

public abstract class StyledLayerSelectionModelSynchronizer<E extends StyledLayerSelectionModel<?>>
extends Object
implements PropertyChangeListener

The StyledLayerSelectionModelSynchronizer is the super class for all

Author:
mojays

Field Summary
protected  E layerSelModel
          Holds the selection model of the layer to keep synchronized with the feature table.
protected  Logger LOGGER
           
protected  boolean selectionChangeCausedByMe
          Flag to avoid event circles between DpLayerVectorSelectionModel and ListSelectionModel of the feature table.
 
Constructor Summary
protected StyledLayerSelectionModelSynchronizer(E layerSelModel)
          Creates a new synchronizer
 
Method Summary
 boolean isEnabled()
           
 void setEnabled(boolean enabled)
          Allows to disable this Synchronizer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Field Detail

LOGGER

protected final Logger LOGGER

selectionChangeCausedByMe

protected boolean selectionChangeCausedByMe
Flag to avoid event circles between DpLayerVectorSelectionModel and ListSelectionModel of the feature table.


layerSelModel

protected final E extends StyledLayerSelectionModel<?> layerSelModel
Holds the selection model of the layer to keep synchronized with the feature table.

Constructor Detail

StyledLayerSelectionModelSynchronizer

protected StyledLayerSelectionModelSynchronizer(E layerSelModel)
Creates a new synchronizer

Parameters:
layerSelModel - layer selection model to keep synchronized with
Method Detail

setEnabled

public void setEnabled(boolean enabled)
Allows to disable this Synchronizer. Used to disable the selection functionality if no corresponding dialog is open.

Parameters:
enabled - true or false

isEnabled

public boolean isEnabled()