public class GhostingListener
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected javax.swing.ButtonModel |
buttonModel |
The associated model.
|
protected javax.swing.JComponent |
comp |
The associated component.
|
protected javax.swing.event.ChangeListener |
modelListener |
Listener on the model changes.
|
protected java.util.Map<AnimationFacet,java.lang.Boolean> |
prevStateMap |
Key -
AnimationFacet, value - Boolean |
| Constructor | Description |
|---|---|
GhostingListener(javax.swing.JComponent comp,
javax.swing.ButtonModel buttonModel) |
Creates a new listener on model changes that can cause ghost animation
transitions.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.pushingpixels.trident.Timeline |
getGhostComponentPressedTimeline() |
|
org.pushingpixels.trident.Timeline |
getGhostIconRolloverTimeline() |
|
static java.util.Map<javax.swing.JComponent,org.pushingpixels.trident.Timeline> |
getRunningGhostPressTimelines() |
|
static java.util.Map<javax.swing.JComponent,org.pushingpixels.trident.Timeline> |
getRunningGhostRolloverTimelines() |
|
void |
registerListeners() |
Registers listeners on the relevant model changes.
|
protected void |
trackModelChange(AnimationFacet animationFacet,
boolean newState) |
Tracks a single change to the model.
|
void |
unregisterListeners() |
Unregisters all listeners on model changes.
|
protected javax.swing.event.ChangeListener modelListener
protected javax.swing.JComponent comp
protected javax.swing.ButtonModel buttonModel
protected java.util.Map<AnimationFacet,java.lang.Boolean> prevStateMap
AnimationFacet, value - Booleanpublic GhostingListener(javax.swing.JComponent comp,
javax.swing.ButtonModel buttonModel)
comp - Component.buttonModel - Model for the component.protected void trackModelChange(AnimationFacet animationFacet, boolean newState)
animationFacet - Animation facet.newState - New value of the relevant attribute of the model.public void registerListeners()
public void unregisterListeners()
public static java.util.Map<javax.swing.JComponent,org.pushingpixels.trident.Timeline> getRunningGhostRolloverTimelines()
public static java.util.Map<javax.swing.JComponent,org.pushingpixels.trident.Timeline> getRunningGhostPressTimelines()
public org.pushingpixels.trident.Timeline getGhostComponentPressedTimeline()
public org.pushingpixels.trident.Timeline getGhostIconRolloverTimeline()