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

Constructors

Link copied to clipboard
fun <S : Settings<S, T>, T : Scheme<T>> SettingsComponentListener(component: SettingsComponent<S, T>)

Functions

Link copied to clipboard
open override fun onCurrentSchemeHasChanged(scheme: T)

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

Link copied to clipboard
open override fun onCurrentSchemeWillChange(scheme: T)

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

Sources

Link copied to clipboard