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 class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
installKeyboardActions
(JCommandButton button) Installs keyboard action (space / enter keys) on the specified command button.void
void
void
void
void
void
void
void
private void
Synchronizes the action and popup models of the command button with the specified mouse event.void
Uninstalls keyboard action from the specified command button.
-
Constructor Details
-
BasicCommandButtonListener
public BasicCommandButtonListener()
-
-
Method Details
-
focusLost
- Specified by:
focusLost
in interfaceFocusListener
-
focusGained
- Specified by:
focusGained
in interfaceFocusListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseEntered
- Specified by:
mouseEntered
in 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:
mouseExited
in interfaceMouseListener
-
stateChanged
- Specified by:
stateChanged
in 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.
-