Interface ActionButtonModel
- All Superinterfaces:
ButtonModel, ItemSelectable
- All Known Implementing Classes:
ActionRepeatableButtonModel
Model for the action area of
JCommandButton component.-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns indication whether the associated actions should be fired on mouse press instead of mouse release.voidsetFireActionOnPress(boolean toFireActionOnPress) Sets indication whether the associated actions should be fired on mouse press instead of mouse release.Methods inherited from interface ButtonModel
addActionListener, addChangeListener, addItemListener, getActionCommand, getMnemonic, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setRollover, setSelectedMethods inherited from interface ItemSelectable
getSelectedObjects
-
Method Details
-
setFireActionOnPress
void setFireActionOnPress(boolean toFireActionOnPress) Sets indication whether the associated actions should be fired on mouse press instead of mouse release.- Parameters:
toFireActionOnPress- iftrue, 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:
trueif the associated actions are fired on mouse press,falseif the associated actions are fired on mouse release.
-