Package org.jboss.as.cli.gui.metacommand
Class ChooseScriptAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.jboss.as.cli.gui.metacommand.ScriptAction
-
- org.jboss.as.cli.gui.metacommand.ChooseScriptAction
-
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
public class ChooseScriptAction extends ScriptAction
Action that allows the user to choose a script from the file system.- Author:
- Stan Silvert ssilvert@redhat.com (C) 2012 Red Hat Inc.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.as.cli.gui.metacommand.ScriptAction
ScriptAction.ScriptRunner
-
-
Field Summary
-
Fields inherited from class org.jboss.as.cli.gui.metacommand.ScriptAction
cliGuiCtx
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
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
Constructors Constructor Description ChooseScriptAction(ScriptMenu menu, CliGuiContext cliGuiCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent e)Subclasses should override this method and then call runScript() when a script File is determined.-
Methods inherited from class org.jboss.as.cli.gui.metacommand.ScriptAction
runScript
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
ChooseScriptAction
public ChooseScriptAction(ScriptMenu menu, CliGuiContext cliGuiCtx)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
Description copied from class:ScriptActionSubclasses should override this method and then call runScript() when a script File is determined.- Specified by:
actionPerformedin interfaceActionListener- Specified by:
actionPerformedin classScriptAction
-
-