KetraTerm
API · DevelopmentAll versions

SwingHostServices

Host-provided non-render services for SwingTerminal.

These services are intentionally kept out of row painters. Rendering consumes immutable settings and render-cache snapshots, while host integrations supply scheduling, clipboard, and explicit hyperlink activation policy here. Use create and copy for selective construction and immutable updates. Service references remain host-owned; building or copying never starts or closes them. View-lifetime services such as suggestion diagnostics use EDT methods on SwingTerminal.

Constructors

Link copied to clipboard
constructor()

Creates a validated snapshot with default values.

Types

Link copied to clipboard
class Builder

Mutable construction draft. Not thread-safe; build never retains this draft.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

host clipboard adapter for copy and paste actions.

Link copied to clipboard

host-owned right-click popup policy. The reusable terminal invokes it only when terminal UI owns the right-click gesture; Shift temporarily overrides reporting unless XTSHIFTESCAPE requests capture.

Link copied to clipboard

custom host font resolver policy.

Link copied to clipboard

host-owned keyboard action policy evaluated before terminal input encoding.

Link copied to clipboard

host detector for links discovered from the retained terminal content. Binding-owned detection runs outside paint and mouse movement, continues while temporarily hidden, and invokes actions only after explicit activation.

Link copied to clipboard

host handler for terminal-authored hyperlink activation, following the gesture policy in Swing settings.

Link copied to clipboard

optional host-owned local middle-button paste hook. A supplied hook owns clipboard access and deferred completion; null uses the configured clipboard handler synchronously. Other paste actions are unaffected.

Link copied to clipboard

whether the reusable component should draw and handle its own overlay scrollbar. Hosts that install a native external scrollbar should set this to false.

Link copied to clipboard

host-owned mapping from Swing key events to semantic suggestion actions. Standalone hosts may retain the standard map; platform integrations should resolve their active application keymap.

Link copied to clipboard

host-owned suggestion presentation factory. It changes visuals only; the reusable controller retains navigation, acceptance, dismissal, and feedback semantics.

Link copied to clipboard

scheduler for UI-thread component work.

Link copied to clipboard

host scrollbar adapter notified when the terminal scrollback viewport changes.

Functions

Link copied to clipboard

Configures a fresh draft synchronously and returns a validated immutable snapshot. Exceptions propagate without changing this snapshot. Supplied services remain host-owned.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Returns a detached mutable draft. Builders are caller-confined and never retained by snapshots.