| Modifier and Type | Field and Description |
|---|---|
| private final InputMap | |
| private InvalidationListener | |
| private boolean | keyDown
Indicates that a keyboard key has been pressed which represents the event (this could be space bar for example). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public InputMap | getInputMap()
Implements abstract com. * Implementation of BehaviorBase API * * |
| protected void | keyPressed(KeyEvent e)
This function is invoked when an appropriate keystroke occurs which causes this button to be armed if it is not already armed by a mouse press. |
| protected void | keyReleased(KeyEvent e)
Invoked when a valid keystroke release occurs which causes the button to fire if it was armed by a keyPress. |
| protected void | |
| protected void | |
| protected void | |
| protected void |
| buttonInputMap | back to summary |
|---|---|
| private final InputMap<C> buttonInputMap | |
| focusListener | back to summary |
|---|---|
| private InvalidationListener focusListener | |
| keyDown | back to summary |
|---|---|
| private boolean keyDown Indicates that a keyboard key has been pressed which represents the event (this could be space bar for example). As long as keyDown is true, we are also armed, and will ignore mouse events related to arming. Note this is made package private solely for the sake of testing. | |
| ButtonBehavior | back to summary |
|---|---|
| public ButtonBehavior(C control) * Constructors * * | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides com.
| |
| focusChanged | back to summary |
|---|---|
| private void focusChanged(Observable o) * Focus change handling * * | |
| getInputMap | back to summary |
|---|---|
| public InputMap Implements abstract com. * Implementation of BehaviorBase API * *
| |
| keyPressed | back to summary |
|---|---|
| protected void keyPressed(KeyEvent e) This function is invoked when an appropriate keystroke occurs which causes this button to be armed if it is not already armed by a mouse press. | |
| keyReleased | back to summary |
|---|---|
| protected void keyReleased(KeyEvent e) Invoked when a valid keystroke release occurs which causes the button to fire if it was armed by a keyPress. | |
| mouseEntered | back to summary |
|---|---|
| protected void mouseEntered(MouseEvent e) Invoked when the mouse enters the Button. If the Button had been armed by a mouse press and the mouse is still pressed, then this will cause the button to be rearmed. | |
| mouseExited | back to summary |
|---|---|
| protected void mouseExited(MouseEvent e) Invoked when the mouse exits the Button. If the Button is armed due to a mouse press, then this function will disarm the button upon the mouse exiting it. | |
| mousePressed | back to summary |
|---|---|
| protected void mousePressed(MouseEvent e) Invoked when a mouse press has occurred over the button. In addition to potentially arming the Button, this will transfer focus to the button | |
| mouseReleased | back to summary |
|---|---|
| protected void mouseReleased(MouseEvent e) Invoked when a mouse release has occurred. We determine whether this was done in a manner that would fire the button's action. This happens only if the button was armed by a corresponding mouse press. | |