All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fxmisc.wellbehaved.skin.Behavior Maven / Gradle / Ivy

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