Package editor

Class CommonMenus.AbstractRunActionHandler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.function.Supplier<IRunConfig> _runConfig  
      • 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
      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 IRunConfig getRunConfig()  
      boolean isEnabled()  
      protected boolean prepareToExecute()  
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
      • Methods inherited from interface java.awt.event.ActionListener

        actionPerformed
    • 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:
        isEnabled in interface javax.swing.Action
        Overrides:
        isEnabled in class javax.swing.AbstractAction