project35.desktopDeployment
Class MenuActionListener
java.lang.Object
project35.desktopDeployment.MenuActionListener
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
public abstract class MenuActionListener
- extends java.lang.Object
- implements java.awt.event.ActionListener
Has methods for managing items in menus that appear in the Project35 menu bar.
holds references to objects most menus are going to access such as the containing
Project35 dialog, and that dialog's tree and record form components.
Copyright (c) Kevin Garwood and University of Manchester 2007.
All rights reserved. Licensed under the Academic Free License
version 3.0. For more information on the terms and conditions,
please see the file "LICENSE" that is included in this distribution.
Copyright (c) 2008 Kevin Garwood for Project35. This code is
licensed under the Academic Free License version 3.0. For more information
on the terms and conditions, please see the file "LICENSE" that is included
in this distribution.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
menu
protected javax.swing.JMenu menu
navigationTree
protected NavigationTree navigationTree
parentDialog
protected Project35Dialog parentDialog
recordView
protected RecordView recordView
MenuActionListener
public MenuActionListener(Project35Dialog parentDialog,
NavigationTree navigationTree,
RecordView recordView)
getMenu
public javax.swing.JMenu getMenu()
updateMenu
public abstract void updateMenu()
enableFeature
public void enableFeature(java.lang.String featureName,
boolean enableFeature)
- used to turn menu items off and on. When Project35 is used as a component,
the caller may want to disable or enable various file menu options that
would appear if it were invoked as an application.
- Parameters:
featureName
- corresponds to the name of the buttonenableFeature
- true if feature should be enabled; otherwise disable
feature
addMenuItem
protected void addMenuItem(javax.swing.JMenuItem menuItem)
addCustomisedItem
public void addCustomisedItem(java.awt.Component component)
- keeps track of customised menu items
addCustomisedItemsToMenu
protected void addCustomisedItemsToMenu()
actionPerformed
public abstract void actionPerformed(java.awt.event.ActionEvent actionEvent)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener