com.quadrique.jbuildingblocks.gui
Class ShortcutsViewAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.quadrique.jbuildingblocks.gui.ActionBase
          extended by 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

Field Summary
 
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
 
Constructor Summary
ShortcutsViewAction(String zName, String zTooltipText, String zIconFileName, int zMnemonic, String zViewId, ShortcutsViews zShortcutsViews)
          constructor
 
Method Summary
 void actionPerformed(ActionEvent zEvent)
          This method is called whenever the corresponding shortcut button is selected by the end user.
 
Methods inherited from class com.quadrique.jbuildingblocks.gui.ActionBase
getAccelerator, getIcon, getMnemonic, getName, getTooltipText, setAccelerator, setIcon, setMnemonic, toString, updateAction
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShortcutsViewAction

public ShortcutsViewAction(String zName,
                           String zTooltipText,
                           String zIconFileName,
                           int zMnemonic,
                           String zViewId,
                           ShortcutsViews zShortcutsViews)
                    throws Exception
constructor

Parameters:
zName - the name of the action
zTooltipText - the tooltip text to use for this action
zIconFileName - the name of the icon image file. The file will be loaded with the Resources class
zMnemonic - the mnemonic to use for the action (e.g. KeyEvent.VK_D for the letter 'd')
zViewId - the identifier of the view
zShortcutsViews - the view
Throws:
Exception - if an error occurs
Method Detail

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.