
org.fxmisc.wellbehaved.skin.Behavior Maven / Gradle / Ivy
package org.fxmisc.wellbehaved.skin;
/**
* Represents the controller aspect of a JavaFX control. It defines how the
* control reacts to user input. A Behavior typically registers event handlers
* on the control. It may hold a reference to the {@link Visual} in case it
* needs to query its state in order to properly implement the behavior.
*/
public interface Behavior {
/**
* Called to release resources associated with this Behavior when it is no
* longer being used, in particular to stop observing the control and the
* Visual, i.e. remove any event handlers, listeners, etc.
*/
void dispose();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy