Constructors

Link copied to clipboard
constructor(scheme: S)

Properties

Link copied to clipboard
private val cellToProperty: MutableList<Pair<Cell<*>, KProperty<*>>>

Maps cells (containing UI components) to the properties they describe.

Link copied to clipboard
val components: Collection<Any>

The components contained within this editor that determine the editor's current state.

Link copied to clipboard
protected val decoratorEditors: MutableList<SchemeEditor<*>>
Link copied to clipboard
protected val extraComponents: MutableList<Any>

The additional components that determine the editor's current state but do not have a name.

Link copied to clipboard
open val preferredFocusedComponent: JComponent?

The component that this editor prefers to be focused when the editor is focused.

Link copied to clipboard
abstract val rootComponent: DialogPanel

The root component of the editor.

Link copied to clipboard
val scheme: S

The scheme edited in this editor.

Functions

Link copied to clipboard
fun addChangeListener(listener: () -> Unit)

Ensures listener is invoked on every change in this editor.

Link copied to clipboard
fun apply()

Saves the editor's state into scheme.

Link copied to clipboard
protected fun <T : JComponent> Cell<T>.bindValidation(property: KProperty<*>): Cell<T>

Registers the fact that this Cell contains the component corresponding to the given property.

Link copied to clipboard
open override fun dispose()

Disposes this editor's resources.

Link copied to clipboard

Validates every single field individually, displays error information inside the form, and moves focus to the first field that is erroneous.

Link copied to clipboard
protected fun <S : Scheme> DialogPanel.finalize(owner: SchemeEditor<S>): DialogPanel

Applies a few final common steps to the created DialogPanel.

Link copied to clipboard

Sets up validation callbacks for the cells on which bindValidation has been invoked.

Link copied to clipboard
fun reset()

Resets the editor's state to that of scheme.