Package editor
Class CommonMenus.AbstractRunActionHandler
- java.lang.Object
-
- javax.swing.AbstractAction
-
- editor.CommonMenus.AbstractRunActionHandler
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
- Direct Known Subclasses:
CommonMenus.ClearAndDebugActionHandler,CommonMenus.ClearAndRunActionHandler
- Enclosing class:
- CommonMenus
public abstract static class CommonMenus.AbstractRunActionHandler extends javax.swing.AbstractAction- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Supplier<IRunConfig>_runConfig
-
Constructor Summary
Constructors Constructor Description AbstractRunActionHandler(java.lang.String title, javax.swing.Icon icon, java.util.function.Supplier<IRunConfig> runConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IRunConfiggetRunConfig()booleanisEnabled()protected booleanprepareToExecute()-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
_runConfig
protected final java.util.function.Supplier<IRunConfig> _runConfig
-
-
Constructor Detail
-
AbstractRunActionHandler
AbstractRunActionHandler(java.lang.String title, javax.swing.Icon icon, java.util.function.Supplier<IRunConfig> runConfig)
-
-
Method Detail
-
getRunConfig
protected IRunConfig getRunConfig()
-
prepareToExecute
protected boolean prepareToExecute()
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfacejavax.swing.Action- Overrides:
isEnabledin classjavax.swing.AbstractAction
-
-