public class ButtonVisualStateTracker extends Object
Modifier and Type | Field | Description |
---|---|---|
protected StateTransitionTracker |
stateTransitionTracker |
|
protected PropertyChangeListener |
substancePropertyListener |
Property change listener.
|
Constructor | Description |
---|---|
ButtonVisualStateTracker() |
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.
|
protected PropertyChangeListener substancePropertyListener
SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY
property and
AbstractButton.MODEL_CHANGED_PROPERTY
property.protected StateTransitionTracker stateTransitionTracker
public void installListeners(AbstractButton b, boolean toInstallRolloverListener)
b
- Button.toInstallRolloverListener
- If true
, the button will have the rollover
listener installed on it.public void uninstallListeners(AbstractButton b)
b
- Button.public StateTransitionTracker getStateTransitionTracker()