KetraTerm
API · DevelopmentAll versions

SwingTerminalMiddleClickPasteRequest

One-use paste authority captured for a local middle-button press.

Immutable metadata can be retained for host-owned asynchronous work. Completion and cancellation belong to the EDT. Requests from separate presses are independent; the host owns any supersession or cancellation of its clipboard work. Retaining this request retains its source component.

Properties

Link copied to clipboard

whether Shift requested local interaction.

Link copied to clipboard

clipboard source captured from the press-time settings.

Link copied to clipboard

source terminal component.

Link copied to clipboard
val x: Int

component-local press coordinate for host presentation.

Link copied to clipboard
val y: Int

component-local press coordinate for host presentation.

Functions

Link copied to clipboard
fun cancel()

Permanently declines this request without reading or submitting text. Idempotent on the EDT. This does not cancel host-owned asynchronous work or retract an already admitted paste.

Link copied to clipboard
fun complete(text: String): Boolean

Completes this request with host-approved text, without reading a clipboard.