Class NMTriStateAction

All Implemented Interfaces:
ActionListener, Serializable, Cloneable, Comparable, EventListener, Action
Direct Known Subclasses:
MDTriStateAction

@OpenApiAll public class NMTriStateAction extends BaseNMStateAction
See Also:
  • Field Details

    • TRI_STATE

      public static final String TRI_STATE
      The state property. Value of this property is an enumeration
      See Also:
  • Constructor Details

    • NMTriStateAction

      public NMTriStateAction(@CheckForNull String id, @CheckForNull String name, @CheckForNull KeyStroke stroke, @CheckForNull String group)
    • NMTriStateAction

      public NMTriStateAction(@CheckForNull String id, @CheckForNull String name, int mnemonic, @CheckForNull String group)
    • NMTriStateAction

      public NMTriStateAction(@CheckForNull String id, @CheckForNull String name, @CheckForNull KeyStroke stroke)
    • NMTriStateAction

      public NMTriStateAction(@CheckForNull String id, @CheckForNull String name, int mnemonic)
  • Method Details

    • setState

      public void setState(NMTriStateAction.ACTION_STATE state)
      Sets action String state.
      Parameters:
      state - new state of action.
    • getState

      public NMTriStateAction.ACTION_STATE getState()
      Returns:
      the state of the action
    • setMixedIconSupplier

      public void setMixedIconSupplier(Supplier<Icon> mixedIconSupplier)
    • setSelectedIconSupplier

      public void setSelectedIconSupplier(Supplier<Icon> selectedIconSupplier)
    • setUnselectedIconSupplier

      public void setUnselectedIconSupplier(Supplier<Icon> unselectedIconSupplier)
    • actionPerformed

      public void actionPerformed(@CheckForNull ActionEvent e)
      Executes given action.
      Specified by:
      actionPerformed in interface ActionListener
      Specified by:
      actionPerformed in class NMAction
      Parameters:
      e - event caused execution.
    • accept

      public void accept(ActionsVisitor visitor)
      Accepts ActionsVisitor using Visitor design pattern.
      Overrides:
      accept in class NMAction
      Parameters:
      visitor - visitor to accept.