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