intellij-randomness / com.fwdekker.randomness / SchemesPanel / Listener

Listener

interface Listener<T : Scheme<T>>

A listener that listens to events that occur to this panel.

Parameters

T - the type of scheme about which events are generated

Functions

onCurrentSchemeHasChanged

abstract fun onCurrentSchemeHasChanged(scheme: T): Unit

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

onCurrentSchemeWillChange

abstract fun onCurrentSchemeWillChange(scheme: T): Unit

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

Inheritors

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.