| Modifier and Type | Class and Description |
|---|---|
| private static class | BasicButtonListener.
Actions for Buttons. |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | BasicButtonListener(AbstractButton
an abstract button b)Constructs a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | focusGained(FocusEvent e)
Implements java. Invoked when a component gains the keyboard focus. |
| public void | focusLost(FocusEvent e)
Implements java. Invoked when a component loses the keyboard focus. |
| pack-priv InputMap | |
| public void | installKeyboardActions(JComponent
a component c)Register default key actions: pressing space to "click" a button and registering the keyboard mnemonic (if any). |
| pack-priv static void | |
| public void | mouseClicked(MouseEvent e)
Implements java. Invoked when the mouse button has been clicked (pressed and released) on a component. |
| public void | mouseDragged(MouseEvent e)
Implements java. Invoked when a mouse button is pressed on a component and then dragged. |
| public void | mouseEntered(MouseEvent e)
Implements java. Invoked when the mouse enters a component. |
| public void | mouseExited(MouseEvent e)
Implements java. Invoked when the mouse exits a component. |
| public void | mouseMoved(MouseEvent e)
Implements java. Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed. |
| public void | mousePressed(MouseEvent e)
Implements java. Invoked when a mouse button has been pressed on a component. |
| public void | mouseReleased(MouseEvent e)
Implements java. Invoked when a mouse button has been released on a component. |
| public void | propertyChange(PropertyChangeEvent e)
Implements java. This method gets called when a bound property is changed. |
| public void | stateChanged(ChangeEvent e)
Implements javax. Invoked when the target of the listener has changed its state. |
| public void | |
| pack-priv void | updateMnemonicBinding(AbstractButton b)
Resets the binding for the mnemonic in the WHEN_IN_FOCUSED_WINDOW UI InputMap. |
| lastPressedTimestamp | back to summary |
|---|---|
| private long lastPressedTimestamp | |
| shouldDiscardRelease | back to summary |
|---|---|
| private boolean shouldDiscardRelease | |
| BasicButtonListener | back to summary |
|---|---|
| public BasicButtonListener(AbstractButton b) Constructs a new instance of
| |
| checkOpacity | back to summary |
|---|---|
| protected void checkOpacity(AbstractButton b) Checks the opacity of the
| |
| focusGained | back to summary |
|---|---|
| public void focusGained(FocusEvent e) Implements java. Doc from java. Invoked when a component gains the keyboard focus. | |
| focusLost | back to summary |
|---|---|
| public void focusLost(FocusEvent e) Implements java. Doc from java. Invoked when a component loses the keyboard focus. | |
| getInputMap | back to summary |
|---|---|
| pack-priv InputMap getInputMap(int condition, JComponent c) Returns the InputMap for condition | |
| installKeyboardActions | back to summary |
|---|---|
| public void installKeyboardActions(JComponent c) Register default key actions: pressing space to "click" a button and registering the keyboard mnemonic (if any).
| |
| loadActionMap | back to summary |
|---|---|
| pack-priv static void loadActionMap(LazyActionMap map) Populates Buttons actions. | |
| mouseClicked | back to summary |
|---|---|
| public void mouseClicked(MouseEvent e) Implements java. Doc from java. Invoked when the mouse button has been clicked (pressed and released) on a component. | |
| mouseDragged | back to summary |
|---|---|
| public void mouseDragged(MouseEvent e) Implements java. Doc from java. Invoked when a mouse button is pressed on a component and then
dragged.
Due to platform-dependent Drag&Drop implementations,
| |
| mouseEntered | back to summary |
|---|---|
| public void mouseEntered(MouseEvent e) Implements java. Doc from java. Invoked when the mouse enters a component. | |
| mouseExited | back to summary |
|---|---|
| public void mouseExited(MouseEvent e) Implements java. Doc from java. Invoked when the mouse exits a component. | |
| mouseMoved | back to summary |
|---|---|
| public void mouseMoved(MouseEvent e) Implements java. Doc from java. Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed. | |
| mousePressed | back to summary |
|---|---|
| public void mousePressed(MouseEvent e) Implements java. Doc from java. Invoked when a mouse button has been pressed on a component. | |
| mouseReleased | back to summary |
|---|---|
| public void mouseReleased(MouseEvent e) Implements java. Doc from java. Invoked when a mouse button has been released on a component. | |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Implements java. Doc from java. This method gets called when a bound property is changed. | |
| stateChanged | back to summary |
|---|---|
| public void stateChanged(ChangeEvent e) Implements javax. Doc from javax. Invoked when the target of the listener has changed its state. | |
| uninstallKeyboardActions | back to summary |
|---|---|
| public void uninstallKeyboardActions(JComponent c) Unregister default key actions.
| |
| updateMnemonicBinding | back to summary |
|---|---|
| pack-priv void updateMnemonicBinding(AbstractButton b) Resets the binding for the mnemonic in the WHEN_IN_FOCUSED_WINDOW UI InputMap. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | accept(Object sender)
Overrides sun. Overrides default javax. Subclasses that need to conditionalize the enabled state should override this. |
| public void | actionPerformed(ActionEvent e)
Implements java. Invoked when an action occurs. |
| PRESS | back to summary |
|---|---|
| private static final String PRESS | |
| RELEASE | back to summary |
|---|---|
| private static final String RELEASE | |
| Actions | back to summary |
|---|---|
| pack-priv Actions(String name) | |
| accept | back to summary |
|---|---|
| public boolean accept(Object sender) Overrides sun. Overrides default javax. Doc from sun. Subclasses that need to conditionalize the enabled state should
override this. Be aware that
| |
| actionPerformed | back to summary |
|---|---|
| public void actionPerformed(ActionEvent e) Implements java. Doc from java. Invoked when an action occurs. | |