Package groovy.util

# Class ObservableList.ElementClearedEvent

java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
groovy.util.ObservableList.ElementEvent
groovy.util.ObservableList.ElementClearedEvent

All Implemented Interfaces:
  `Serializable`

Enclosing class:
  ObservableList

public static class ObservableList.ElementClearedEvent extends ObservableList.ElementEvent
Event fired when the list is cleared.

See Also:
  - Serialized Form

- ## Field Summary

  ### Fields inherited from class java.util.EventObject

  `source`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ElementClearedEvent(Object source, List values)`
  Creates a cleared-list event.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List`
  `getValues()`
  Returns the removed elements.

  ### Methods inherited from class groovy.util.ObservableList.ElementEvent

  `getChangeType, getIndex, getType, getTypeAsString`

  ### Methods inherited from class java.beans.PropertyChangeEvent

  `getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId, toString`

  ### Methods inherited from class java.util.EventObject

  `getSource`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ElementClearedEvent

    public ElementClearedEvent(Object source, List values)
    Creates a cleared-list event.
    Parameters:
      `source` - the event source
      `values` - the removed elements

- ## Method Details

  - ### getValues

    public List getValues()
    Returns the removed elements.
    Returns:
      an unmodifiable view of removed elements