Class PickListEvent<T>

java.lang.Object
java.util.EventObject
org.jppf.ui.picklist.PickListEvent<T>
Type Parameters:
T - The type of the items in the pick list.
All Implemented Interfaces:
Serializable

public class PickListEvent<T> extends EventObject
Event sent by a PickList when the list of picked items changes.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • PickListEvent

      public PickListEvent(PickList<T> pickList, List<T> addedItems, List<T> removedItems)
      Initialize this event with the specified source PickList and picked items.
      Parameters:
      pickList - the PickList from which this event originates.
      addedItems - the items that were added to the selection.
      removedItems - the items that were removed from the selection.
  • Method Details

    • getPickList

      public PickList<T> getPickList()
      Get the pick list component source of this event.
      Returns:
      a PickList object.
    • getAddedItems

      public List<T> getAddedItems()
      Get the items that were added to the selection.
      Returns:
      a list of items which may be empty but never null.
    • getRemovedItems

      public List<T> getRemovedItems()
      Get the items that were removed from the selection.
      Returns:
      a list of items which may be empty but never null.