Class BasicButtonListener
java.lang.Object
javax.swing.plaf.basic.BasicButtonListener
- All Implemented Interfaces:
- FocusListener,- MouseListener,- MouseMotionListener,- PropertyChangeListener,- EventListener,- ChangeListener
public class BasicButtonListener
extends Object
implements MouseListener, MouseMotionListener, FocusListener, ChangeListener, PropertyChangeListener
Button Listener
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new instance ofBasicButtonListener.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidChecks the opacity of theAbstractButton.voidInvoked when a component gains the keyboard focus.voidInvoked when a component loses the keyboard focus.voidRegister default key actions: pressing space to "click" a button and registering the keyboard mnemonic (if any).voidInvoked when the mouse button has been clicked (pressed and released) on a component.voidInvoked when a mouse button is pressed on a component and then dragged.voidInvoked when the mouse enters a component.voidInvoked when the mouse exits a component.voidInvoked when the mouse cursor has been moved onto a component but no buttons have been pushed.voidInvoked when a mouse button has been pressed on a component.voidInvoked when a mouse button has been released on a component.voidThis method gets called when a bound property is changed.voidInvoked when the target of the listener has changed its state.voidUnregister default key actions.
- 
Constructor Details- 
BasicButtonListenerConstructs a new instance ofBasicButtonListener.- Parameters:
- b- an abstract button
 
 
- 
- 
Method Details- 
propertyChangeDescription copied from interface:PropertyChangeListenerThis method gets called when a bound property is changed.- Specified by:
- propertyChangein interface- PropertyChangeListener
- Parameters:
- e- A PropertyChangeEvent object describing the event source and the property that has changed.
 
- 
checkOpacityChecks the opacity of theAbstractButton.- Parameters:
- b- an abstract button
 
- 
installKeyboardActionsRegister default key actions: pressing space to "click" a button and registering the keyboard mnemonic (if any).- Parameters:
- c- a component
 
- 
uninstallKeyboardActionsUnregister default key actions.- Parameters:
- c- a component
 
- 
stateChangedDescription copied from interface:ChangeListenerInvoked when the target of the listener has changed its state.- Specified by:
- stateChangedin interface- ChangeListener
- Parameters:
- e- a ChangeEvent object
 
- 
focusGainedDescription copied from interface:FocusListenerInvoked when a component gains the keyboard focus.- Specified by:
- focusGainedin interface- FocusListener
- Parameters:
- e- the event to be processed
 
- 
focusLostDescription copied from interface:FocusListenerInvoked when a component loses the keyboard focus.- Specified by:
- focusLostin interface- FocusListener
- Parameters:
- e- the event to be processed
 
- 
mouseMovedDescription copied from interface:MouseMotionListenerInvoked when the mouse cursor has been moved onto a component but no buttons have been pushed.- Specified by:
- mouseMovedin interface- MouseMotionListener
- Parameters:
- e- the event to be processed
 
- 
mouseDraggedDescription copied from interface:MouseMotionListenerInvoked when a mouse button is pressed on a component and then dragged.MOUSE_DRAGGEDevents will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGEDevents may not be delivered during a native Drag&Drop operation.- Specified by:
- mouseDraggedin interface- MouseMotionListener
- Parameters:
- e- the event to be processed
 
- 
mouseClickedDescription copied from interface:MouseListenerInvoked when the mouse button has been clicked (pressed and released) on a component.- Specified by:
- mouseClickedin interface- MouseListener
- Parameters:
- e- the event to be processed
 
- 
mousePressedDescription copied from interface:MouseListenerInvoked when a mouse button has been pressed on a component.- Specified by:
- mousePressedin interface- MouseListener
- Parameters:
- e- the event to be processed
 
- 
mouseReleasedDescription copied from interface:MouseListenerInvoked when a mouse button has been released on a component.- Specified by:
- mouseReleasedin interface- MouseListener
- Parameters:
- e- the event to be processed
 
- 
mouseEnteredDescription copied from interface:MouseListenerInvoked when the mouse enters a component.- Specified by:
- mouseEnteredin interface- MouseListener
- Parameters:
- e- the event to be processed
 
- 
mouseExitedDescription copied from interface:MouseListenerInvoked when the mouse exits a component.- Specified by:
- mouseExitedin interface- MouseListener
- Parameters:
- e- the event to be processed
 
 
-