Interface ActionButtonModel

  • All Superinterfaces:
    javax.swing.ButtonModel, java.awt.ItemSelectable
    All Known Implementing Classes:
    ActionRepeatableButtonModel

    public interface ActionButtonModel
    extends javax.swing.ButtonModel
    Model for the action area of JCommandButton component.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isFireActionOnPress()
      Returns indication whether the associated actions should be fired on mouse press instead of mouse release.
      void setFireActionOnPress​(boolean toFireActionOnPress)
      Sets indication whether the associated actions should be fired on mouse press instead of mouse release.
      • Methods inherited from interface javax.swing.ButtonModel

        addActionListener, addChangeListener, addItemListener, getActionCommand, getGroup, getMnemonic, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setRollover, setSelected
      • Methods inherited from interface java.awt.ItemSelectable

        getSelectedObjects
    • Method Detail

      • setFireActionOnPress

        void setFireActionOnPress​(boolean toFireActionOnPress)
        Sets indication whether the associated actions should be fired on mouse press instead of mouse release.
        Parameters:
        toFireActionOnPress - if true, the associated actions will be fired on mouse press, otherwise the associated actions will be fired on mouse release.
      • isFireActionOnPress

        boolean isFireActionOnPress()
        Returns indication whether the associated actions should be fired on mouse press instead of mouse release.
        Returns:
        true if the associated actions are fired on mouse press, false if the associated actions are fired on mouse release.