Class BasicCommandButtonListener
- java.lang.Object
-
- org.pushingpixels.radiance.component.internal.ui.common.BasicCommandButtonListener
-
- All Implemented Interfaces:
java.awt.event.FocusListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.util.EventListener,javax.swing.event.ChangeListener
public class BasicCommandButtonListener extends java.lang.Object implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.FocusListener, javax.swing.event.ChangeListenerListener to track user interaction with the command buttons.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classBasicCommandButtonListener.ButtonActionprivate static classBasicCommandButtonListener.FocusDownActionprivate static classBasicCommandButtonListener.FocusEndActionprivate static classBasicCommandButtonListener.FocusHomeActionprivate static classBasicCommandButtonListener.FocusLeftActionprivate static classBasicCommandButtonListener.FocusRightActionprivate static classBasicCommandButtonListener.FocusTraversalActionprivate static classBasicCommandButtonListener.FocusUpActionprivate static classBasicCommandButtonListener.PopupDismissActionprivate static classBasicCommandButtonListener.PopupToggleActionprivate static classBasicCommandButtonListener.PressActionprivate static classBasicCommandButtonListener.ReleaseAction
-
Constructor Summary
Constructors Constructor Description BasicCommandButtonListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfocusGained(java.awt.event.FocusEvent e)voidfocusLost(java.awt.event.FocusEvent e)voidinstallKeyboardActions(JCommandButton button)Installs keyboard action (space / enter keys) on the specified command button.voidmouseClicked(java.awt.event.MouseEvent e)voidmouseDragged(java.awt.event.MouseEvent e)voidmouseEntered(java.awt.event.MouseEvent e)voidmouseExited(java.awt.event.MouseEvent e)voidmouseMoved(java.awt.event.MouseEvent e)voidmousePressed(java.awt.event.MouseEvent e)voidmouseReleased(java.awt.event.MouseEvent e)voidstateChanged(javax.swing.event.ChangeEvent e)private voidsyncMouseMovement(java.awt.event.MouseEvent e)Synchronizes the action and popup models of the command button with the specified mouse event.voiduninstallKeyboardActions(JCommandButton button)Uninstalls keyboard action from the specified command button.
-
-
-
Method Detail
-
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Specified by:
focusLostin interfacejava.awt.event.FocusListener
-
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Specified by:
focusGainedin interfacejava.awt.event.FocusListener
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressedin interfacejava.awt.event.MouseListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Specified by:
mouseMovedin interfacejava.awt.event.MouseMotionListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener
-
syncMouseMovement
private void syncMouseMovement(java.awt.event.MouseEvent e)
Synchronizes the action and popup models of the command button with the specified mouse event.- Parameters:
e- Mouse event for the model synchronization.
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener
-
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
- Specified by:
stateChangedin interfacejavax.swing.event.ChangeListener
-
installKeyboardActions
public void installKeyboardActions(JCommandButton button)
Installs keyboard action (space / enter keys) on the specified command button.- Parameters:
button- Command button.
-
uninstallKeyboardActions
public void uninstallKeyboardActions(JCommandButton button)
Uninstalls keyboard action from the specified command button.- Parameters:
button- Command button.
-
-