Package weka.gui.scripting
Class FileScriptingPanel.BasicAction
java.lang.Object
javax.swing.AbstractAction
weka.gui.scripting.FileScriptingPanel.BasicAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Enclosing class:
- FileScriptingPanel
A slightly extended action class.
- Version:
- $Revision: 15104 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
-
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
ConstructorDescriptionBasicAction
(String name, String icon, String accel, Character mnemonic) Constructor for setting up an action. -
Method Summary
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, toString, wait, wait, wait
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
-
Constructor Details
-
BasicAction
Constructor for setting up an action.- Parameters:
name
- the name of the action (to be displayed in menu/button)icon
- the icon name (no path required if in weka/gui/images), can be nullaccel
- the accelerator command, e.g., "ctrl N", can be nullmnemonic
- the mnemonic character
-