Class RolloverTextControlListener
java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.RolloverTextControlListener
- All Implemented Interfaces:
FocusListener, MouseListener, MouseMotionListener, EventListener
public class RolloverTextControlListener
extends Object
implements MouseListener, MouseMotionListener, FocusListener
Control listener for rollover effects. Tracks the mouse motion interaction
for the associated
TransitionAwareUI control.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JComponentprivate booleanIf the mouse pointer is currently inside the designated area (fetched from the associatedtrackableUI),thisflag istrue.private ButtonModelSurrogate model for tracking control status.private StateTransitionTrackerprivate TransitionAwareUIObject that is queried for mouse events. -
Constructor Summary
ConstructorsConstructorDescriptionRolloverTextControlListener(JComponent component, TransitionAwareUI trackableUI, ButtonModel model) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
isMouseInside
private boolean isMouseInsideIf the mouse pointer is currently inside the designated area (fetched from the associatedtrackableUI),thisflag istrue. -
model
Surrogate model for tracking control status. -
trackableUI
Object that is queried for mouse events. This object is responsible for handling the designated (hot-spot) area of the associated control. -
stateTransitionTracker
-
component
-
-
Constructor Details
-
RolloverTextControlListener
public RolloverTextControlListener(JComponent component, TransitionAwareUI trackableUI, ButtonModel model) Simple constructor.- Parameters:
trackableUI- Object that is queried for mouse events.model- Surrogate model for tracking control status.
-
-
Method Details
-
registerListeners
public void registerListeners() -
unregisterListeners
public void unregisterListeners() -
focusGained
- Specified by:
focusGainedin interfaceFocusListener
-
focusLost
- Specified by:
focusLostin interfaceFocusListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-