Class MultipleKeyAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener,, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

    public class MultipleKeyAction
    extends DockingKeyBindingAction
    Action that manages multiple PluginActions mapped to this action's key binding.
    See Also:
    Serialized Form
    • Constructor Detail

      • MultipleKeyAction

        public MultipleKeyAction​(DockingTool tool,
                                 ComponentProvider provider,
                                 DockingActionIf action,
                                 javax.swing.KeyStroke keyStroke)
        Creates new MultipleKeyAction
        tool - used to determine context
        provider - the provider, if any, associated with the action
        action - action that will be added to the list of actions bound to a keystroke
        keyStroke - the keystroke, if any, associated with the action
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • isEnabled

        public boolean isEnabled()
        Returns the enabled state of the Action. When enabled, any component associated with this object is active and able to fire this object's actionPerformed method.
        Specified by:
        isEnabled in interface javax.swing.Action
        isEnabled in class DockingKeyBindingAction
        true if this Action is enabled
      • setEnabled

        public void setEnabled​(boolean newValue)
        Enables or disables the action. This affects all uses of the action. Note that for popups, this affects whether or not the option is "grayed out", not whether the action is added to the popup.
        Specified by:
        setEnabled in interface javax.swing.Action
        setEnabled in class javax.swing.AbstractAction
        newValue - true to enable the action, false to disable it
        See Also:
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent event)
        Invoked when an action occurs.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        actionPerformed in class DockingKeyBindingAction
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object