Class CollectionEvent

  • All Implemented Interfaces:

    public class CollectionEvent
    extends EventObject
    A simple event object to represent all events triggered by FeatureCollection instances (typically change events).
    See Also:
    Serialized Form
    • Field Detail


        public static final int FEATURES_ADDED
        event type constant denoting the adding of a feature
        See Also:
        Constant Field Values

        public static final int FEATURES_REMOVED
        event type constant denoting the removal of a feature
        See Also:
        Constant Field Values

        public static final int FEATURES_CHANGED
        event type constant denoting that features in the collection has been modified
        See Also:
        Constant Field Values
    • Method Detail

      • getCollection

        public FeatureCollection<? extends FeatureType,​? extends Feature> getCollection()
        provides access to the SimpleFeatureCollection which fired the event
        The SimpleFeatureCollection which was the event's source.
      • getEventType

        public int getEventType()
        Provides information on the type of change that has occured. Possible types are: add, remove, change
        an int which must be one of FEATURES_ADDED, FEATURES_REMOVED, FEATURES_CHANGED
      • getFeatures

        public SimpleFeature[] getFeatures()
        Getter for property features.
        Value of property features.