Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jvnet.substance.utils
Class ButtonVisualStateTracker

    java.lang.Object
      org.jvnet.substance.utils.ButtonVisualStateTracker

    public class ButtonVisualStateTracker

extends java.lang.Object

Utility class to track transitions in visual state of buttons.

Author:
  Kirill Grouchnikov

Field Summary
`protected org.jvnet.lafwidget.animation.FadeStateListener` | `substanceFadeStateListener` Listener for fade animations.
`protected java.beans.PropertyChangeListener` | `substancePropertyListener` Property change listener.

Constructor Summary
`ButtonVisualStateTracker()`

Method Summary
`void` | `installListeners(javax.swing.AbstractButton b, boolean toInstallRolloverListener)` Installs tracking listeners on the specified button.
`void` | `uninstallListeners(javax.swing.AbstractButton b)` Uninstalls the tracking listeners from the specified button.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### substancePropertyListener

    protected java.beans.PropertyChangeListener substancePropertyListener

  Property change listener. Listens on changes to the `SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY` property and `AbstractButton.MODEL_CHANGED_PROPERTY` property.

### substanceFadeStateListener

    protected org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener

  Listener for fade animations.

Constructor Detail

### ButtonVisualStateTracker

    public ButtonVisualStateTracker()

Method Detail

### installListeners

    public void installListeners(javax.swing.AbstractButton b,
                                 boolean toInstallRolloverListener)

  Installs tracking listeners on the specified button.

  Parameters:
    `b` - Button.
    `toInstallRolloverListener` - If `true`, the button will have the rollover listener installed on it.

### uninstallListeners

    public void uninstallListeners(javax.swing.AbstractButton b)

  Uninstalls the tracking listeners from the specified button.

  Parameters:
    `b` - Button.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD