|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.lafwidget.animation.effects.GhostingListener
public class GhostingListener
Listener for the "ghosting image" effects on buttons.
FadeKind.GHOSTING_BUTTON_PRESS
,
FadeKind.GHOSTING_ICON_ROLLOVER
Field Summary | |
---|---|
protected javax.swing.ButtonModel |
buttonModel
The associated model. |
protected java.awt.Component |
comp
The associated component. |
protected javax.swing.event.ChangeListener |
modelListener
Listener on the model changes. |
protected java.util.Map<FadeKind,java.lang.Boolean> |
prevStateMap
Key - FadeKind , value - Boolean |
Constructor Summary | |
---|---|
GhostingListener(java.awt.Component comp,
javax.swing.ButtonModel buttonModel)
Creates a new listener on model changes that can cause fade animation transitions. |
Method Summary | |
---|---|
void |
registerListeners()
Registers listeners on the relevant model changes. |
protected void |
trackModelChange(FadeKind fadeKind,
boolean newState)
Tracks a single change to the model. |
void |
unregisterListeners()
Unregisters all listeners on model changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.event.ChangeListener modelListener
protected java.awt.Component comp
protected javax.swing.ButtonModel buttonModel
protected java.util.Map<FadeKind,java.lang.Boolean> prevStateMap
FadeKind
, value - Boolean
Constructor Detail |
---|
public GhostingListener(java.awt.Component comp, javax.swing.ButtonModel buttonModel)
comp
- Component.buttonModel
- Model for the component.Method Detail |
---|
protected void trackModelChange(FadeKind fadeKind, boolean newState)
fadeKind
- Fade animation kind.newState
- New value of the relevant attribute of the model.public void registerListeners()
public void unregisterListeners()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |