com.quadrique.jbuildingblocks.gui
Class ShortcutsViewAction
java.lang.Object
javax.swing.AbstractAction
com.quadrique.jbuildingblocks.gui.ActionBase
com.quadrique.jbuildingblocks.gui.ShortcutsViewAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public class ShortcutsViewAction
- extends ActionBase
This class represents an action that is used internally by the ShortcutsViews panel to
switch from one view to the other.
- Author:
- Hervé Rivere
- See Also:
- Serialized Form
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
|
Method Summary |
void |
actionPerformed(ActionEvent zEvent)
This method is called whenever the corresponding shortcut button is selected by the end user. |
ShortcutsViewAction
public ShortcutsViewAction(String zName,
String zTooltipText,
String zIconFileName,
int zMnemonic,
String zViewId,
ShortcutsViews zShortcutsViews)
throws Exception
- constructor
- Parameters:
zName - the name of the actionzTooltipText - the tooltip text to use for this actionzIconFileName - the name of the icon image file. The file will be loaded with the Resources classzMnemonic - the mnemonic to use for the action (e.g. KeyEvent.VK_D for the letter 'd')zViewId - the identifier of the viewzShortcutsViews - the view
- Throws:
Exception - if an error occurs
actionPerformed
public void actionPerformed(ActionEvent zEvent)
- This method is called whenever the corresponding shortcut button is selected by the end user.
it calls the viewIsDeactivated() on the current view and activates the new view
- Parameters:
zEvent - the event
Copyright © 2001-2009 Quadrique Corporation. All Rights Reserved.