Class RemoveItemsEvent

  • All Implemented Interfaces:
    Serializable

    public class RemoveItemsEvent
    extends EventObject
    Event that gets sent when items are to be deleted.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Indices

        protected int[] m_Indices
        the indices of the items that were removed.
    • Constructor Detail

      • RemoveItemsEvent

        public RemoveItemsEvent​(Object src,
                                int[] indices)
        Initializes the object.
        Parameters:
        src - the source that triggered the event
        indices - the indices of the items to remove
    • Method Detail

      • hasIndices

        public boolean hasIndices()
        Checks whether there are indices stored for this event.
        Returns:
        true if indices of the items are available
      • getIndices

        public int[] getIndices()
        Returns the stored indices.
        Returns:
        the indices, can be null if none stored