|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.DefaultButtonModel
org.pushingpixels.flamingo.api.common.model.ActionRepeatableButtonModel
public class ActionRepeatableButtonModel
Extension of the default button model that supports the
ActionButtonModel interface and repeated invocation of action
listeners on mouse rollover. This is the default core action model set on
JCommandButtons.
| Field Summary | |
|---|---|
protected javax.swing.Timer |
autoRepeatTimer
Timer for the auto-repeat action mode. |
protected boolean |
toFireActionOnPress
Indication whether the action is fired on mouse press (as opposed to mouse release). |
| Fields inherited from class javax.swing.DefaultButtonModel |
|---|
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask |
| Constructor Summary | |
|---|---|
ActionRepeatableButtonModel(JCommandButton commandButton)
Creates a new button model. |
|
| Method Summary | |
|---|---|
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. |
void |
setPressed(boolean b)
|
void |
setRollover(boolean b)
|
| Methods inherited from class javax.swing.DefaultButtonModel |
|---|
addActionListener, addChangeListener, addItemListener, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getActionListeners, getChangeListeners, getGroup, getItemListeners, getListeners, getMnemonic, getSelectedObjects, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.ButtonModel |
|---|
addActionListener, addChangeListener, addItemListener, getActionCommand, getMnemonic, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setSelected |
| Methods inherited from interface java.awt.ItemSelectable |
|---|
getSelectedObjects |
| Field Detail |
|---|
protected javax.swing.Timer autoRepeatTimer
protected boolean toFireActionOnPress
| Constructor Detail |
|---|
public ActionRepeatableButtonModel(JCommandButton commandButton)
commandButton - The associated command button.| Method Detail |
|---|
public void setPressed(boolean b)
setPressed in interface javax.swing.ButtonModelsetPressed in class javax.swing.DefaultButtonModelpublic void setRollover(boolean b)
setRollover in interface javax.swing.ButtonModelsetRollover in class javax.swing.DefaultButtonModelpublic boolean isFireActionOnPress()
ActionButtonModel
isFireActionOnPress in interface ActionButtonModeltrue if the associated actions are fired on mouse
press, false if the associated actions are fired on
mouse release.public void setFireActionOnPress(boolean toFireActionOnPress)
ActionButtonModel
setFireActionOnPress in interface ActionButtonModeltoFireActionOnPress - if true, the associated actions will be fired on
mouse press, otherwise the associated actions will be fired on
mouse release.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||