Class ButtonVisualStateTracker


  • public class ButtonVisualStateTracker
    extends java.lang.Object
    Utility class to track transitions in visual state of buttons.
    • Field Detail

      • radiancePropertyListener

        private java.beans.PropertyChangeListener radiancePropertyListener
        Property change listener.
    • 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.