Class BasicCommandButtonListener
java.lang.Object
org.pushingpixels.radiance.component.internal.ui.common.BasicCommandButtonListener
- All Implemented Interfaces:
FocusListener, MouseListener, MouseMotionListener, EventListener, ChangeListener
public class BasicCommandButtonListener
extends Object
implements MouseListener, MouseMotionListener, FocusListener, ChangeListener
Listener to track user interaction with the command buttons.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidinstallKeyboardActions(JCommandButton button) Installs keyboard action (space / enter keys) on the specified command button.voidvoidvoidvoidvoidvoidvoidvoidprivate voidSynchronizes the action and popup models of the command button with the specified mouse event.voidUninstalls keyboard action from the specified command button.
-
Constructor Details
-
BasicCommandButtonListener
public BasicCommandButtonListener()
-
-
Method Details
-
focusLost
- Specified by:
focusLostin interfaceFocusListener
-
focusGained
- Specified by:
focusGainedin interfaceFocusListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
syncMouseMovement
Synchronizes the action and popup models of the command button with the specified mouse event.- Parameters:
e- Mouse event for the model synchronization.
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
stateChanged
- Specified by:
stateChangedin interfaceChangeListener
-
installKeyboardActions
Installs keyboard action (space / enter keys) on the specified command button.- Parameters:
button- Command button.
-
uninstallKeyboardActions
Uninstalls keyboard action from the specified command button.- Parameters:
button- Command button.
-