Class NMTriStateAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener, javax.swing.Action
    Direct Known Subclasses:
    MDTriStateAction

    @OpenApiAll
    public class NMTriStateAction
    extends BaseNMStateAction
    See Also:
    Serialized Form
    • Field Detail

      • TRI_STATE

        public static final java.lang.String TRI_STATE
        The state property. Value of this property is an enumeration
        See Also:
        Constant Field Values
    • Constructor Detail

      • NMTriStateAction

        public NMTriStateAction​(@CheckForNull
                                java.lang.String id,
                                @CheckForNull
                                java.lang.String name,
                                @CheckForNull
                                javax.swing.KeyStroke stroke,
                                @CheckForNull
                                java.lang.String group)
      • NMTriStateAction

        public NMTriStateAction​(@CheckForNull
                                java.lang.String id,
                                @CheckForNull
                                java.lang.String name,
                                int mnemonic,
                                @CheckForNull
                                java.lang.String group)
      • NMTriStateAction

        public NMTriStateAction​(@CheckForNull
                                java.lang.String id,
                                @CheckForNull
                                java.lang.String name,
                                @CheckForNull
                                javax.swing.KeyStroke stroke)
      • NMTriStateAction

        public NMTriStateAction​(@CheckForNull
                                java.lang.String id,
                                @CheckForNull
                                java.lang.String name,
                                int mnemonic)
    • Method Detail

      • setMixedIconSupplier

        public void setMixedIconSupplier​(java.util.function.Supplier<javax.swing.Icon> mixedIconSupplier)
      • setSelectedIconSupplier

        public void setSelectedIconSupplier​(java.util.function.Supplier<javax.swing.Icon> selectedIconSupplier)
      • setUnselectedIconSupplier

        public void setUnselectedIconSupplier​(java.util.function.Supplier<javax.swing.Icon> unselectedIconSupplier)
      • actionPerformed

        public void actionPerformed​(@CheckForNull
                                    java.awt.event.ActionEvent e)
        Executes given action.
        Specified by:
        actionPerformed in interface java.awt.event.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.