SettingsComponentListener

class SettingsComponentListener<S : Settings<S, T>, T : Scheme<T>>(component: SettingsComponent<S, 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

SettingsComponentListener
Link copied to clipboard
fun <S : Settings<S, T>, T : Scheme<T>> SettingsComponentListener(component: SettingsComponent<S, T>)
the type of settings to manage

Functions

onCurrentSchemeHasChanged
Link copied to clipboard
open override fun onCurrentSchemeHasChanged(scheme: T)
Invoked when the currently-selected scheme has just been changed.
onCurrentSchemeWillChange
Link copied to clipboard
open override fun onCurrentSchemeWillChange(scheme: T)
Invoked when the currently-selected scheme is about to change.

Sources

jvm source
Link copied to clipboard