skrueger.geotools.selection
Class StyledLayerSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.PropertyChangeEvent
          extended by skrueger.geotools.selection.StyledLayerSelectionEvent
All Implemented Interfaces:
Serializable

public class StyledLayerSelectionEvent
extends PropertyChangeEvent

Extends the PropertyChangeEvent by maintaining the event emitter. The emitter is the StyledLayerSelectionModel while the event source holds the component which causes the StyledLayerSelectionModel to invoke the event (e.g. a chart, a map or a feature table).

Author:
Martin Schmitz (University of Bonn/Germany)
See Also:
Serialized Form

Field Summary
protected  StyledLayerSelectionModel<?> emitter
          Holds the StyledLayerSelectionModel which invokes the event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
StyledLayerSelectionEvent(StyledLayerSelectionModel<?> emitter, Object source, String propertyName, Object oldValue, Object newValue)
          Creates a new event.
 
Method Summary
 StyledLayerSelectionModel<?> getEmitter()
          Returns the StyledLayerSelectionModel which invokes the event.
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

emitter

protected StyledLayerSelectionModel<?> emitter
Holds the StyledLayerSelectionModel which invokes the event.

Constructor Detail

StyledLayerSelectionEvent

public StyledLayerSelectionEvent(StyledLayerSelectionModel<?> emitter,
                                 Object source,
                                 String propertyName,
                                 Object oldValue,
                                 Object newValue)
Creates a new event.

Parameters:
emitter - the StyledLayerSelectionModel which invokes the event
source - the object which is responsible for the change (e.g. map or table); can be null if its a refresh event with no responsible
propertyName - the name of the changed property
oldValue - the old property value (can be null)
newValue - the new property value (can be null)
Method Detail

getEmitter

public StyledLayerSelectionModel<?> getEmitter()
Returns the StyledLayerSelectionModel which invokes the event.