class EventLogManagerController.RecentButtonItemActionListener extends Object implements ActionListener
ActionListener
for defining the
actionPerformed(ActionEvent)
method and creating a specific listener to use on the JMenuItem
items of the JPopupMenu
pop-up added to an
MenuAreaButton
button by the
EventLogManagerController.RecentButtonMouseListener
listener.
The implemented method gets from the selected JMenuItem
its action command
(that represents a path to a file) and ask the EventLogManagerController.editorManager
to open the corresponding file.
ActionListener
,
JMenuItem
,
JPopupMenu
,
MenuAreaButton
,
EventLogManagerController.RecentButtonMouseListener
Constructor and Description |
---|
RecentButtonItemActionListener() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs.
|
public void actionPerformed(ActionEvent e)
The method gets from the JMenuItem
that generates the event its action command
(that represents a path to a file) and ask the EventLogManagerController.editorManager
to open the corresponding file.
actionPerformed
in interface ActionListener