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 StateTransitionTrackerstateTransitionTrackerprotected PropertyChangeListenersubstancePropertyListenerProperty change listener.
-
Constructor Summary
Constructors Constructor Description ButtonVisualStateTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateTransitionTrackergetStateTransitionTracker()voidinstallListeners(AbstractButton b, boolean toInstallRolloverListener)Installs tracking listeners on the specified button.voiduninstallListeners(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_PROPERTYproperty andAbstractButton.MODEL_CHANGED_PROPERTYproperty.
-
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()
-
-