Package adams.gui.event
Class RecentItemEvent<M,T>
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.RecentItemEvent<M,T>
-
- Type Parameters:
M
- the type of menuT
- 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 Summary
Fields Modifier and Type Field Description protected T
m_Item
the affected item.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description RecentItemEvent(AbstractRecentItemsHandler<M,T> source, T file)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractRecentItemsHandler<M,T>
getHandler()
Returns the handler that triggered the event.T
getItem()
Returns the affected file.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
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 eventfile
- the affected item
-
-
Method Detail
-
getHandler
public AbstractRecentItemsHandler<M,T> getHandler()
Returns the handler that triggered the event.- Returns:
- the handler
-
getItem
public T getItem()
Returns the affected file.- Returns:
- the file
-
-