KetraTerm
API · DevelopmentAll versions

SwingDialogRequest

class SwingDialogRequest(val title: String, val message: String, val severity: SwingDialogRequest.Severity, options: List<String> = listOf(SwingHostMessages.forLocale().message("dialog.ok")), val defaultOption: Int = options.lastIndex)

Plain-text content and choices for a standard product dialog. Both presenters return the chosen option index, or null for Escape, window close or disposal. Options are copied so a caller cannot change their meaning while UI is open.

Parameters

defaultOption

initially selected action; defaults to the last option, conventionally Cancel/Deny. This is independent of dismissing the dialog.

Constructors

Link copied to clipboard
constructor(title: String, message: String, severity: SwingDialogRequest.Severity, options: List<String> = listOf(SwingHostMessages.forLocale().message("dialog.ok")), defaultOption: Int = options.lastIndex)

Types

Link copied to clipboard

Standard platform message icon.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Defensively copied button labels in result-index order; Java mutation attempts throw UnsupportedOperationException.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Wrapped, escaped content for platform HTML labels; messages never supply markup.