if (substanceFadeStateListener != null)
substanceFadeStateListener.unregisterListeners();
boolean toRepaintParent = (b instanceof SubstanceScrollButton)
|| (b instanceof SubstanceSpinnerButton)
|| (b instanceof SubstanceComboBoxButton);
substanceFadeStateListener = new FadeStateListener(b, b
.getModel(), SubstanceCoreUtilities
.getFadeCallback(b, toRepaintParent));
substanceFadeStateListener
.registerListeners(toRepaintParent);
}
}
};
b.addPropertyChangeListener(this.substancePropertyListener);
boolean toRepaintParent = (b instanceof SubstanceScrollButton)
|| (b instanceof SubstanceSpinnerButton)
|| (b instanceof SubstanceComboBoxButton);
this.substanceFadeStateListener = new FadeStateListener(b,
b.getModel(), SubstanceCoreUtilities.getFadeCallback(b,
toRepaintParent));
this.substanceFadeStateListener.registerListeners(toRepaintParent);
}