Class BaseNMStateAction

  • 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:
    NMStateAction, NMTriStateAction

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

      • GROUPED

        public static final java.lang.String GROUPED
        Flag indicates that in group of NMStateActions only one action can have "state" true (its radio buttons actions).
        See Also:
        Constant Field Values
    • Constructor Detail

      • BaseNMStateAction

        public BaseNMStateAction​(@CheckForNull
                                 java.lang.String id,
                                 @CheckForNull
                                 java.lang.String name,
                                 @CheckForNull
                                 javax.swing.KeyStroke stroke,
                                 @CheckForNull
                                 java.lang.String group)
        Creates action with given id, name, key stroke.
        Parameters:
        id - the id of the action.
        name - the name of the action.
        stroke - the key stroke of the action
        group - the name of the related commands group.
      • BaseNMStateAction

        public BaseNMStateAction​(@CheckForNull
                                 java.lang.String id,
                                 @CheckForNull
                                 java.lang.String name,
                                 int mnemonic,
                                 @CheckForNull
                                 java.lang.String group)
        Constructs the action with given id, name, mnemonic key.
        Parameters:
        id - the id of the action.
        name - the name of the action.
        mnemonic - the mnemonic key of the action
        group - the name of the related commands group.
      • BaseNMStateAction

        public BaseNMStateAction​(@CheckForNull
                                 java.lang.String id,
                                 @CheckForNull
                                 java.lang.String name,
                                 @CheckForNull
                                 javax.swing.KeyStroke stroke)
        Creates action with given id, name, key stroke.
        Parameters:
        id - the id of the action.
        name - the name of the action.
        stroke - the key stroke of the action
      • BaseNMStateAction

        public BaseNMStateAction​(@CheckForNull
                                 java.lang.String id,
                                 @CheckForNull
                                 java.lang.String name,
                                 int mnemonic)
        Constructs the action with given id, name, mnemonic key.
        Parameters:
        id - the id of the action.
        name - the name of the action.
        mnemonic - the mnemonic key of the action
    • Method Detail

      • isGrouped

        public boolean isGrouped()
        Return grouped property value.
        Returns:
        true if this action is grouped state action.
      • setGrouped

        public void setGrouped​(boolean grouped)
        Sets new grouped property value.
        Parameters:
        grouped - new value of grouped flag.