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 StateTransitionTrackerprotected PropertyChangeListenerProperty change listener. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinstallListeners(AbstractButton b, boolean toInstallRolloverListener) Installs tracking listeners on the specified button.voidUninstalls the tracking listeners from the specified button.
-
Field Details
-
substancePropertyListener
Property change listener. Listens on changes to theSubstanceLookAndFeel.BUTTON_SHAPER_PROPERTYproperty andAbstractButton.MODEL_CHANGED_PROPERTYproperty. -
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
-