org.fxmisc.wellbehaved.skin.Behavior Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WellBehavedFX Show documentation
Show all versions of WellBehavedFX Show documentation
Composable event handlers and skin skeletons for JavaFX controls.
The newest version!
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 - 2024 Weber Informatics LLC | Privacy Policy