Class RecentItemEvent<M,​T>

  • Type Parameters:
    M - the type of menu
    T - the type of item
    All Implemented Interfaces:
    Serializable

    public class RecentItemEvent<M,​T>
    extends EventObject
    Event that gets sent when recent items change or get selected.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Item

        protected T m_Item
        the affected item.
    • Constructor Detail

      • RecentItemEvent

        public RecentItemEvent​(AbstractRecentItemsHandler<M,​T> source,
                               T file)
        Initializes the event.
        Parameters:
        source - the handler that triggered the event
        file - the affected item
    • Method Detail

      • getItem

        public T getItem()
        Returns the affected file.
        Returns:
        the file