Class ButtonVisualStateTracker
- java.lang.Object
-
- org.pushingpixels.substance.internal.utils.ButtonVisualStateTracker
-
public class ButtonVisualStateTracker extends Object
Utility class to track transitions in visual state of buttons.
-
-
Field Summary
Fields Modifier and Type Field Description protected StateTransitionTracker
stateTransitionTracker
protected PropertyChangeListener
substancePropertyListener
Property change listener.
-
Constructor Summary
Constructors Constructor Description ButtonVisualStateTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateTransitionTracker
getStateTransitionTracker()
void
installListeners(AbstractButton b, boolean toInstallRolloverListener)
Installs tracking listeners on the specified button.void
uninstallListeners(AbstractButton b)
Uninstalls the tracking listeners from the specified button.
-
-
-
Field Detail
-
substancePropertyListener
protected PropertyChangeListener substancePropertyListener
Property change listener. Listens on changes to theSubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY
property andAbstractButton.MODEL_CHANGED_PROPERTY
property.
-
stateTransitionTracker
protected StateTransitionTracker stateTransitionTracker
-
-
Method Detail
-
installListeners
public void installListeners(AbstractButton b, boolean toInstallRolloverListener)
Installs tracking listeners on the specified button.- Parameters:
b
- Button.toInstallRolloverListener
- Iftrue
, the button will have the rollover listener installed on it.
-
uninstallListeners
public void uninstallListeners(AbstractButton b)
Uninstalls the tracking listeners from the specified button.- Parameters:
b
- Button.
-
getStateTransitionTracker
public StateTransitionTracker getStateTransitionTracker()
-
-