intellij-randomness / com.fwdekker.randomness / SettingsComponentListener

SettingsComponentListener

class SettingsComponentListener<S : Settings<S, T>, T : Scheme<T>> : SchemesPanel.Listener<T>

A Listener that takes events occurring in a SchemesPanel and handles them in a SettingsComponent.

Consider this listener the glue between the schemes panel (the model) and the settings component (the view).

Parameters

S - the type of settings to manage

T - the type of scheme to manage

component - the settings component in which the changes should be reflected

Constructors

<init>

SettingsComponentListener(component: SettingsComponent<S, T>)

A Listener that takes events occurring in a SchemesPanel and handles them in a SettingsComponent.

Functions

onCurrentSchemeHasChanged

fun onCurrentSchemeHasChanged(scheme: T): Unit

Invoked when the currently-selected scheme has just been changed.

onCurrentSchemeWillChange

fun onCurrentSchemeWillChange(scheme: T): Unit

Invoked when the currently-selected scheme is about to change.