public class ClearRecentFilesMenuAction extends AbstractApplicationAction
This action is called when the user selects the Clear Recent Files item in
the Recent Files sub-menu of the File menu. The action and the menu item
is automatically created by the application, when the
ApplicationModel
provides a LoadFileAction
or a
OpenFileAction
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
ClearRecentFilesMenuAction(Application app)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected void |
installApplicationListeners(Application app)
Installs listeners on the application object.
|
protected void |
uninstallApplicationListeners(Application app)
Installs listeners on the application object.
|
dispose, getApplication, isEnabled, setEnabled, updateApplicationEnabled
public static final java.lang.String ID
public ClearRecentFilesMenuAction(Application app)
protected void installApplicationListeners(Application app)
installApplicationListeners
in class AbstractApplicationAction
protected void uninstallApplicationListeners(Application app)
uninstallApplicationListeners
in class AbstractApplicationAction
public void actionPerformed(java.awt.event.ActionEvent e)