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 JComponent
private boolean
If the mouse pointer is currently inside the designated area (fetched from the associatedtrackableUI
),this
flag istrue
.private ButtonModel
Surrogate model for tracking control status.private StateTransitionTracker
private TransitionAwareUI
Object that is queried for mouse events. -
Constructor Summary
ConstructorsConstructorDescriptionRolloverTextControlListener
(JComponent component, TransitionAwareUI trackableUI, ButtonModel model) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
void
void
void
-
Field Details
-
isMouseInside
private boolean isMouseInsideIf the mouse pointer is currently inside the designated area (fetched from the associatedtrackableUI
),this
flag 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:
focusGained
in interfaceFocusListener
-
focusLost
- Specified by:
focusLost
in interfaceFocusListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-