java.lang.Object
com.marginallyclever.ro3.listwithevents.ListWithEvents<T>
Type Parameters:
T - The type of item in the list.

public class ListWithEvents<T> extends Object
A List that fires events when items are added or removed.
  • Constructor Details

    • ListWithEvents

      public ListWithEvents()
  • Method Details

    • add

      public void add(T item)
    • remove

      public void remove(T item)
    • addItemAddedListener

      public void addItemAddedListener(ItemAddedListener<T> listener)
    • removeItemAddedListener

      public void removeItemAddedListener(ItemAddedListener<T> listener)
    • addItemRemovedListener

      public void addItemRemovedListener(ItemRemovedListener<T> listener)
    • removeItemRemovedListener

      public void removeItemRemovedListener(ItemRemovedListener<T> listener)
    • getList

      public List<T> getList()
    • removeAll

      public void removeAll()
    • size

      public int size()
    • addAll

      public void addAll(ArrayList<T> selection)
    • set

      public void set(List<T> selection)
    • set

      public void set(T selection)