|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.DefaultButtonModel oracle.ide.controls.customtab.AutoRepeatButtonModel
public class AutoRepeatButtonModel
A button model that fires once when pressed and then repeats firing at a fixed delay
Field Summary |
---|
Fields inherited from class javax.swing.DefaultButtonModel |
---|
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask |
Constructor Summary | |
---|---|
AutoRepeatButtonModel()
Same as AutoRepeatButtonModel(int, int) with default init and repeat delays |
|
AutoRepeatButtonModel(int initDelay,
int repeatDelay)
The repeat mode works like for the keyboard. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
setEnabled(boolean b)
|
void |
setPressed(boolean b)
In this model, the action is fired as soon as the button is pressed, not when depressed. |
void |
stopTimer()
|
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, setGroup, setMnemonic, setRollover, setSelected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoRepeatButtonModel()
AutoRepeatButtonModel(int, int)
with default init and repeat delays
public AutoRepeatButtonModel(int initDelay, int repeatDelay)
initDelay
another action is fired, then every repeatDelay
, another action is fired again.
initDelay
- The delay in milliseconds between the first and the second actionPressedrepeatDelay
- The delay in milliseconds between every actionPressed after the second one.Method Detail |
---|
public void setPressed(boolean b)
setPressed
in interface javax.swing.ButtonModel
setPressed
in class javax.swing.DefaultButtonModel
b
- public void setEnabled(boolean b)
setEnabled
in interface javax.swing.ButtonModel
setEnabled
in class javax.swing.DefaultButtonModel
public void stopTimer()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |