KetraTerm
API · DevelopmentAll versions

SwingHostMessages

fun interface SwingHostMessages

Message-bundle boundary for optional Swing host chrome and clipboard consent.

Keys and English defaults live in io/github/ketraterm/ui/swing/host/SwingHostMessages.properties. Hosts may bridge their own message framework with a lambda, or use forLocale with a custom bundle. Messages are plain text. Complete patterns allow localized word order, plural forms and numbers; clipboard messages receive only terminal names and character counts, never clipboard contents. Components resolve static text at construction and dynamic text on UI changes, outside painting. Implementations must support their host's calling threads; UI and consent calls occur on the EDT.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun message(key: String, vararg arguments: Any): String

Resolves key and inserts arguments without treating argument text as a message pattern.