Class ActionRepeatableButtonModel

    • Field Detail

      • autoRepeatTimer

        protected Timer autoRepeatTimer
        Timer for the auto-repeat action mode.
      • toFireActionOnPress

        protected boolean toFireActionOnPress
        Indication whether the action is fired on mouse press (as opposed to mouse release).
    • Constructor Detail

      • ActionRepeatableButtonModel

        public ActionRepeatableButtonModel​(JCommandButton commandButton)
        Creates a new button model.
        Parameters:
        commandButton - The associated command button.
    • Method Detail

      • isFireActionOnPress

        public boolean isFireActionOnPress()
        Description copied from interface: ActionButtonModel
        Returns indication whether the associated actions should be fired on mouse press instead of mouse release.
        Specified by:
        isFireActionOnPress in interface ActionButtonModel
        Returns:
        true if the associated actions are fired on mouse press, false if the associated actions are fired on mouse release.
      • setFireActionOnPress

        public void setFireActionOnPress​(boolean toFireActionOnPress)
        Description copied from interface: ActionButtonModel
        Sets indication whether the associated actions should be fired on mouse press instead of mouse release.
        Specified by:
        setFireActionOnPress in interface ActionButtonModel
        Parameters:
        toFireActionOnPress - if true, the associated actions will be fired on mouse press, otherwise the associated actions will be fired on mouse release.