SimpleDocumentListener

class SimpleDocumentListener(val listener: (DocumentEvent) -> Unit) : DocumentListener(source)

A DocumentListener that invokes listener on each event.

Parameters

listener

the listener to invoke on any event

Constructors

Link copied to clipboard
constructor(listener: (DocumentEvent) -> Unit)

Properties

Link copied to clipboard
private val listener: (DocumentEvent) -> Unit

Functions

Link copied to clipboard
open override fun changedUpdate(event: DocumentEvent)

Invoked after attributes have been changed.

Link copied to clipboard
open override fun insertUpdate(event: DocumentEvent)

Invoked after text has been inserted.

Link copied to clipboard
open override fun removeUpdate(event: DocumentEvent)

Invoked after text has been removed.